~/talk

The design and implementation of ZJIT & the next five years

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

Zjit compiles Ruby at runtime using an SSA HIR, a lower-level LI for data motion and native Intel/ARM backends, inserting runtime guards and patch points to fall back to the interpreter. Current wins: faster microbenchmarks, shape-based IVar loads, and basic method inlining; remaining issues: many C calls (array min/include, range each, struct init) still block whole-program speedups and some allocations aren’t elided. Tooling includes Perfetto trace viewer and a Misilla-based visualizer; target is a 5× speedup goal with inlining, escape analysis, and background compilation.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:06What is a JIT compiler
  3. 3:13ZJIT design and differences from WJIT
  4. 4:38Ruby semantics and object shapes
  5. 5:42High-level IR and optimizations
  6. 8:53Current ZJIT features and roadmap
  7. 9:58Performance tracing with Perfetto demo
  8. 11:00Performance benchmarks and regressions
  9. 12:03Ruby performance dreams and canary examples
  10. 15:54Loop and method call optimizations
  11. 18:01Allocation and escape analysis
  12. 19:27Path to 5x performance with inlining
  13. 22:35Future optimizations and runtime cooperation
  14. 24:21Advanced optimizations and wild ideas
  15. 25:45Conclusion and team credits
~/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.