2 ms·
LuaJIT has a pretty great FFi which was later ported to standard Lua; Python’s ctypes provides a decent FFI. Nim, Zig and Rust do too, but they have semantics
by beagle3 4y ago
LuaJIT has a pretty great FFi which was later ported to standard Lua; Python’s ctypes provides a decent FFI.
Nim, Zig and Rust do too, but they have semantics much closer to C, so it’s almost free (especially when they can all use llvm directly for code generation, and Nim’s preferred way is to compile through C in the first place)