top | item 40123361

(no title)

kelp | 1 year 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.

discuss

order

syrusakbary|1 year ago

Indeed, 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).

theanonymousone|1 year ago

You got it to work? For me it complains about some header files missing and breaks the nuitka installed on the system.

somesun|1 year ago

I wonder what's the meaning of doing this , if hello world program need 20M to download before run ?

theanonymousone|1 year ago

Wow! 24M makes it even less practical than interpreted pyodide.