Wasm Builders 🧱

Discussion on: Compiling Javascript to wasm

Collapse
 
nick profile image
Nick Vidal • Edited

That's a good question, @webcoder. So one key reason would be security. Since WebAssembly uses a sandbox model, you can prevent a malicious or buggy JavaScript application from compromising the host. Other reasons might be performance and portability. Depending on the application, it might be faster to run the WebAssembly code directly (no Nodejs overhead). As for portability, you might run this same application anywhere without recompilation (server, client, edge, IoT, whatever).

Collapse
 
salimf profile image
SalimF • Edited

For me, it was simply getting byte code off my JavaScript files, it's like dream comes true.

Collapse
 
gunjan_0307 profile image
gunjan agarwal

@nick Thanks for so good explanation. :)