4 ms·
I know the industry has moved on to WebAssembly, but I thought it might be worth mentioning that I just recently finished a personal project to compile an arbit
by idealmedtech 4y ago
I know the industry has moved on to WebAssembly, but I thought it might be worth mentioning that I just recently finished a personal project to compile an arbitrary NodeJS script in QuickJS and call the code from C - all* in a statically or dynamically linked library, no support files.
In case anyone is interested in calling JS from old school C-supported languages, check it out: https://github.com/ijustlovemath/determine-basal-native https://github.com/ijustlovemath/determine-basal-native
It's specific to my application but could easily be reused with a few tweaks.
* Mostly all, the last step is to store the ESM JS script text in an object file and link it in, which I'm still working on.