[HN Gopher] Demystifying Ruby: It's all about threads (2024)
___________________________________________________________________
Demystifying Ruby: It's all about threads (2024)
Author : kadrek
Score : 58 points
Date : 2025-05-15 13:56 UTC (9 hours ago)
(HTM) web link (blog.papey.fr)
(TXT) w3m dump (blog.papey.fr)
| josefrichter wrote:
| 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.
| jemmyw wrote:
| 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.
| mathgeek wrote:
| Memories here as well! Was working in Rails full time back then
| and dabbled in Elixir to some very fun experiments.
| jemmyw wrote:
| > 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.
___________________________________________________________________
(page generated 2025-05-15 23:01 UTC)