Live data from Hacker News

Duktape: an embeddable JavaScript engine

duktape.org

1–10 of 44 posts

Re: Duktape: an embeddable JavaScript engine

#5
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?

Re: Duktape: an embeddable JavaScript engine

#6
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.

Here are some related projects I saved links to. I think there were a few others.

http://code.google.com/p/tiny-js/

http://adaptive-enterprises.com/~d/software/see/

http://sourceforge.net/projects/njs/

v8 is an obvious open source implementation, because it's packaged separately (and used in node.js), but its API is C++ and relatively complex. For a lot of applications, it's overkill.

Re: Duktape: an embeddable JavaScript engine

#7
post #6

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. Here are some related projects I saved links to. I think there were a few others. http://code.google.com/p/tiny-js/ http://adaptive-enterprises.com/~d/software/see/ http://sourceforge.net/projects/njs/ v8 is an obvious open source impleme…

JavaScriptCore (the engine from WebKit) also has a very simple C interface (and I've seen it embedded by people as a static library without serious difficulty).

Re: Duktape: an embeddable JavaScript engine

#8

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?

Probably because Lua is horrible and JavaScript is awesome. Also npmjs.

Re: Duktape: an embeddable JavaScript engine

#9
Why does the readme say "liberal license" when the license file is in fact "MIT license" 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) )?

Re: Duktape: an embeddable JavaScript engine

#10
The idea is good, I remember that other projects like Avidemux integrate QtScript or Spidermonkey for scripting.

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?

Post reply on HN