Hacker News new | past | comments | ask | show | jobs | submit login

What's the hello world wasm file size?



  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.


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


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


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


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: