~/talk

Ruby’s Core Gem

Talkat RubyConf 2022 · 2022-11-29..12-01· [ruby]
slides:none on file

Proposes extracting Ruby’s core into Ruby core in Ruby (distributed as a gem or bundled) and leaving a tiny set of C/primitive hooks; cites Rubinius origin and TruffleRuby’s existing implementation and shows actual wins: TruffleRuby runs ~2,386 core methods in Ruby versus MRI’s ~2,194 C methods with ~64 primitives, enabling inlining and JIT optimizations that sometimes make Ruby code faster than C. Demonstrates tooling (yjit style inlining, Sulong for C ext) and notes real tradeoffs: startup and memory versus debuggability and shared, optimizable core.

AI-written summary · about

  1. 0:00Start
  2. 7:48Best of both worlds
  3. 13:31Advantage - understandability
  4. 14:09Advantage-shared code
  5. 14:50Advantage - optimisation
  6. 17:56Disadvantage - memory - mitigate it
  7. 22:41A potential way forward
~/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.