Hacker News new | ask | show | jobs
by qbg 5513 days ago
In theory, someone could create a common bytecode as a library. Such a library would probably use the Relooper algorithm from Emscripten (https://github.com/kripken/emscripten) and JIT the bytecode to Javascript that can then be eval'd for near Javascript-level speed.
1 comments

The whole idea is to get better performance than current JavaScript interpreters allow. Making something slower than JavaScript is the opposite of why people want a common bytecode.
It can be implemented first on Emscripten to see if people like it; later it can be standardized.