3 ms·
WASM is designed with security in mind, and specifically to provide primitives for use in a secure runtime. LLVM doesn't provide that to my knowledge... instea
by adam_arthur 3y ago
WASM is designed with security in mind, and specifically to provide primitives for use in a secure runtime.
LLVM doesn't provide that to my knowledge... instead just cross-compiling code specific to each target. Correct me if mistaken.
I imagine there are meaningful build time drawbacks to compiling an executable for each environment as well. While WASM will never outperform native code, it can get very close. Minor loss in performance is a small price to pay for portability/security.