Google Chrome: Why I’m Not Excited
blog.hempton.com
blog.hempton.com
several==2 #for larger values of 2And the payoff for that extra complexity and a probable loss of performance is... what, exactly?
Particularly when you consider that even if Chrome did have a VM that could run compiled Flash, Python, Ruby, and Lisp... very few programmers would ever use those languages, because the resulting code wouldn't work in any other browser?
Unless you require a plugin, Javascript is the greatest common factor in modern browsers. That's not going to change in the foreseeable future, both because it's a very tedious long-term project to establish and promote a cross-browser alternative, and because the payoff is probably not big enough to justify that effort: As guys like Yegge and Crockford have pointed out, Javascript is a pretty good language to have gotten stuck with, once you learn to steer around the kludged bits.
I don't think this is necessarily the way to go, but I think it's an interesting idea. I pointed it out because this blog post is the first place I've seen it.
It's just a slightly different path to the same final machine code running in the same environment, and neither the conversion to JS nor the alternate theoretical conversion to bytecodes may be a noticeable bottleneck in real apps.
(Also: I'm not even sure his assumption is correct. V8 might use some intermediate representation that other languages could target in preference to JS source. Someone who's familiar with the source/architecture would have to say.)
The OP was right about JavaScript compiling straight down to machine code though: http://code.google.com/apis/v8/design.html#mach_code
If you want to go deep in that direction look at http://codespeak.net/pypy/dist/pypy/doc/js/whatis.html
but really, just learn javascript it's not that bad.
Ocaml to javascript compiler: http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascr...
Haskell to javascript compiler: http://www.haskell.org/haskellwiki/Yhc/Javascript
Haxe to javascript compiler: http://haxe.org/doc/start/js
ECMAScript4 to (classic) javascript compiler: http://ecmascript4.com/
Java to javascript compiler: http://code.google.com/webtoolkit/documentation/com.google.g...
I'm sure there are others as well.
A "Lispy" language to javascript: http://common-lisp.net/project/parenscript/
The other platforms are generally dominated by tech savvy users but in the big scheme of things we make up a very small part of the internet as a whole. I'm sure they just wanted to spend more time focussing on getting a larger number of customers adopting early than spreading resources thinly.
If anything I think it shows a great amount of respect on Google's behalf of its Linux and Mac users, because I dont think they would have wanted to release a buggy piece of crap to their users if they had limited resources on the project.