~/talk

Towards a Ruby compiler

Talkat RubyConf 2009 · 2009-11-19..11-21· [ruby]
links:none on file
slides:none on file

A prototype compiler called Ocelot turns Ruby into C by running the unit tests to record actual runtime shapes and method targets, using type induction and eval precience to specialize call sites into switch-based direct calls, inline instance variables into C structs, and inline static eval strings. Unexpected cases fall back to RB_FUN into the interpreter and emit warnings that drive test expansion; method_missing is supported by emitting explicit calls. Work status: type induction is almost finished, next step is C code generation.

AI-written summary · about

  1. 0:00Start
  2. 0:21Ocelot: A Ruby Compiler
  3. 12:58Mocks
  4. 19:30Both compilers and processors can benefit from explicit knowledge of the targets of callsites.
~/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.