哪种 JavaScript 解释器最容易嵌入到 C 应用程序中?

发布于 2024-08-06 07:43:10 字数 51 浏览 3 评论 0原文

有一些可用,我想支持许多平台,所以我想 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

简单爱 2024-08-13 07:43:10

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)

终遇你 2024-08-13 07:43:10

Spidermonkey 怎么样,因为它是用 C 编写的?

How about Spidermonkey, since it's written in C?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文