3 ms·
> WASM is not strictly for the web, its a generic low-level language target/series of specs. What about it is preferable to MLIR or even LLVM? https://mlir.ll
by jjtheblunt 3y ago
> WASM is not strictly for the web, its a generic low-level language target/series of specs.
What about it is preferable to MLIR or even LLVM?
https://mlir.llvm.org/ https://mlir.llvm.org/
- adam_arthur 3y agoWASM 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.