Hi,
On Sat, Jan 22, 2022 at 9:35 PM Ilmari Lauhakangas <ilmari.lauhakangas@xxxxxxxxxxxxxxx> wrote:
Indeed, there are engines better suited for embedding, but then the
question becomes how well they keep up with all the new features
introduced into JS standard each year.
QuickJS[0] appeared on the scene in 2019 and caused a lot of excitement
due to the nice support for new JS features. However, it has remained as
more of a "man throws code over the wall occasionally" type of project.
Duktape[1] is lagging behind in the latest JS features, but is still
actively developed, is used by many projects[2] and has a very good
Linux packaging coverage[3]. One widely-deployed project currently
adopting Duktape is polkit[4] (moving away from mozjs).
Probably it is better to invest into integrating a WebAssembly runtime like Wasmer. Not only would we get JS but also support for a bunch of other languages and have support for a platform independent binary execution format.
Regards, Tomaž