5 ms·
ls -lh hello.wasm -rw-r--r--@ 1 tcole staff 24M Apr 22 14:18 hello.wasm This is on macOS. That is hello.py compiled to wasm with Py2wasm.
by kelp 2y ago
ls -lh hello.wasm
-rw-r--r--@ 1 tcole staff 24M Apr 22 14:18 hello.wasm
This is on macOS. That is hello.py compiled to wasm with Py2wasm.
- theanonymousone 2y agoYou got it to work? For me it complains about some header files missing and breaks the nuitka installed on the system.
- somesun 2y agoI wonder what's the meaning of doing this , if hello world program need 20M to download before run ?
- theanonymousone 2y agoWow! 24M makes it even less practical than interpreted pyodide.
- syrusakbary 2y agoIndeed, this can be way further optimized. For example, you can probably do a wasm-strip and wasm-opt passes that would leave the wasm file being ~5-10Mb. Still very big, but a bit more reasonable. The good thing is that thanks to Nuitka you could actually do some tree shaking and only include the imported files and not everything in between (although this might break other behavior such as eval and so).