Windows 8可以编译JavaScript吗? [英] Does Windows 8 Compile JavaScript?
问题描述
令人振奋的是,Windows 8为Metro App开发支持了许多语言.使我特别感兴趣的一个是HTML5/CSS/JavaScript.我不明白的是,此代码是否将以某种可执行文件(例如C#,VB和C ++选项)进行编译,或者我的应用程序基本上会在IE中作为实际的网页运行?
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?
推荐答案
是. Chakra引擎在Windows 8上执行Javascript.与.NET即时编译器类似,它可以将javascript转换为优化的机器代码.也是Google的V8和Mozilla的TraceMonkey引擎采用的方法.一些背景信息
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.
这篇关于Windows 8可以编译JavaScript吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!