News for hackers. Stuff that matters.
Re:Comparing Rust and JavaScript by hunterb123 on Friday July 15, 2022 @02:40PM (#32111422)
v8 is a JIT engine, WASM would not support it.

JavaScriptCore has been compiled to WASM though:

https://mbbill.github.io/JSC.js/

People usually ask why, the answer is usually for fun or for sandboxed plugins.

Re:Comparing Rust and JavaScript by amluto on Friday July 15, 2022 @04:31PM (#32112458)
I 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.
Re:Comparing Rust and JavaScript by throwaway894345 on Friday July 15, 2022 @05:10PM (#32112848)
I assumed the JIT would emit WASM.