~/talk

Running ruby.wasm on Pure Ruby Wasm Runtime

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby, webassembly]
slides:none on file

A pure-Ruby gem runtime implements the WebAssembly core spec and WASI common preview 1 and runs a ruby.wasm build of Ruby by implementing ~192 core instructions and the ~37 host functions Ruby requires; file access works after adding WASI preopens and fixing memory allocation and panic handling. A grayscale Rust wasm test exposes and resolves bitshift and numeric bugs; precomputing block-end targets cuts execution time 43%, memoizing small integers saves ~1s, startup is ~70s, and ARM runtimes show ~50–57% execution-time improvement.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:07What is roite and why
  3. 3:15WebAssembly basics
  4. 6:55Why build a pure Ruby runtime
  5. 8:45Development milestones
  6. 11:33Implementing WebAssembly instructions
  7. 13:21Debugging grayscale conversion
  8. 17:21Running Ruby on roite
  9. 19:53Making require work
  10. 23:10Performance measurements
  11. 25:15Optimizing instance creation
  12. 27:11Startup time and V function impact
  13. 27:53Demonstration
  14. 29:01Future and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.