> This makes Ruby threads lightweight (also known as “Green Threads”)
It's a shame they got this wrong and didn't discuss threads much. Ruby threads, since 1.9, are really threads managed by the OS and are not green threads. The parallelism is limited by the goal interpreter lock, but calling out to non Ruby code may be parallel, otherwise all those libraries the author mentions wouldn't bother. That "may" is an annoying point of order though.
josefrichter · 49m ago
I remember Jose Valim’s work on this in Ruby ~15 years ago. And then he went on to create Elixir and we never looked back.
mathgeek · 19m ago
Memories here as well! Was working in Rails full time back then and dabbled in Elixir to some very fun experiments.
jemmyw · 41m ago
Ruby hasn't stopped either and the last few years have seen a lot of improvement in it's concurrency story. I still prefer it to Elixir, that's just personal preference rather than a weigh up.
It's a shame they got this wrong and didn't discuss threads much. Ruby threads, since 1.9, are really threads managed by the OS and are not green threads. The parallelism is limited by the goal interpreter lock, but calling out to non Ruby code may be parallel, otherwise all those libraries the author mentions wouldn't bother. That "may" is an annoying point of order though.