A proof of concept for compiling Cython to WASM.
After cloning this repo, pull git submodules:
git submodule update --init --recursive --depth 1
Next, build the Python interpreter with Emscripten (this will take a long time, you only need to do this once):
source ./build_cpython_for_wasm.sh
To build ./out
after
activating the Emscripten environment, run:
emmake make
Once the build is complete, you can start a server from ./out
:
python3 -m http.server --directory ./out
Then navigate to the test server in your browser.