General

Profile

nome (Knut Franke)

  • Login: nome
  • Email: Knut.Franke@gmx.de
  • Registered on: 10/08/2014
  • Last sign in: 10/31/2014

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

10/24/2014

04:16 PM Ruby Feature #10344: [PATCH] Implement Fiber#raise
Koichi Sasada wrote:
> > I think [Consumer](http://nome.github.io/coroutines/Consumer.html) is an example of a semi-coroutine (in the sense that it uses Fiber.yield, not Fiber#transfer) that benefits from having Fiber#raise.
> ...
Cons...
nome (Knut Franke)

10/18/2014

01:55 PM Ruby Feature #10344: [PATCH] Implement Fiber#raise
> I understand this feature helps some libraries. But I can't understand why it is important.
Without Fiber#raise, libraries need to use some rather inelegant and inefficient workarounds (wrapping or tagging exceptions, wrapping Fiber...
nome (Knut Franke)
11:20 AM Ruby Feature #10341: Fiber switch performance improvements
D'oh. Thanks for fixing the win32/non-native issues.
And great to see this included. :-)
nome (Knut Franke)

10/11/2014

08:58 PM Ruby Feature #10341: Fiber switch performance improvements
Attached a revised version of patch 5 with fiber_mark_self replaced by rb_fiber_mark_self. Thanks for the hint. nome (Knut Franke)
04:28 PM Ruby Feature #10344: [PATCH] Implement Fiber#raise
For some more sophisticated examples, see https://github.com/nome/coroutines. The library does work with vanilla Ruby, but the patch improves performance.
Also, similar code can be simplified by using Fiber#raise. Compare e.g. the two...
nome (Knut Franke)

10/09/2014

12:29 AM Ruby Feature #10344 (Closed): [PATCH] Implement Fiber#raise
While it is possible to implement this in pure Ruby (by wrapping Fiber.yield and Fiber#resume), this feels like a low-level feature that ought to be provided out of the box. Also, the C implementation is more straight-forward, and more e... nome (Knut Franke)

10/08/2014

12:16 PM Ruby Feature #10341 (Closed): Fiber switch performance improvements
The attached patches increase performance of switches between Fibers by ~17% on my test system (Linux, gcc 4.8.2).
Patches 1-3 are purely cosmetic, but included here because submitting them separately would cause conflicts between the...
nome (Knut Franke)

Also available in: Atom