jemmyw 1 day ago

> 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.

1
Lio 1 day ago

Also the article side steps talking about JRuby or TruffleRuby, both of which are GVL free so threads do run in parallel there.

Really this is just a discussion of concurrency on the MRI rather than something to the Ruby language itself.