FFI: How Ruby Talks to C.

One gem. Every C library. MRI, JRuby, TruffleRuby.
No C extension. No Makefile. Just Ruby.

And yes, it works with Ractors.

https://rubystacknews.com/2026/03/25/ffi-how-ruby-talks-to-c/

#Ruby #FFI #RubyDev #Ractor

FFI: How Ruby Talks to C

March 25, 2026 Published on RubyStackNews Ruby is a high-level language. C is a low-level language. At some point, every serious Ruby application needs to cross that boundary. Maybe you need a cryp…

Linking Ruby knowledge from the most remote places in the world.

Contributed a #ruby #Ractor variant to the programming languages benchmark game: https://salsa.debian.org/benchmarksgame-team/benchmarksgame/-/issues/559

(was an example where Ruby was slower than Python, so got interested :))

Might not be published anytime soon (as the benchark game isn't updated as often anymore, and was only recently updated), and it will also not be the fastest version, but was fun to experiment with Ractors in ruby, a way to have true parallelism is ruby.

(btw the reason ruby is slow in this test is that instantiating an object for a single character is much overhead that can't be reasoned away by the JIT-compiler I guess...

#performance

Ruby k-nucleotide using by Maarten Brouwers (using Ractor) (#559) · Issues · The Computer Language Benchmarks Game / benchmarksgame · GitLab

Source code Parallelism using Ractor (current fastest ruby variant is using process forking). I'd say pretty idiomatic ruby code, albeit...

GitLab
Linked is a good explanation of Ruby ractors, and a reminder that they still exist!https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency #explainer #ractor #ruby #scaling #performance #software-engineering
Linked is a good explanation of Ruby ractors, and a reminder that they still exist!https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency #explainer #ractor #ruby #scaling #performance #software-engineering
Linked is a good explanation of Ruby ractors, and a reminder that they still exist!https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency #explainer #ractor #ruby #scaling #performance #software-engineering
Linked is a good explanation of Ruby ractors, and a reminder that they still exist!https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency #explainer #ractor #ruby #scaling #performance #software-engineering
Linked is a good explanation of Ruby ractors, and a reminder that they still exist!https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency #explainer #ractor #ruby #scaling #performance #software-engineering
Linked is a good explanation of Ruby ractors, and a reminder that they still exist!https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency #explainer #ractor #ruby #scaling #performance #software-engineering
Linked is a good explanation of Ruby ractors, and a reminder that they still exist!https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency #explainer #ractor #ruby #scaling #performance #software-engineering
Linked is a good explanation of Ruby ractors, and a reminder that they still exist!https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency #explainer #ractor #ruby #scaling #performance #software-engineering