Justin W. Reagor on 27 Aug 2007 18:44:56 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] [Fwd: [jruby-dev] Basic Fiber support on trunk]

  • From: "Justin W. Reagor" <justinwr@gmail.com>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] [Fwd: [jruby-dev] Basic Fiber support on trunk]
  • Date: Mon, 27 Aug 2007 14:44:31 -0400
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=OcipOwEvUM8YhArcnX/QgbSd8fhscj6tKCNZKYAWO5hXQtLic7fqaaZ09DYpIQIfHX5FUKk47//pC6HkOaBh2NcZrSJxWfkAOqb9yA2egJb5AqNYy1khxBSIv+cJrbqSXvxsTrWmtiBG9PinlKxvWxdJYiisIvR6NswNkeMvsPg=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

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

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>
Date: August 27, 2007 11:26:42 AM EDT
Subject: [jruby-dev] Basic Fiber support on trunk

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.

- Charlie

To unsubscribe from this list please visit:

To unsubscribe or change your settings, visit:

To unsubscribe or change your settings, visit: