final [GrapheneOS] 📱👁️🗨️ on Nostr: Chromium has merged the WebAssembly interpreter submitted by a Microsoft Edge ...
Chromium has merged the WebAssembly interpreter submitted by a Microsoft Edge engineer:
https://chromium-review.googlesource.com/c/v8/v8/+/5509903Once this reaches a Chromium stable release, Vanadium will support WebAssembly by default instead of requiring turning on JS JIT via drop-down site settings. Example of a site using it is Mutiny Wallet.
Chromium has a V8 Optimizer toggle for disabling the 2 optimized tiers of the Just-In-Time (JIT) compiler to greatly reduce attack surface. However, it doesn't disable baseline JIT and therefore still does dynamic native code generation. They did this to avoid breaking Wasm.
In Vanadium, our JIT toggle fully disables the JIT and therefore currently loses Wasm support. An increasing number of sites are depending on Wasm with no fallback to JavaScript. Most of these sites perform perfectly fine with only the fast V8 interpreter and no JIT compilation.
Vanadium has JIT compilation disabled by default as part of the security focus. This Wasm interpreter will be a nice usability improvement for sites depending on it with no fallback code since users won't need to toggle on the JIT compiler for the site unless it performs badly.
Published at
2024-07-26 09:34:44Event JSON
{
"id": "ab52bbce99d562edab8b36dfdc7f543d63a97a6d06d7b878da9d1fee3d3ac693",
"pubkey": "c15a5a65986e7ab4134dee3ab85254da5c5d4b04e78b4f16c82837192d355185",
"created_at": 1721986484,
"kind": 1,
"tags": [
[
"r",
"https://chromium-review.googlesource.com/c/v8/v8/+/5509903"
]
],
"content": "Chromium has merged the WebAssembly interpreter submitted by a Microsoft Edge engineer:\n\nhttps://chromium-review.googlesource.com/c/v8/v8/+/5509903\n\nOnce this reaches a Chromium stable release, Vanadium will support WebAssembly by default instead of requiring turning on JS JIT via drop-down site settings. Example of a site using it is Mutiny Wallet.\n\nChromium has a V8 Optimizer toggle for disabling the 2 optimized tiers of the Just-In-Time (JIT) compiler to greatly reduce attack surface. However, it doesn't disable baseline JIT and therefore still does dynamic native code generation. They did this to avoid breaking Wasm.\n\nIn Vanadium, our JIT toggle fully disables the JIT and therefore currently loses Wasm support. An increasing number of sites are depending on Wasm with no fallback to JavaScript. Most of these sites perform perfectly fine with only the fast V8 interpreter and no JIT compilation.\n\nVanadium has JIT compilation disabled by default as part of the security focus. This Wasm interpreter will be a nice usability improvement for sites depending on it with no fallback code since users won't need to toggle on the JIT compiler for the site unless it performs badly.",
"sig": "93fdcf30c0c160eae225af5370450ae9c9b12d71336a8dd9be2c32288cfc236b7ede41e9cd40dcf7f72afc022cfea2d9cfe5a30d19af16eb75937de646a4327b"
}