Comment on Where can I find tutorials on embedding Lua scripting into applications
samus7070@programming.dev 11 months agoWhile lua ships a standalone interpreter, it is very much designed to be embedded directly into an application. This is done by invoking some C apis to load the interpreter into the application’s memory space. OP wants to do that rather than invoking another process and reading the output. When embedding into a host, the host can provide its own objects to be manipulated by the user script allowing for a much better extensibility experience.
ZILtoid1991@kbin.social 11 months ago
That solution is janky and slow as hell. I'd rather just embed it into my own software, which is mostly done, except it doesn't find functions as functions, but as nil value.