https://github.com/jon-edward/cy-on-the-web
A proof of concept for compiling Cython to WASM.
https://github.com/jon-edward/cy-on-the-web
Last synced: about 2 months ago
JSON representation
A proof of concept for compiling Cython to WASM.
- Host: GitHub
- URL: https://github.com/jon-edward/cy-on-the-web
- Owner: jon-edward
- License: cc0-1.0
- Created: 2025-01-19T23:39:05.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-19T23:51:21.000Z (4 months ago)
- Last Synced: 2025-01-20T00:28:13.590Z (4 months ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cy-on-the-web
A proof of concept for compiling Cython to WASM.
# Usage
After cloning this repo, pull git submodules:
```shell
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):```shell
source ./build_cpython_for_wasm.sh
```To build `./out` after
[activating the Emscripten environment](https://emscripten.org/docs/getting_started/downloads.html#installation-instructions-using-the-emsdk-recommended), run:```shell
emmake make
```Once the build is complete, you can start a server from `./out`:
```shell
python3 -m http.server --directory ./out
```Then navigate to the test server in your browser.