Cliff Moon on 27 Aug 2007 19:19:17 -0000 |
>From the post it seems like they're using native threads, so my guess is no. Doing green threads in the JVM sounds like a tall order, but it will probably happen at some point. Being able to work with both native and green would be super nice. Justin W. Reagor wrote: > Any idea if it is the same Fiber code as the C implementation of Ruby? > I remember reading in that article something about CLR's and VM's > having issues with these and JRuby implementing possible work arounds > (what the article said, not me). > > :: Justin Reagor > :: justinwr@gmail.com <mailto:justinwr@gmail.com> > > > > On Aug 27, 2007, at 11:57 AM, Cliff Moon wrote: > >> Wow, that was quick. Looks like JRuby is getting fibers as well. Sweet. >> >> *From: *Charles Oliver Nutter <charles.nutter@sun.com >> <mailto:charles.nutter@sun.com>> >> *Date: *August 27, 2007 11:26:42 AM EDT >> *To: *dev@jruby.codehaus.org <mailto:dev@jruby.codehaus.org> >> *Subject: **[jruby-dev] Basic Fiber support on trunk* >> *Reply-To: *dev@jruby.codehaus.org <mailto:dev@jruby.codehaus.org> >> >> >> I've committed really basic Fiber support on trunk. It passes the >> simple tests from YARV's test_fiber (also committed, with bits >> commented out), and appears to run all demo code I've found online. >> The following parts aren't implemented yet: >> >> - all error-handling >> - Fiber.transfer (I wasn't clear how this is supposed to work, but it >> will probably be simple to do) >> >> Also, two tests in test_fiber that construct a thousand or more >> fibers are commented out, because my implementation uses native >> threads (and the 10000-fiber test never seemed to return). This isn't >> to say it's not possible to support that many fibers with this impl, >> but it won't be cheap. >> >> Anyway, have a look at the code. I've asked for clarification or a >> pointer to Fiber spec docs on ruby-core list...we can fill out the >> rest of the behavior then. >> >> http://svn.codehaus.org/jruby/trunk/jruby/src/org/jruby/libraries/FiberLibrary.java >> http://svn.codehaus.org/jruby/trunk/jruby/test/externals/mri/ruby/test_fiber.rb >> >> - Charlie >> >> --------------------------------------------------------------------- >> To unsubscribe from this list please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> >> _______________________________________________ >> To unsubscribe or change your settings, visit: >> http://lists.phillyonrails.org/mailman/listinfo/talk > > ------------------------------------------------------------------------ > > _______________________________________________ > To unsubscribe or change your settings, visit: > http://lists.phillyonrails.org/mailman/listinfo/talk > _______________________________________________ To unsubscribe or change your settings, visit: http://lists.phillyonrails.org/mailman/listinfo/talk
|
|