Remix.run Logo
▲ anttiharju 3 hours ago

Hah, pretty neat!

I recently discovered that one can apparently distribute Rust projects on npm by compiling to wasm. action-validator used to do this. Had been thinking about something like this.

▲combobyte 2 hours ago | parent [-]

Doesn't that kind of defeat the purpose? Compiling to WASM is going to erase any speed advantage you'd get from native Rust.

▲himata4113 2 hours ago | parent [-]

wasm compiled to native is only ~62% slower (LLVM) and only 3% slower for non memory bound operations.