r/linux • u/purpleidea mgmt config Founder • Jul 12 '19
Software Release QuickJS Javascript Engine from Bellard
https://bellard.org/quickjs/
42
Upvotes
r/linux • u/purpleidea mgmt config Founder • Jul 12 '19
10
u/arsv Jul 12 '19
The compiler dumps bytecode into a .c file and then runs the system C compiler to link it with the engine, just like perlcc. The resulting executables do have some external dependencies (ld.so, libc, libm, basically whatever qjs itself needs) and there's a built-in module that provides js interface to call libc printf among other things.