~/talk

WASM in your wheel?

Talkat PyCon AU 2023 · 2023-08-18..08-22· [webassembly]
slides:none on file

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

  1. 0:00Introduction
  2. 0:49Distribute native code in Python wheels
  3. 2:32MicroPython cross-compiler project
  4. 7:31WebAssembly solves distribution
  5. 9:39Run WASM in Python
  6. 12:50Demo: compile and run WASM in Python
  7. 16:41Complex data types in WASM
  8. 20:32Sandboxing WASM execution
  9. 22:39WASM in MicroPython cross-compiler
  10. 24:26Evaluating WASM for MicroPython
  11. 26:10Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.