Compiling Python to WASM
summary
Compares existing approaches (Pyodide, PyScript, RustPython, Py2WASM, SPy, MicroPython) and shows a new native compiler called Waspy that takes Python source to WASM AOT, uses Rust tooling (RustPython components, cargo integration) and emits small binaries runnable in browsers and Node.js. Current work targets Python 3.13, implements core ops and basic runtime, covers about 33% modules covered, compiles simple projects, and is published open source for inspection and extension.
AI-written summary · about
chapters (11)
- 0:00Introduction to WebAssembly
- 3:23Python and WASM challenges
- 7:33Pyodide and PyScript overview
- 10:27Py2WASM and RustPython
- 14:55SPy and MicroPython exploration
- 17:52Introducing Waspy compiler
- 20:06AST and compiler design
- 23:03Waspy demo and project status
- 27:07Approaches and future plans
- 30:03Motivation and production use
- 33:07Q&A and closing remarks
