2 ms·
> But for frontend neither Go or Rust are good simply because of the huge size of the runtimes. Rust has a comparable amount of runtime as C, here it is: https
by steveklabnik 9y ago
> But for frontend neither Go or Rust are good simply because of the huge size of the runtimes.
Rust has a comparable amount of runtime as C, here it is: https://github.com/rust-lang/rust/blob/master/src/libstd/rt.rs https://github.com/rust-lang/rust/blob/master/src/libstd/rt....
wasm/asmjs does bring in some stuff, because it's mostly in a "it works" state than a "this is as good as it gets" state; our initial implementations didn't even do much optimization at all. Last I checked (last November), an example TodoMVC was to ~650K total, and given that the smallest known Rust binary is 151 bytes, I'd imagine that only gets smaller into the future.
https://cryze.github.io/advent-of-code-2016/ https://cryze.github.io/advent-of-code-2016/ has a bunch of Advent of Code programs in Rust, compiled this way; Day 1 is weighing in at 300kb, it looks like.
asmjs is also much larger than wasm, day 3 is showing 1.4 MB for asm, but 69kb for wasm.