4 ms·
Why would you choose to use this runtime, rather than, say, writing your program in Rust to get both its safety guarantees and native performance?
by tensors 4y ago
Why would you choose to use this runtime, rather than, say, writing your program in Rust to get both its safety guarantees and native performance?
- colordrops 4y agoPerformance is going to be fast enough in most cases, you get the extra sandboxing, and it runs multiplatform. I'm not speaking from experience but just my understanding, so I may be incorrect.
- anderspitman 4y agoA standard Rust program has full access to any filesystem, network, etc resources that the user running the program has. WASM sandboxes these resources by default, only giving the program access to exactly what you explicitly allow at runtime.
- vanous 4y agoThis allows you to run my library without having to trust me or my code.
- encryptluks2 4y agoIsn't that what Docker, firejail, nsjail, flatpak and others already achieve...?
- awestroke 4y agoNo
- encryptluks2 4y agoYes