~/talk

ZJIT: The future of Ruby performance

Talkat San Francisco Ruby Conference 2025 · 2025-11-19..11-21· [ruby]
slides:none on file

YJIT already delivers 10–20% production speedups; ZJIT is a new method-level JIT merged into Ruby 4.0 that adds a Ruby-aware high-level IR (ZJIT HR) and runtime profiling via inserted zjit_ bytecode patch points. That lets the compiler do cross-basic-block optimizations like constant folding so 1 + 2 becomes return 3 compiled* and enables inlining, register allocation, dead-code elimination and platform codegen for x86/ARM64. ZJIT is experimental in 4.0, not yet production-ready; enable with -Denable-z and -Dzit and inspect with -Zg dump or the tzg fly dev visualizer.

AI-written summary · about

  1. 0:00ZJIT and Ruby performance
  2. 1:07YJIT in Ruby 3.4
  3. 3:36ZJIT for Ruby 4.0
  4. 5:24Motivation for ZJIT
  5. 9:00Profiling and compiling Ruby
  6. 10:50ZG IR representation
  7. 15:13HIR optimization passes
  8. 20:38ZJIT compiler pipeline
  9. 21:45Visualizing HIR with tzg.fly.dev
  10. 23:15Ruby performance future
~/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.