Re:Wasm3 compiles itself (using LLVM/Clang compiled to WASM)
by brundolf on Saturday April 24, 2021 @09:31PM
(#26929607)
At that point, what's the purpose of using WASM at all?
[ Parent
| on HN ]
Re:Wasm3 compiles itself (using LLVM/Clang compiled to WASM)
by ReactiveJelly on Saturday April 24, 2021 @10:37PM
(#26929921)
You can keep the sandbox intact after AOT.
https://hacks.mozilla.org/2020/02/securing-firefox-with-weba...
> The core implementation idea behind wasm sandboxing is that you can compile C/C++ into wasm code, and then you can compile that wasm code into native code for the machine your program actually runs on. These steps are similar to what you’d do to run C/C++ applications in the browser, but we’re performing the wasm to native code translation ahead of time, when Firefox itself is built.
It's a middle ground between sandboxing with subprocesses (which adds all the overhead of IPC) and switching to a fully memory-safe language (Rust, JS, etc.)
Re:Wasm3 compiles itself (using LLVM/Clang compiled to WASM)
by seg_lol on Sunday April 25, 2021 @11:28PM
(#26938974)
Control Flow Integrity, https://en.wikipedia.org/wiki/Control-flow_integrity
Re:Wasm3 compiles itself (using LLVM/Clang compiled to WASM)
by smasher164 on Sunday April 25, 2021 @12:01AM
(#26930263)
If I were writing a sandboxing or instrumentation tool, operating on WASM would be much simpler than dealing with the quirks of assembly, syscalls, or some higher-level IR.