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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Duktape: an embeddable JavaScript engine

109 点作者 brassybadger大约 11 年前

15 条评论

chubot大约 11 年前
This looks really cool. I always wanted a small embeddable JS engine with a C interface. And it looks like you modelled the C API after the Lua C API? That is what I wanted as well.<p>Here are some related projects I saved links to. I think there were a few others.<p><a href="http://code.google.com/p/tiny-js/" rel="nofollow">http:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;tiny-js&#x2F;</a><p><a href="http://adaptive-enterprises.com/~d/software/see/" rel="nofollow">http:&#x2F;&#x2F;adaptive-enterprises.com&#x2F;~d&#x2F;software&#x2F;see&#x2F;</a><p><a href="http://sourceforge.net/projects/njs/" rel="nofollow">http:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;njs&#x2F;</a><p>v8 is an obvious open source implementation, because it&#x27;s packaged separately (and used in node.js), but its API is C++ and relatively complex. For a lot of applications, it&#x27;s overkill.
评论 #7456064 未加载
deckiedan大约 11 年前
Awesome. This is exactly what I wanted. Hopefully now I can make a standalone statically linked version jslint, lessjs, etc, so I can use them as part of my workflow without needing the whole flipping Node stack installed...
评论 #7458124 未加载
PythonicAlpha大约 11 年前
The idea is good, I remember that other projects like Avidemux integrate QtScript or Spidermonkey for scripting.<p>Has anybody experience, how the integration overhead is? Looks as this could be integrated very simply. The problem is, that it is in alpha stage and how stable and complete is it currently?
评论 #7457498 未加载
bichiliad大约 11 年前
What is the advantage of something like this? (Not trying to be cynical, I just have no idea).
评论 #7456217 未加载
评论 #7456001 未加载
评论 #7458037 未加载
sitkack大约 11 年前
<a href="http://www.reddit.com/r/programming/comments/1uv5n0/duktape_an_embeddable_javascript_engine/" rel="nofollow">http:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;1uv5n0&#x2F;duktape_...</a>
skrebbel大约 11 年前
Is size the main selling point? 4 years ago or so, I integrated SpiderMonkey into a C++ program with relative ease; it has an easy to understand C API and no dependencies.
评论 #7457410 未加载
igl大约 11 年前
Great... If every aspect of lua wasn&#x27;t better than js.
评论 #7456584 未加载
angersock大约 11 年前
Bloody wonderful!<p>I&#x27;m quite pleased to see a compact and reasonable C interface for a JS engine--v8 can go eat a bag of rocks.
评论 #7456536 未加载
icefox大约 11 年前
Why does the readme say &quot;liberal license&quot; when the license file is in fact &quot;MIT license&quot; Why hide the fact that it is under the MIT license? Why is there a folder called licenses and why does it contain an unfilled in license (Copyright (c) &lt;year&gt; &lt;copyright holders&gt;)?
评论 #7456807 未加载
bsilvereagle大约 11 年前
If this is embedded in C++ I feel like you would be manipulating objects in the JavaScript scripts. JavaScript has OOP bolted on and it is not nearly as nice as Lua or similar alternatives. Why would a developer embed a JavaScript engine compared to something already existing?
评论 #7456396 未加载
评论 #7456224 未加载
评论 #7456187 未加载
评论 #7456138 未加载
PaulFreund大约 11 年前
It always amazes me how often topics I currently work on come up here. I am currently thinking about using <a href="http://www.chaiscript.com/" rel="nofollow">http:&#x2F;&#x2F;www.chaiscript.com&#x2F;</a>
NAFV_P大约 11 年前
Is the name &quot;Duktape&quot; a reference to Perl [0]?<p>[0] <a href="http://www.salon.com/1998/10/13/feature_269/" rel="nofollow">http:&#x2F;&#x2F;www.salon.com&#x2F;1998&#x2F;10&#x2F;13&#x2F;feature_269&#x2F;</a>
edwinyzh大约 11 年前
Sounds great! I wish there will be a DLL version for Windows, so that people can make wrappers in other languages such as Pascal, Python, etc.
Doctor_Fegg大约 11 年前
Any benchmarks for how this typically performs against Lua?
dottrap大约 11 年前
Very interesting. How large is the binary size?
评论 #7456489 未加载