3 ms·
I wouldn't say the source language is not meaningful. If you wrote an ahead-of-time JavaScript-to-WebAssembly compiler and benchmarked the WASM generated by tha
by yatac42 4y ago
I wouldn't say the source language is not meaningful. If you wrote an ahead-of-time JavaScript-to-WebAssembly compiler and benchmarked the WASM generated by that, it would probably be a lot slower than the WASM generated by the Rust compiler, no?
- throwaway894345 4y agoHas anyone compiled v8 to WASM so we can finally run JS in the browser? ;)
- mrtesthah 4y agoplease don’t give them more ideas
- hunterb123 4y agov8 is a JIT engine, WASM would not support it. JavaScriptCore has been compiled to WASM though: https://mbbill.github.io/JSC.js/ https://mbbill.github.io/JSC.js/ People usually ask why, the answer is usually for fun or for sandboxed plugins.
- amluto 4y agoI imagine that, if one were feeling extremely masochistic, one could generate WASM, JIT-style, and load it as needed. The result may not perform well.
- throwaway894345 4y agoI assumed the JIT would emit WASM.