An mruby for WebAssembly
summary
An mruby-for-WebAssembly prototype compiles Ruby (via mrbc) into a single wasm that runs in browser and Wasm runtimes using a Rust VM and shows concrete numbers: a Fibonacci wasm is 174 KB wasm for fib, runtime supports RBS-signatured import/exports and requires explicit pointer/length string passing through linear memory, and it uses mrbc and a Rust VM to build the wasm. Performance: cold boot is boots in milliseconds vs ~7s for CRuby and CPU throughput is currently tens to hundreds× slower than native JS with room to improve.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 5:51WebAssembly basics
- 14:58mruby basics
- 21:53mruby for WebAssembly
- 28:52Performance evaluation
- 30:42Conclusion and Q&A
related talks
29mUzumibi: Reinventing mruby for the Edges
46mA State Of WebAssembly - The Browser is now a real VM
43mDo things blazingly fast with WebAssembly
41mLet's build with WebAssembly!
33mWebpack + WebAssembly the future
47mRewrite the web with Rust and Web Assembly
50mAn Introduction to WebAssembly
45mWebAssembly: Browser is now a real virtual machine
