News for hackers. Stuff that matters.
Re:ElectronJS alternative: SciterJS – HTML/CSS/JS in 4.5 MB ... by jblazevic on Friday October 16, 2020 @02:13AM (#24798024)
What I find very interesting here is the QuickJS engine used in this. Developed by none other than Fabrice Bellard!
Re:ElectronJS alternative: SciterJS – HTML/CSS/JS in 4.5 MB ... by ptrott2017 on Friday October 16, 2020 @02:35AM (#24798133)
C-smile (OP) ported Fabrice Bellard's gcc code to standard C (without gcc extensions).

The Sciter engine currently uses TIScript - a language c-smile orginally developed and the kickstarter proposal is to open source Sciter as is, then replace TIScript with the QuickJS engine. (TIScript is a very nice scripting language in itself that is easily picked up by JS devs)

The standard C version of QuickJS can be compiled using visual studio on windows as can be seen in this repo: https://github.com/c-smile/quickjspp

(Edit to update to latest repo)

Re:ElectronJS alternative: SciterJS – HTML/CSS/JS in 4.5 MB ... by nly on Friday October 16, 2020 @03:08AM (#24798344)
Very much in the same vein as Duktape[0]. It looks like Duktape is smaller and has a more useful standard library, but is slower and doesn't support ES2020 features.

https://duktape.org/index.html

https://bellard.org/quickjs/bench.html

Re:ElectronJS alternative: SciterJS – HTML/CSS/JS in 4.5 MB ... by inque3d on Friday October 16, 2020 @03:32AM (#24798493)
Not just es2020, Duktape doesn't even support arrow functions and classes.

QuickJS seems interesting, but I couldn't manage to compile it on Windows (without MSYS2).

Re:ElectronJS alternative: SciterJS – HTML/CSS/JS in 4.5 MB ... by kjksf on Friday October 16, 2020 @04:02AM (#24798671)
You can use this fork for msvc support: https://github.com/c-smile/quickjspp
Re:ElectronJS alternative: SciterJS – HTML/CSS/JS in 4.5 MB ... by horsawlarway on Friday October 16, 2020 @02:28PM (#24803581)
Duktape supports ES5, with only partial support for anything ES6+ (and not much partial support, at that).

That said - having used Duktape in production, it's a very handy little library. Small, easy to drop into projects, great way to add support for custom user scripts or to run js code somewhere outside of a browser context.

Also - insanely easy to target still, despite the lack of ES6+, as long as you already have babel somewhere in your build pipeline.

Re:ElectronJS alternative: SciterJS – HTML/CSS/JS in 4.5 MB ... by nly on Friday October 16, 2020 @03:59AM (#24798651)
c-smile (author of Sciter) maintains a MSVC compatible fork https://github.com/c-smile/quickjspp/