TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

An embeddable JavaScript interpreter in C

26 pointsby mahmoudimusover 5 years ago

2 comments

jraphover 5 years ago
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)
shaknaover 5 years ago
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 未加载