lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 9 February 2011 13:04, Pavel Holejsovsky <pavel.holejsovsky@gmail.com> wrote:
> realized that dynamic approach would be better - uses binary .typelib files
> at runtime to lookup function and type info and calls function using libffi.
>  At the beginning it looked simple enough (but it wasn't :-)

Any idea on the call overhead? Glib+Gio provides a fairly good
standard library if the overhead of each call is not too high, while
it's not likely to matter much for most GUI code. Also, have you
looked at the in-development LuaJIT2 FFI API and considered if it
might at some point be possible to make use of that rather than
libffi?

Alex