~/talk

A Rails Developer’s Guide To The Ruby VM

Talkat RailsConf 2022 · 2022-05-17..05-19· [ruby, ruby-on-rails]
name:Maple Ong
speakerdeck:wildmaples
slides:none on file

Explains how Ruby source moves from characters to tokens to AST to bytecode and back to execution, using Ripper for token/AST inspection and RubyVM::InstructionSequence to view compiled bytecode; notes the compiler appears in 1.9 and YARV (merged 2007) runs a stack‑based VM with two stacks (internal and control frame). Demonstrates two scopes producing two bytecode chunks, asserts identical source yields identical bytecode, and names MJIT, YJIT (Ruby 3.1), and bootsnap caching as practical tools.

AI-written summary · about

  1. 0:00Start
  2. 0:49Compiled vs. Interpreted
  3. 8:543. Compile
  4. 25:34The Ruby execution process involves both compilation and interpretation.
~/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.