3 ms·
Any experience embedding deno in a c++ application? I absolutely lovehow seamlessly lua integrates into my code, but I just find the language itself absolutely
by crocodiletears 6y ago
Any experience embedding deno in a c++ application? I absolutely lovehow seamlessly lua integrates into my code, but I just find the language itself absolutely unpleasant to work with.
- vinkelhake 6y agoDeno uses V8. If you want to embed a JS runtime in C++ then just use V8 directly. Deno is mostly written in rust.
- crocodiletears 6y agoAh, I hadn't realized that. For some reason I fell under the impression that it was its own JS engine.
- yesbabyyes 6y agoIf it's the syntax that troubles you, you could have a look at MoonScript, a little language that compiles to Lua, inspired by CoffeeScript and bringing with it some niceties.
- jitl 6y agoI think QuickJS is the best option for embedding a JS interpreter. It’s a bit on the heavy side, but it supports a lot of modern ES2020 stuff. https://bellard.org/quickjs/quickjs.html https://bellard.org/quickjs/quickjs.html