Get the latest tech news

Ruby, Ractors, and lock-free data structures


Intro This story is about concurrent data structures in the context of Ruby. The goal here is to demonstrate how true parallelism can be achieved with global mutable state (which at the time of writing, is not supported by built-in Ruby primitives).

The goal here is to demonstrate how true parallelism can be achieved with global mutable state (which at the time of writing, is not supported by built-in Ruby primitives). Familiarity with Ruby, Rust, C, (and a bit of other tooling) is nice to have, but hopefully not mandatory. The repository with code examples can be found on GitHub, to run it you need a relatively new version of Ruby (master branch is probably the best option if you can compile it locally), Rust and C compilers.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of ruby

ruby

Photo of lock

lock

Photo of ractors

ractors

Related news:

News photo

How to create value objects in Ruby – the idiomatic way

News photo

The future of AI is Ruby on Rails

News photo

Luthor (YC F24) Is Hiring Ruby on Rails Engineers in San Francisco