Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Windows 8 Compile JavaScript?

It is exciting that Windows 8 is supporting so many languages for Metro App development. One that especially interested me was the HTML5/CSS/JavaScript. What I don't understand, is this code going to get compiled in a sort of executable (like the C#, VB, and C++ option), or would my app basically be running in IE as an actual web page?

like image 436
Greg Potter Avatar asked Dec 28 '11 16:12

Greg Potter


1 Answers

Yes. Javascript is executed on Windows 8 by the Chakra engine. Similar to the .NET just-in-time compiler, it translates javascript to optimized machine code. Also the approach taken by Google's V8 and Mozilla's TraceMonkey engines. Some background info is here.

like image 132
Hans Passant Avatar answered Oct 02 '22 04:10

Hans Passant