TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

An embeddable JavaScript interpreter in C

26 点作者 mahmoudimus超过 5 年前

2 条评论

jraph超过 5 年前
See also QuickJS, Fabrice Bellard&#x27;s js engine: <a href="https:&#x2F;&#x2F;bellard.org&#x2F;quickjs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bellard.org&#x2F;quickjs&#x2F;</a><p>(Fabrice also started qemu and ffmpeg, wrote the tiny C compiler and broke world records for calculating pi)
shakna超过 5 年前
From what I can see [0], the API is somewhat similar to Duktape&#x27;s [1], which is good. It&#x27;s an easy to use API, which gives you as much power as you ask for. (And both have slight improvement&#x27;s over Lua&#x27;s, in getting rid of overhead for some things.)<p>---<p>Duktape uses the MIT license [2], whereas MuJS has a slightly different license [3] which is much less specific, in fact I&#x27;m not entirely certain what the license requires in a legal setting. This particular fragment:<p>&gt; Permission to use, copy, modify, and&#x2F;or distribute this software for any purpose with or without fee is hereby granted<p>Seems to imply paid licenses for MuJS, but doesn&#x27;t actually seem to require that a paid agreement be followed, providing a sort of legal escape hatch. It is just a quibble, but legal problems tend to come down to arguments over a half dozen words anyway.<p>That being said, I&#x27;m assuming MuJS is intended to be used as part of the GhostScript environment at some point, and they might have assumed that the two routes will be Artifex licensing + this other license. (The usual AGPL route they follow would have been my choice.)<p>---<p>[0] <a href="https:&#x2F;&#x2F;mujs.com&#x2F;examples.html" rel="nofollow">https:&#x2F;&#x2F;mujs.com&#x2F;examples.html</a><p>[1] <a href="https:&#x2F;&#x2F;duktape.org&#x2F;api.html" rel="nofollow">https:&#x2F;&#x2F;duktape.org&#x2F;api.html</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;svaarala&#x2F;duktape&#x2F;blob&#x2F;master&#x2F;LICENSE.txt" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;svaarala&#x2F;duktape&#x2F;blob&#x2F;master&#x2F;LICENSE.txt</a><p>[3] <a href="https:&#x2F;&#x2F;mujs.com&#x2F;license.html" rel="nofollow">https:&#x2F;&#x2F;mujs.com&#x2F;license.html</a>
评论 #21557366 未加载