您会推荐用于 GNOME 桌面应用程序的 JavaScript 吗?
随着新的 GNOME 开发人员中心 的到来,我偶然发现了 gobject 库的 JavaScript 绑定。现在,我很想阅读专家的评论,如果他(或她)会推荐/考虑将它们用于桌面应用程序。 等方面的考虑
立即:这些 API 是否已准备好可供使用,或者是否最好稍等一下,直到其更加成熟?您可以用 JS 开发整个应用程序还是将使用限制为脚本目的?
With the arrival of the new GNOME Developer Center I stumbled across JavaScript bindings for the gobject libraries. Now I would love to read a comment from an expert if he (or she) would recommend / consider using those for a desktop application. That involves consideration of aspects like
At once: Are those APIs ready for usage or would it be better to wait a little until it is more established? Can you develop a whole application in JS or would you restrict usage to scripting purposes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过 GObject Instrospection,您可以访问由 C 语言(使用 JavaScript 术语)编写的库提供的相同 API。
文档需要改进。但是,您始终可以使用 C 文档作为后备。不过,您可以在学习时帮助了解 JavaScript 文档;-)
gnome-shell 是用 JavaScript 和 C 编写的,因此 JavaScript 是 GNOME 3 中的一等公民。它不应该有性能损失(如果是这样,它应该是改进)。
有一个关于 GNOME 中 JavaScript 的未来的讨论(是否使用 gjs 还是seed),您可以在此处阅读该主题:https://mail.gnome.org/archives/desktop-devel-list/2011-April/msg00147.html
正如我之前所说,使用 GObject 自省,您可以编写一个整个应用程序都用 JavaScript 编写。例如,您可以查看“The Board”,这是一个用 JavaScript 编写的新应用程序 https://live.gnome.org/TheBoardProject< /a>
Through GObject Instrospection you have access to the same API provided by the libraries written in C (with the lingo for JavaScript).
The documentation needs to be improved. However, you can always use C documentation as fallback. Nevertheless, you can help with the documentation for JavaScript as you learn ;-)
gnome-shell is written in JavaScript and C, therefore JavaScript is a first class citizen in GNOME 3. It should not have performance penalties (if so, it should be improved).
There is a discussion about the future of JavaScript in GNOME (whether to use gjs or seed), you can read the thread here: https://mail.gnome.org/archives/desktop-devel-list/2011-April/msg00147.html
As I said previously, with GObject instrospection you can write a whole application in JavaScript. For instance, you can take a look to "The Board", a new application written in JavaScript https://live.gnome.org/TheBoardProject