~/talk

Smalruby: Visualizing Ruby with Bidirectional Transpiration

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

A web app that bidirectionally converts Scratch blocks and real Ruby runs entirely in the browser using a forked Scratch editor plus the Prism WebAssembly parser; no server roundtrips. The conversion is a ~23,000-line pipeline handling 43 AST node types and 32 extension converters, with a 15-level precedence table to avoid extra parentheses and proxy-sniffing to survive minification. Round-trip fidelity uses metadata comments to restore original source. Extras include a furigana mode for Japanese readings and a DNCL mode to convert to the university test pseudo-Python.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:08What is Smalruby
  3. 7:18Implementation details
  4. 11:32Ruby to block conversion
  5. 15:41Scratch to Ruby mapping
  6. 18:43Round-trip fidelity
  7. 19:05Furigana mode
  8. 22:10DNCL mode
  9. 25:14Impact and adoption
  10. 26:42Future of programming education
~/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.