Get the latest tech news
Py2wasm – A Python to WASM Compiler
py2wasm converts your Python programs to WebAssembly, running them at 3x faster speeds
CPython is not strictly a subset, since it supports a syntax closer to C. The main goal of Cython is to create performant modules that run next to your Python codebase. It should be totally possible to implement a Wasm backend in PyPy as Pypy.js demonstrated, but unfortunately is not trivial to do so (it may take from a few weeks to a month of work). ✅ Mostly compatible with any Python code and applications ❌ Only 1.5-3x faster ❌ Complex to get right (from the static analyzer perspective, many quircks) ❌ Larger binaries
Or read this on Hacker News