[HN Gopher] Ruby, Ractors, and Lock-Free Data Structures
___________________________________________________________________
Ruby, Ractors, and Lock-Free Data Structures
Author : ksec
Score : 29 points
Date : 2025-03-23 06:55 UTC (2 days ago)
(HTM) web link (iliabylich.github.io)
(TXT) w3m dump (iliabylich.github.io)
| dpflan wrote:
| Among the deluge of github notifications, I noticed Mike Perham
| of Sidekiq fame working https://github.com/mperham/ratomic --
| "Ratomic provides mutable data structures for use with Ruby's
| Ractors. This allows Ruby code to scale beyond the infamous GVL."
|
| I then see that he posted:
| https://ruby.social/@getajobmike/114147139715606013
|
| """ After months of work on 8.0, I've been trying to prototype a
| Ractor-based job system using Redis Cluster so the system can
| scale to hundreds of Redises with minimal effort.
|
| The hardest part is Ractors. They are quite difficult to program
| as they don't allow lexical scope or closure variable access. I
| haven't yet figured out the code patterns necessary for them. I
| would call it a dialect of Ruby.
|
| To be fair, I think I had the same struggles when learning
| goroutines and channels. """
|
| Looks like he's trying to scale up sidekiq!
___________________________________________________________________
(page generated 2025-03-25 23:00 UTC)