* FFI Library Extension

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

FFI Library Extension

Post by tatewise »

While investigating the Problem with utf8 library (19608), the module https://github.com/Stepets/utf8.lua revealed that it can use the FFI Library Extension for calling external C functions and using C data structures from pure Lua code.

On initial reading, it seems that FFI may offer some power user benefits in functionality and especially runtime.
Is this FFI library something that anybody else might find useful and is it worth arranging for it to be available with FH?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ColeValleyGirl
Megastar
Posts: 5465
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: FFI Library Extension

Post by ColeValleyGirl »

If it isn't a pure Lua library it will be a problem getting it packaged too work reliably in all environments. Plus
The ffi library is tightly integrated into LuaJIT (it's not available as a separate module). The code generated by the JIT-compiler for accesses to C data structures
So I think it's a non starter.
Post Reply