~/talk

ZJIT: Building a Next Generation Ruby JIT

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby, compilers-and-language-design]
slides:none on file

ZJIT is a method‑based Ruby JIT that replaces direct YARV→machine code emission with an SSA‑based IR and modular compiler passes; after 2.5 months it already has comparisons, control flow, type/constant propagation and dead‑code elimination. It implements fast JIT‑to‑JIT calls using CPU call/return and the C stack, yielding about 60% higher microbenchmark throughput than YJIT (YJIT is ~10x faster than the interpreter on the same test). Planed features include serializable machine code and metadata for instant warmup, upstreaming, and staged rollout toward Ruby 3.5.

AI-written summary · about

  1. 0:00Introduction and YJIT history
  2. 4:32YJIT performance plateau
  3. 10:40Introducing ZJIT
  4. 12:50ZJIT core architecture
  5. 16:21ZJIT intermediate representation
  6. 20:13Fast JIT-to-JIT calls
  7. 23:03Serialization and reuse of compilation
  8. 25:34Current status and next steps
  9. 26:55Ruby 3.5 expectations
  10. 29:27Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.