[Development] syncqt.pl in C++

Joerg Bornemann joerg.bornemann at qt.io
Fri Mar 10 13:48:18 CET 2017


On 09/03/2017 07:55, Thiago Macieira wrote:

> Have you tried the JerryScript interpreter?

No, but we have tried Duktape a year ago.
I stopped working on a switch to Duktape because of three things:
1. C++-references to JS objects. One had to make sure that the engine 
doesn't garbage collect what you're referencing. That was possible in a 
hacky way.
2. Much worse: no way of implementing a QScripClass-like facility. 
Solvable, for sure, but nothing that's done easily along the way.
3. The insight that if we have to ship a JS engine anyways it can just 
be QtScript, or a stripped-down version of it for my sake.


On 10/03/2017 12:03, Corentin wrote:

 > JSC is pretty slow to build compared to V4. I think It's an
 > inconvenient.

Do we have numbers for that?

Anyways, the usage of JavaScriptCore is conveniently hidden behind the 
QtScript API. Any JavaScript engine can be plugged into qbs by writing 
an adapter that provides the subset of QtScript's API qbs uses.


BR,

Joerg



More information about the Development mailing list