ruby.wasm also enables JavaScript to call Ruby libraries.
summary
ruby.wasm now targets calling Ruby from JavaScript by adding a minimal loader and improving value wrappers: Node.js demo uses jsrequire_local to load doc.rb, eval Doc.new, then invoke methods via call("bow") and read properties with call("count_to_bows") followed by to_string. Current gaps: RbValue only converts String, method calls must use call, and no high-level eval_file yet. Binary sizes are ~31 MB uncompressed (≈8 MB gzipped). Work continues on richer conversions, eval_file, and seamless type mapping.
AI-written summary · about
chapters (6)
- 0:00Introduction and motivation
- 4:52Calling JavaScript from Ruby
- 13:13Why ruby.wasm isn't used in production
- 17:07Possibilities of calling Ruby from JavaScript
- 21:11Ruby's Blanket project overview
- 29:02Future plans and conclusion
related talks
30mRunning JavaScript, Python, and Ruby in WebAssembly
30mWhy Should You Consider JavaScript on WebAssembly?
30mWhy Should You Consider JavaScript on WebAssembly?
26mFrom Server to Client: Ruby on Rails on WebAssembly
29mWhat is Web Assembly and Why Should you Care?
02h 46mThe (wasm) Revolution Is Incredible Because It's Real
31mWASM matter?
22mThe state of WebAssembly
