Skip to main content

Qter,我们的JavaScript平台正在如火如荼地进行

Comments

原文链接:[Kent Hansen](http://labs.qt.nokia.com/author/kent/) - [Qt people, our JavaScript platform is burning rubber](http://labs.qt.nokia.com/2011/02/24/qt-people-our-javascript-platform-is-burning-rubber/)

我们正在积极地研究Google的[V8 JavaScript引擎](http://code.google.com/p/v8/),以将其应用到Qt中。由于法律方面的原因,之前我们不得不把工作放在幕后进行,但现在是回归的时候了:

[http://qt.gitorious.org/qt/qt-script-ng](http://qt.gitorious.org/qt/qt-script-ng)

目前这是一个完整的Qt克隆。你可以在[QtScript wiki](http://developer.qt.nokia.com/wiki/Category:Developing_Qt::Qt_Script)上找到更多关于此项目的信息。我们还为JavaScript/Qt开发创建了[邮件列表](http://lists.qt.nokia.com/mailman/listinfo/qt-script),和一个FreeNode上的IRC频道,#qt-script。如果你对Qt的JavaScript(在QML, QtWebkit或者自定义程序的嵌入)的集成(的未来)有兴趣,欢迎参与!

基于V8的后端的状态是,我们仍有一部分QtScript的API未实现,以及自动测试失败([QTBUG-17640](http://bugreports.qt.nokia.com/browse/QTBUG-17640")),但QtScript和QML的一些例子和演示程序已经可以运行。除了与当前的Qt在行为上兼容之外,我们还需要确保在V8支持的Qt成为可选解决方案之前,C++/JS层不存在任何性能缺口。如笔者在[前面发表的文章](http://labs.qt.nokia.com.cn/2011/02/10/resolving-qtscripts-legacy-apis/) ([英文原文](http://labs.qt.nokia.com/2011/01/20/resolving-qtscripts-legacy-apis/")) 中提到的,我们同时着眼于修剪目前臃肿的API,以便切换(到V8)更可行。

Comments

Subscribe to our blog

Try Qt 6.11 Now!

Download the latest release here: www.qt.io/download

Qt 6.11 is now available, with new features and improvements for application developers and device creators.

We're Hiring

Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.