News for hackers. Stuff that matters.
Re: Why are we limited to JS in browsers - would a bytecode ... by InclinedPlane on Thursday November 11, 2010 @02:16PM (#1894862)
x86 was a historical accident, and yet it has become the most popular architecture for personal computers and servers in history.

There are plenty of examples of languages that are worse than Javascript for the web. Java being a perfect example. Java and Javascript co-existed on the web for quite some time (in theory they still do). Java is based on a "proper" IL. And yet here we are, talking about some hypothetical new IL to replace Javascript, despite the fact that there is no guarantee it would actually be better, as the historical example of Java has shown us.

You need to get more than just the VM "right", there's a billion other factors, Java screwed up, Javascript hit the mark (despite its many other flaws). Perhaps LLVM is the future of web applications, it's too soon to tell. What I do know is that Javascript may not be perfect but it's still fundamentally good, and powerful enough (largely through closures and prototypes) to allow for robust workarounds to its flaws (jQuery, coffeescript, etc.)

There are no comments on this comment yet.