Re: Why are we limited to JS in browsers - would a bytecode ...
by robhu on Thursday November 11, 2010 @01:04PM
(#1894620)
No, the idea is that you could compile whatever language you like into byte code that would then run in the browser.
Javascript might still be the main language on the web (and would probably continue to be handled in the same way it is now) but you could also use other languages.
Re: Why are we limited to JS in browsers - would a bytecode ...
by scott_s on Thursday November 11, 2010 @01:19PM
(#1894669)
For reasons that silentbicycle presents elsewhere in this thread, that goal is quite difficult. The benefits I mentioned above would be true even if no other languages compiled down to the standardized byte-code - we'd have the above benefits first.
In fact, it would be easier to to "find out wtf it's doing" because something that is now ad-hoc - what to do with the JS given to a browser - would be standardized. Keep in mind that the browsers already do something to your JS, either compile it to byte-code for the browsers own VM, or compile it directly to machine code. This proposal would standardize what the intermediate representation would be.