Re:Ask HN: What source code is worth studying?
by Tanner on Thursday April 17, 2014 @09:50AM
(#7603500)
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...
Re:Ask HN: What source code is worth studying?
by fit2rule on Friday April 18, 2014 @03:45AM
(#7608331)
Wow, great find! That's from 6 years ago - truly a gem in the reddit layers .. thanks for that!
Re:Ask HN: What source code is worth studying?
by jballanc on Thursday April 17, 2014 @05:44AM
(#7602717)
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
Re:Ask HN: What source code is worth studying?
by aktau on Thursday April 17, 2014 @05:54AM
(#7602745)
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.
http://www.lua.org/source/5.2/