Friday, September 12, 2008

V8 new Google JavaScript Engine

One of the thing that I hate most on Javascript is
Every navigator needs its own code, JavaScript is JavaScript but some minor changes make this script runs on IE and not on Firefox or Opera. So you need to detect the browser, then redirect the navigator to the right code snippet.
I was always wandering why we don't put a unique language. Even for markup languages, there's HTML and the language used by Wikipedia.. However, every browser works with HTML and that's the good point.

When Google launched Chrome, its new browser, they was aiming on a solid and powerful Javascript Engine.

V8 is Google new Javascript Engine. What's V8?
V8 is Google's open source JavaScript engine.

V8 is written in C++ and is used in Google Chrome, the open source browser from Google.

V8 implements ECMAScript as specified in ECMA-262, 3rd edition, and runs on Windows XP and Vista, Mac OS X 10.5 (Leopard), and Linux systems that use IA-32 or ARM processors.

V8 can run standalone, or can be embedded into any C++ application.

Now let's do it quickly, just download V8 engine, extract the .zip archive and open "run.html". (Firefox 3.0 in my case).

Other attractive thing, is that V8 Logo


The V8 engine will process a test, in my case the score was 65, the bigger your score is, the better performance are.

Score Results:

Richards: 72
DeltaBlue: 79
Crypto: 46
RayTrace: 48
EarleyBoyer: 92

Seems interesting this V8? More than 11K lines. Finally that's a big project.

No comments:

Interested on Microsoft Technologies? Read Visual Studio Dot Net