MHN
Add a comment on Hacker News →
3 of 109 comments
  1. Not very hard... Rust wasm binaries are ginormous.

    If you care about WASM performance, size and memory usage, Zig is a much better candidate.

  2. Of course, they lobbied to transfer the bloat onto the WASM runtime itself

  3. Shoutout to the [wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen) maintainers who do an awesome job of allowing Rust to be compiled to WASM smoothly. I built an [eigenvalue solver](https://abstractnonsense.xyz/blog/2025-12-31-eigenvalue-solv...) in Rust for an interactive component for my blog, and it was super smooth going. Felt like magic! I've noticed that the binary sizes can blow up a bit by including libraries, but if you're careful I think the binaries are pretty small, tbh.