Hacker News new | ask | show | jobs
by fit2rule 4446 days ago
The sources to Lua are pretty darn great:

http://www.lua.org/source/5.2/

2 comments

Here's is Mike Pall's ( the originator of LuaJIT ) guide to reading the Lua source code: http://www.reddit.com/comments/63hth/ask_reddit_which_oss_co...
Wow, great find! That's from 6 years ago - truly a gem in the reddit layers .. thanks for that!
Agreed, and after you've worked through the source to the canonical implementation of Lua, you can level-up by looking into the source of LuaJIT: http://luajit.org/download.html
Both are immensely awesome codebases, but the level-up is perhaps a bit too steep. Going from delightful ANSI C (vanilla Lua) to a lot of assembly + C (LuaJIT's interpreter) and runtime assembly generation (the JIT) is no slight task.