4 ms·
Would this be a suitable replacement for SpiderMonkey as an embedded JS engine for a Desktop Application?
by dodo6502 7y ago
Would this be a suitable replacement for SpiderMonkey as an embedded JS engine for a Desktop Application?
- TAForObvReasons 7y agoMany projects use duktape (https://duktape.org/ https://duktape.org/)
- megous 7y agoThere's also XS6 engine. But I dislike the macro trickery in that one. Looks like QuickJS doesn't use setjmp/longjmp, as opposed to duktape. I really like this, as it will simplify memory management inside C functions, and allow to use gcc cleanup functions.
- megous 7y agoSo I used QuickJS for a while today and it's the easiest JS engine of those I used so far (Duktape, XS6) to embed, even without extensive docs. I can't be happier that it doesn't use setjmp/longjmp to handle exceptions. It makes memory management easier. Everything is very straightforward. You can even get ref leaks report if you use -DDUMP_LEAKS.