~/talk

Ractors in Ruby 4.0: Message Passing Without the Pain

Talkat RubyConf 2026 · 2026-07-14..07-16· [ruby]
slides:none on file

A benchmark initially shows Ractors 3.6× slower than forks because it's run on an older Ruby, then switching to Ruby 4 flips results to 5.6× faster, matching or beating forks on small workloads. The talk maps Threads, Fibers, Processes and Ractors, demonstrates Ractor::Port and shareable procs and lambdas plus native exception transport, shows real wins for CPU-bound work (Karaska deserialization, Herb tooling), explains why Rails/Puma can’t switch wholesale (shared heap, stop‑the‑world GC, globals), and presents Elixir actor patterns that work today.

AI-written summary · about

  1. 0:00Introduction
  2. 3:10Ruby parallelism
  3. 5:42Ractors actor model
  4. 7:07Ractors vs processes in matrix
  5. 9:36Basic Ractor API
  6. 11:22Long-running Ractors
  7. 13:30Ping-pong Ractors
  8. 14:34Web servers and Ractors
  9. 16:00Shareability and reactor safety in Ruby
  10. 18:07Testing CPU-bound apps
  11. 21:16Kafka deserialization with Ractors
  12. 24:28Ractors use cases
  13. 25:31Ractors performance
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.