Could you show the actual code required for Lua? Is it able to catch heap overflows in Lua code? When there is a conversion error, does the error message indicate which parameter is causing the problem? How must the glue code be written to avoid space leaks and dangling references? Does it support bignums?
The Gambit FFI was designed to interface to C libraries directly (without having to write glue code). Is this possible with Lua’s FFI?
Marc
On Jan 6, 2016, at 9:41 AM, Alex Silva asandroq@gmail.com wrote:
Hallo,
On 06/01/16 15:37, Marc Feeley wrote:
I’m curious… how would it be done in Lua?
All C functions exported to the Lua VM must take a `lua_State*` argument. The Lua VM has no global variables and is completely contained in the passed state.
Cheers,
Cheers,
-alex http://unendli.ch/