~/talk

Ruby on NES - how to make the smallest ruby ever

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

A tiny Ruby runs on the NES: an mruby bytecode interpreter built in cc65 that omits GC, Array, and String but runs a 70-line game on an emulator (Mesen/Optcarrot). It loads .mrb blobs as a global C array for mrb, executes register-based mruby bytecode with a big switch VM, and implements game calls via SSEND top-level APIs. Symbols use a hashed table plus built-in Symbols; plan is reference-counting GC though memory limits (2 KB RAM → ~300 bullets worst-case) remain the main constraint.

AI-written summary · about

  1. 0:00Introduction
  2. 2:59Why the Famicom
  3. 6:41Ruby implementations on NES
  4. 10:35Implementation strategy
  5. 15:41VM instruction processing
  6. 18:00Demo: RubyCatcher game
  7. 19:40Symbol class internals
  8. 24:19Future plans for NESRuby
  9. 28:48Closing and demo
~/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.