RubyGems on ruby.wasm
summary
Adds a new command rwm build that packages gems into the WASM binary and demonstrates a full Rails app (including C extensions) running inside the browser, serving requests via a Service Worker. Implements cross‑compile support by adding a TargetRbConf option to mkmf (targeted for Ruby 3.4) so C extensions build to wasm, and uses the WebAssembly component model for AOT dynamic linking to bundle modules into a single self‑contained component; final interpreter binary is about 30 MB. Some upstream changes are still pending.
AI-written summary · about
chapters (4)
- 0:00Introduction to RubyWasm
- 7:53Demo of gem support
- 12:50Technical details of RubyGem support
- 25:03Future vision and roadmap
related talks
16mBuilding interactive Ruby gem tutorials with Wasm
42mExotic Runtime Targets: Ruby and Wasm on Kubernetes and GitOps Delivery Pipelines
26mFrom Server to Client: Ruby on Rails on WebAssembly
30mruby.wasm also enables JavaScript to call Ruby libraries.
15mExotic Runtime Targets: Ruby and Wasm on Kubernetes and GitOps Delivery Pipelines
33mTutorialKit.rb: interactive Ruby gem docs powered by Wasm
50mWeb Assembly
29mWhat is Web Assembly and Why Should you Care?
