Compiling Your Language to WasmGC & Friends
by
Rikito Taniguchi
×
Copy
Open
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Slide 1
Slide 1 text
Compiling Your Language to WasmGC & Friends JSConf JP, Nov 22, 2026 Rikito Taniguchi (@tanishiking) (Scala Center / VirtusLab)
Slide 2
Slide 2 text
WebAssembly ● Portable bytecode format ○ Runs on everywhere (browser, IoT devices, CDN edge…) ● Deny-by-default Sandbox ● Near native speed
Slide 3
Slide 3 text
Is Wasm faster than JS?
Slide 4
Slide 4 text
Is Wasm faster than JS? It depends! Workload, compiler impl, runtime impl… (but we have some data…)
Slide 5
Slide 5 text
Scala.js compiles Scala to JS / WasmGC
Slide 6
Slide 6 text
Wasm - JS interoperability Some proposals to improve interoperability ● JSPI (JavaScript Promise Integration) ● Custom Descriptors ● Component Model
Slide 7
Slide 7 text
JSPI (JavaScript Promise Integration) Without JSPI, Wasm does not wait until promise resolves.
Slide 8
Slide 8 text
Custom Descriptors
Slide 9
Slide 9 text
Component Model Firefox is working on it!
Slide 10
Slide 10 text
Summary ● Wasm is (sometimes) faster than JS ● Wasm is evolving for better interoperability ○ JSPI ○ Custom Descriptors ○ Component Model