Example code for Beaming up with Alien and Lua by Brandon Philips @ Open Source Bridge 2011
All of this works in OS X 10.6. Patches accepted to get things working in other OSes.
brew install lua luarocks sqlite luarocks install alien
Example app for calling puts from lua with alien.
Example app running sqlite queries from lua with alien
Example embedding lua into a C application
Example of calling C code from lua
Example of using the sqlite API in C
Dirty test of libffi's speed
Stupid lua script
Peek into libffi's working's with some GDB dumps