RE: [Rubydotnet-developer] [ANN] rubydotnet-0.3.0
Status: Alpha
Brought to you by:
thomas
From: Thomas S. <th...@th...> - 2003-09-28 19:11:49
|
Rodrigo, The ruby interpreter is not thread safe so access needs to be serialized. If you access the ruby interpreter from multiple threads without some form of synchronization it will like cause a core dump. The thing is, as the ruby interpreter is now, it is most annoying to work with it from multiple threads. There are all sorts of hacks that you can do, but I'm pushing it to the back of the work stack, because I'm naively hoping that someone will come and fix it :-) Thomas > -----Original Message----- > From: rub...@li... > [mailto:rub...@li...] On > Behalf Of Rodrigo B. de Oliveira > Sent: 28. september 2003 20:54 > To: rub...@li... > Subject: Re: [Rubydotnet-developer] [ANN] rubydotnet-0.3.0 > > > Great work! > > What are the implications of calling eval from multiple threads? > > Thanks, > Rodrigo > > ----- Original Message ----- > From: "Thomas Sondergaard" <th...@th...> > To: <rub...@li...> > Sent: Sunday, September 28, 2003 3:16 PM > Subject: [Rubydotnet-developer] [ANN] rubydotnet-0.3.0 > > > > Hi guys, > > > > I've made a new release with an interface for embedding the ruby > > interpreter in a .net application. RubyInterpreter.dll is > installed in > > the ruby bindir - the interface is fairly straightforward: > > > > RubyInterpreter.instance.eval("your ruby code here") > > > > or > > > > RubyInterpreter.instance.eval("your ruby code here", new object[] { > > your args here }) > > > > Just for the kick of it I made this in C# using P/Invoke to > make the > > few ruby initialization calls and rather than linking to my > rubydotnet > > library to access the marshalling code I use the facility for > > implementing managed interfaces in ruby. > > > > http://rubydotnet.sourceforge.net > > > > Cheers, > > > > Tom > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Rubydotnet-developer mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubydotnet-developer > |