~/talk

Guide to getting started walking source codes of CRuby

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

Practical guide to reading CRuby source: skip noncompiled #if blocks, debug and assert paths, and semantic areas irrelevant to your goal; read functions bottom-up to see the returned VALUE and the function’s purpose; VALUE appears in 34,190 lines and acts as immediate, special constant, or aligned pointer; method calls use an instruction set (send, opt_send_without_block) that points to vm_sendish and a call cache two-tier (call data + RClassWritableCCTable); object ivars use an Object Shape tree with edges and red‑black/hash fallback and Claude Code/Gemini help fill knowledge gaps.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:56Tips for reading C code
  3. 10:33Understanding algorithms in CRuby
  4. 12:07CRuby-specific concepts
  5. 16:39Using AI for source code reading
  6. 23:11Call cache and object shape
  7. 29:27Summary and conclusion
~/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.