Lua: luaL_loadfile_factory()
I just implemented a script-cache for MySQL Proxy and had to learn a bit more about lua internals. As a result I wrote two functions which are generic enough for general consumption:
luaL_loadfile_factory()luaL_loadstring_factory()
They also show how to write a lua_Reader for lua_load().
The #lua channel on freenode was ...