Are We Polyglot Yet?
Talkat Cloud Native Wasm Day Europe 2022 · on Monday, 2022-05-16· at 11:40· Pavilion 3, Room F | Level 2 | Central Forum, Feria Valencia, Spain + Live Stream·
summary
Shows a working polyglot prototype: a JS consumer compiled with JS-on-Wasm (javi) calls a Rust date-formatting crate built with wit-bindgen and chrono/chrono-humanize, linked at runtime with wasm-link and run on wasmtime. Static build is 2.2 MB and ~323 µs; dynamic linking yields 900 KB and ~106–160 µs (roughly 50% size and latency savings). Debuggability and higher memory use from multiple linear memories remain unresolved.
AI-written summary · about
chapters (7)
- 0:00Start
- 3:13Synchronous execution of untrusted code in performance sensitive contexts
- 4:41Smallest binary size possible -256kb
- 7:32Practical Use-Case
- 7:54Static Linking Approach
- 9:50Dynamic Linking Approach
- 11:31Implementing the consumer module
related talks
34mPractical Polyglot WebAssembly
40mJavascript and the Polyglot Web
22mExtending JavaScript with Rust
41mLet's build with WebAssembly!
20mUsing Rust and WASM
46mA State Of WebAssembly - The Browser is now a real VM
44mOut of the JavaScript Box: Front-End Rust Programming
33mWebpack + WebAssembly the future
