[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:26304] Re: A challenge: Enumerator#next in JRuby

From: Charles Oliver Nutter <headius@...>
Date: 2009-10-26 01:58:23 UTC
List: ruby-core #26304
On Wed, Oct 21, 2009 at 5:16 PM, Roger Pack <rogerdpack@gmail.com> wrote:
> Yeah I think that's the case in 1.9, as well--if they ripped out the
> fiber based enumeration it would be much faster. =C2=A0Wonder if there's =
a
> way to get the best of both worlds...

The only way I can think of would be to have a stackless
implementation, like both JRuby and Rubinius have had in the past. But
in both cases, the performance hit from being stackless greatly
outweighed the benefit.

To be honest, Python may have it right here, since you can only yield
from within the first level of a coroutine, which means that
implementations like Jython can just make that one level of logic
resumable. In JRuby, because the Generator/Fiber can resume at any
level of logic, we would have to make the entire system be stackless
or resumable, all the way through.

- Charlie

In This Thread

Prev Next