LuaJIT Language Toolkit
github.com
github.com
"For those who doesn't know about the project, the LuaJIT Language Toolkit is an implementation of the Lua programming language written in Lua iself. It works by generating a LuaJIT's bytecode including the debug informations and use the LuaJIT's virtual machine to run the generated bytecode."
The closest thing is this http://www.reddit.com/r/programming/comments/1r2s82/lua_fun_...
Where someone else http://rtsisyk.github.io/luafun/intro.html attempts to generate LuaJIT bytecode directly and tracing JIT doesn't speedup their code because LuaJIT isn't designed to speedup arbitrary bytecode but bytecode generated by the LuaJIT compiler.
There was still a more specific post that I am unable to locate where Mike specifically warned against targeting LuaJIT bytecode. I'd probably just post a message on the luajit list if you want clarification.
This one? http://www.reddit.com/r/programming/comments/badl2/luajit_2_...
Ok, you read my github ;-) But yes! Lua has multiple returns, we can perform 'register allocation' and spill over onto locals. Stack? Hah.
He has his lexer done and is using a Pratt Parser (TDOP) strategy. This might give him some ideas.