Hacker News new | ask | show | jobs
by cpeterso 1304 days ago
Firefox uses this approach to create a lightweight, in-process sandbox (called "RLBox") for some third-party libraries. The library is compiled from C/C++ to wasm and then wasm is transpiled back to C++, all at Firefox compile time so no wasm compilation is needed at Firefox run time.

https://hacks.mozilla.org/2021/12/webassembly-and-back-again...