Hacker News new | ask | show | jobs
by norbert515 141 days ago
I haven't actually tried WASM yet. The demo on the landing page is using Dart transpiled to JS (embedded in xterm.js). But Dart does also support compiling to WASM directly, I'll give it a try tomorrow and let you know about the stats!
1 comments

Compiling to WASM is a huge reduction in size (as we don't need to ship a runtime etc. ourselfes anymore), but that requires some browser runtime. Dart specifically doesn't support standalone WASM (outside of the JS/browser context) yet.

I was able to get a WASM binary as small as ~234 KiB!