3 ms·
Off Topic: Does anyone know if there are anything similar for Ruby in the work? P.S - Ruby's issues system is hard to follow.
by ksec 12y ago
Off Topic: Does anyone know if there are anything similar for Ruby in the work?
P.S - Ruby's issues system is hard to follow.
- dmgbrn 12y agoYes and no. Ruby has Fibers, but they're roughly where Python is with generators as coroutines. They're wonderful when working with EM, and one time I wrote a massively overengineered Ruby Warrior program that allowed you to do things like "move(:left) until feel(:left).wall?" instead of doing one thing each time a method was called. This is exactly what makes coroutines so attractive in simulation programs. Still, Fibers are clumsy and counterintuitive and require some abstraction to produce a useful interface. Also, there are some problems related to overflowing the Fiber stack, especially in ridiculously deep Rails stacks, not sure if those have been resolved yet. I'm not sure that special syntax is necessary for widespread adoption of Fibers, since Ruby syntax is flexible enough to provide a sort of DSL for working with Fibers.
- riffraff 12y agoruby used to have RCRs as "language level issue tracking", modeled after PEPs[0]. Sadly, it died some years ago. [0] https://www.ruby-lang.org/en/news/2003/12/19/new-ruby-change-request-rcr-process/ https://www.ruby-lang.org/en/news/2003/12/19/new-ruby-change...