哪种 JavaScript 解释器最容易嵌入到 C 应用程序中?
有一些可用,我想支持许多平台,所以我想 V8 不是那么好,除非有人为它编写了解释器补丁。
There are a few available and i want to support many platforms so i guess V8 isn't that good unless someone has written an interpreter patch for it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
JavaScriptCore(WebKit JS 引擎)具有纯 C API,可保证 API 和 ABI 稳定性 - 您可以从 http: //webkit.org 但它是 macos 上的一个系统框架,并且至少在 debian 中分发(-不稳定?)。它可以在所有平台上运行,因为它同时具有解释器和 jit(在 x86 和 x86-64 上稳定)
JavaScriptCore (the WebKit JS engine) has a pure C API that has guaranteed API and ABI stability -- you can build from source available at http://webkit.org but it's a system framework on macos, and is distributed at least in debian (-unstable?). It runs on all platforms as it has both an interpreter and a jit (which is stable on x86 and x86-64)
Spidermonkey 怎么样,因为它是用 C 编写的?
How about Spidermonkey, since it's written in C?