Embedding LuaJIT in 30 minutes
en.blog.nic.cz
en.blog.nic.cz
For example it's being used in Redis to provide Lua scripting, and can also be used with nginx (OpenResty). While developing Kong (https://github.com/Mashape/kong) we noticed that LuaJIT provided substantial performance improvements.
I hope that the recent step down of the main committer won't affect the future of the project [1].
[1] http://www.freelists.org/post/luajit/Looking-for-new-LuaJIT-...
It's fascinating to compare LuaJIT's implementation to the huge complexity and resulting lengthy compile times of the JIT compiler built into LLVM. Mike learned a lot from Smalltalk, IIRC.
I'm kinda sad that this means we probably won't get to see his four-color garbage collector[0]. That's a great link, taught me a lot about garbage collection in general.
[0] http://wiki.luajit.org/New-Garbage-Collector
That all said, CloudFlare is good hands to put the project in, and I foresee good things in store for it.
Just curious as to why you chose Lua, and what your experience with it was.
Lua is a very simple language, no batteries included, that's easy to learn and actually quite fun to write. It also has a package manager called Luarocks [2] (that Kong is sponsoring too). The ecosystem is still relatively young, but it's growing - and that's also thanks to tools like LuaJIT.
I've seen entire game logic done in 200kb on platforms that had less than 32mb of total CPU memory.