I recently looked into Lua and it seems really nice. The only annoying thing is its lack of (standard) libraries. But with the JIT compiler comes along a nice FFI C interface.
Coming from a java background, i tried to avoid C as much as possible, so my question: has anyone some experience with LuaJIT, especially its FFI interface, and how difficult is it to set up a library for someone with little to no knowledge in C?
powf
takes and returnsfloat
s notdouble
s. A valid declaration should read:ffi.cdef([[ float powf(float x, float y); ]])
– Shopworn