4 ms·
Go has a large footprint with 2.5MB hello world wasm and some glue dependency. Rust has a similar footprint at first sight but can be shrinked significantly:
by singularity2001 8y ago
Go has a large footprint with 2.5MB hello world wasm and some glue dependency.
Rust has a similar footprint at first sight but can be shrinked significantly:
wasm-gc test.wasm # 1.7MB -> 100 bytes
IMHO the rust language is quite ugly, so you might take a fresh look at c++ which became surprisingly readable with its new features (auto, initializer_lists, nice for loops, ...)
- kodablah 8y agoI wrote a PoC tool the other day that can shrink the Go emitted WASM by a little bit: https://github.com/cretz/go-wasm-bake https://github.com/cretz/go-wasm-bake