i got my C program to call a function in lua which then calls a function in C and i feel like a god


i have never done any kind of ffi or embedding stuff before and it really feels like it should not be possible

update: i did such a bad job trying to implement something that i wanted to do with the c/lua interop that i bluescreened my fucking computer

@prophet_goddess Hot take: FFI between ANY language bites and isn't fun. Although Lua is probably one of the least bad.

I had to fix a bug in Lua bindings a few months back and it wasn't too bad. But I can't recall a lot of Lua's FFI offhand (incl. calling a C function from Lua lmao).

Sign in to participate in the conversation

single-user instance for @prophet_goddess.