There’s a good chance this is realised within 5 years, built on WebAssembly.
While it’s not on the metal performance like native compilation, it’s close. I wouldn’t be surprised to see CPU instructions for WASM to get to native performance, if it got popular enough as a runtime.