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

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Photo of wasm compiler

wasm compiler

Related news:

News photo

Ruby vs. Python comes down to the for loop (2021)

News photo

GNU Portability Library's Tool Rewritten In Python For 8~100x Better Performance

News photo

Should you use upper bound version constraints?