WASM in your wheel?
summary
Uses WebAssembly to avoid building many platform wheels by shipping a .wasm alongside Python code: mpy-cross compiled to .wasm and loaded with runtimes wasm3/wasmtime/pyodide. Claims: near-native performance with wasmtime/wazmer, single-source build change (swap compiler, add emscripten flags) — one-line change to Makefile — and three interchangeable backends implemented. Works for the MicroPython cross-compiler, but reduces explicit target set (≈7 vs 24), needs the .wasm in the wheel, and debugging and runtime selection remain awkward.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:49Distribute native code in Python wheels
- 2:32MicroPython cross-compiler project
- 7:31WebAssembly solves distribution
- 9:39Run WASM in Python
- 12:50Demo: compile and run WASM in Python
- 16:41Complex data types in WASM
- 20:32Sandboxing WASM execution
- 22:39WASM in MicroPython cross-compiler
- 24:26Evaluating WASM for MicroPython
- 26:10Q&A








