Using Ruby in the browser is wonderful.
summary
Compiles CRuby to WebAssembly and exposes a bridge so Ruby calls JS.global and JS.eval while JS::Object wraps JS values; implements a .new method using Reflect.construct and adds JS::RequireRemote to download Ruby files at runtime, enabling a terminal Tetris port to run in the browser with only three files changed and live-fetching required scripts. Also ships an autoloader, HTML rendering and event-binding DSL in ~120 lines as orbital_ring, proving Ruby-first frontend frameworks are feasible with ruby.wasm.
AI-written summary · about
chapters (7)
- 0:00Introduction and welcome
- 2:16What is ruby.wasm
- 6:50Contributions to ruby.wasm
- 11:07Demo of Tetris in browser
- 16:07Building a Ruby frontend framework
- 25:00Introducing Orbital Ring framework
- 27:11Summary and closing
related talks
30mruby.wasm also enables JavaScript to call Ruby libraries.
25mThe future of Rails begins in the browser
33mThe Ruby Racer: Under the Hood
16mBuilding interactive Ruby gem tutorials with Wasm
30mFunicular: A Browser App Framework Powered by PicoRuby.WASM
35mRuby is the Best Javascript
33mTutorialKit.rb: interactive Ruby gem docs powered by Wasm
39mdRuby on Browser
