Adopting JavaScript on WebAssembly at Shopify
Talkat Cloud Native Wasm Day North America 2021 · on Tuesday, 2021-10-12· at 13:45· Room 501 ABC + Online·
summary
Shopify ported JavaScript to server-side WebAssembly by bundling TypeScript with webpack and javi into index.wasm, pre-initializing the QuickJS runtime with Wizer to snapshot engine and app state, then running modules under Wasmtime. Startup time improves roughly 50%; complex scripts meet a 5 ms SLO, though JavaScript runs ~400–600 μs slower than AssemblyScript in some numeric/string benchmarks and regex runs about twice as fast. The pipeline produces reproducible wasm artifacts and works in production.
AI-written summary · about
chapters (6)
- 0:00Start
- 3:16Exclusively for WebAssembly
- 3:44Runtime dependency
- 4:21The Road to JavaScript
- 10:53How does this apply to JavaScript
- 16:43Trade-offs (performance)
related talks
30mWhy Should You Consider JavaScript on WebAssembly?
30mWhy Should You Consider JavaScript on WebAssembly?
13mKeynote: Wasm from the Inside Out: A Journey Through the Impact of WebAssembly in Production
45mJumping Feet-First into JS on Wasm
37mThe State of WebAssembly
44mJavaScript in WebAssembly? Why and How
28mJavy: Creating a toolchain for running JavaScript on WebAssembly
29mEnter the Sandbox: JS on Wasm
