Continuing WebAssembly with Effect Handlers
summary
WasmFX extends WebAssembly with WasmFX adds three instructions to create, suspend and resume continuations and with typed one-shot continuations that fit Wasm’s stack typing; a formal specification proves soundness. A prototype plugs into the Wasm reference interpreter and Wasmtime (piggybacking on Wasmtime’s fibers API). Preliminary benchmarks show raw task switching within an order of magnitude of asyncify while producing consistently smaller code size; artifacts and evaluated prototypes are available.
AI-written summary · about
chapters (9)
- 0:00WebAssembly with effect handlers
- 2:31WASM limits for non-local control
- 3:32Why effect handlers fit
- 5:21Designing WASM FX for continuations
- 7:26Lightweight threads example
- 10:58Key WASM FX instructions
- 11:40Prototype and benchmarks
- 13:07Summary and future
- 13:49Q&A on handlers
related talks
47mStack Switching in WebAssembly with Effect Handlers
31mEffectful Assembly Programming with AsmFX
22mContinuing Stack Switching in Wasmtime
43mMeet Your Future - WebAssembly
22mThe state of WebAssembly
01h 08mOn WebAssembly
19mIris-WasmFX: Modular Reasoning for Wasm Stack Switching
30mDemystifying the WASM Landscape: A Primer
