QuickJS JavaScript Engine
11–20 of 279 posts
Re: QuickJS JavaScript Engine
#12quickjs.c is a 47,842 line C file. I think that sets the record for the largest handwritten file I've seen.
Re: QuickJS JavaScript Engine
#13Re: QuickJS JavaScript Engine
#14Would this be a suitable replacement for SpiderMonkey as an embedded JS engine for a Desktop Application?
Re: QuickJS JavaScript Engine
#15Re: QuickJS JavaScript Engine
#16Re: QuickJS JavaScript Engine
#17Would it be possible to compile a nodejs app to a binary with this? If so, would performance be any better?
Re: QuickJS JavaScript Engine
#18Earlier quoted context omitted.
This is fast enough, it could be used to write command line utilities in Javascript! What about a Javascript OS in the style of the Lisp machines or early Smalltalks?
Record-query [1] embeds v8 for its query language, which seems to add a significant amount of heft. I know that couchdb uses js for querying as well. It seems like this could be another option for something like that. [1] https://github.com/dflemstr/rq
Re: QuickJS JavaScript Engine
#19Would it be possible to compile a nodejs app to a binary with this? If so, would performance be any better?
Re: QuickJS JavaScript Engine
#20Thinking this probably didn't matter much I went ahead and ran `./qjs examples/hello.js` which worked as advertised – cool! Tried `./qjsbn examples/pi.js 5` and it worked as well – very cool! Then I tried `./qjs examples/hello_module.js` and got this:
SyntaxError: unsupported keyword: import
at examples/hello_module.js:3
I don't know what I did wrong – anyone else try it yet?