~/talk

Invariants in my own Ruby: some things must never change

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [ruby, software-architecture]
links:none on file
slides:none on file

An independent Ruby implementation builds a JIT almost entirely in Rust and now loads gems and Bundler, hitting about 350 FPS on OptCarrot versus ~70 FPS with the interpreter. Specialization rewrites core routines from Rust into Ruby and enables constant folding and inline-cache driven inlining; the system currently passes 57% of Ruby spec core tests. Guards, compile-time blocking of dangerous calls (eval, binding, tracepoint) and global-version-driven patch points handle invalidation. Live demo uses SDL2 and a custom FFmpeg binding and locks gameplay to 60 FPS.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:34Monoruby JIT compiler overview
  3. 3:00Specialization and optimization
  4. 5:50Why Ruby is slow
  5. 8:16Constant folding technique
  6. 8:36Method call inline cache
  7. 11:25Dynamic features hinder optimization
  8. 12:07Monkey patching impact
  9. 13:10Local variable manipulation
  10. 14:55Binding and trace points
  11. 16:43Fighting Ruby's dynamic nature
  12. 17:48Guards and compile-time checks
  13. 18:57Patch points and binary patches
  14. 19:41Live demo introduction
  15. 21:53Conclusion and Q&A
~/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.