4 ms·
With a common bytecode there would probably be a chance for languages to be fast and not stuck with translations to JavaScript for the next decade.
by soc88 15y ago
With a common bytecode there would probably be a chance for languages to be fast and not stuck with translations to JavaScript for the next decade.
- chc 15y agoCitation extremely needed here. Bytecode isn't a magic speed potion — the implementation is what will determine how fast it runs. For example, V8 ROFLstomps over the JVM-based Rhino JavaScript implementation. At any rate, any bytecode the JavaScript VM people agreed to would almost certainly correspond very closely to JavaScript, so it's not clear that a standard bytecode would make alternative languages much faster. On top of that, the optimizers in current JavaScript implementations are highly tuned for JavaScript, so a bytecode-compiled program running on V8 might actually be slower than the JavaScript we have today. Basically, without an implementation, this all sounds like pie-in-the-sky talk to me.