| ▲ | simonw 4 hours ago | |||||||
I've been looking forward to this for ages! This means we can now take any C/Rust/whatever extension for Python, compile that as a `.wasm` extension, and then load it directly in browser Pyodide projects using:
Here's how to try the new feature out. Visit https://pyodide.org/en/stable/console.html and type:
That gets you this WASM wheel: https://pypi.org/project/pydantic_core/#pydantic_core-2.47.0...You can tell that it's got compiled code in (and not just Python) by running:
I get this: | ||||||||
| ▲ | simonw 3 hours ago | parent | next [-] | |||||||
I had an older experimental Pyodide WASM project lying around (a packaging of the Luau language by Roblox) so I had Codex package that up for me and pushed it to PyPI. Here's the package: https://pypi.org/project/luau-wasm/
And an interactive demo page where you can try it out: https://simonw.github.io/luau-wasm/Wrote about this in more detail on my blog: https://simonwillison.net/2026/Jun/13/publishing-wasm-wheels... | ||||||||
| ||||||||
| ▲ | willXare 2 hours ago | parent | prev [-] | |||||||
`await micropip.install()` is starting to feel dangerously close to "just ship the whole universe to the browser." | ||||||||