This story delves into concurrent data structures in Ruby, aiming to show how true parallelism can be achieved despite global mutable state not being supported by default Ruby primitives. Some familiarity with Ruby, Rust, C, and other tools is helpful but not required. The GitHub repository contains code examples that can be run with a recent version of Ruby, Rust, and C compilers. The author emphasizes the importance of exploring parallelism in Ruby and provides practical resources for implementing it. Controversially, the approach challenges traditional Ruby practices but offers innovative solutions for parallel programming.
https://iliabylich.github.io/ruby-ractors-and-lock-free-data-structures/