Cover of Programming In Lua

Programming In Lua

by Roberto Ierusalimschy · first published 2003

67mentions
34recommended by
48HN commenters
2008–2026first – last mentioned

71% recommend27% neutral2% critical

Why HN recommends it

Concise, clear and authoritative language guide by one of Lua's creators, often likened to K&R. Covers the whole language, including coroutines, metamethods and the C API; suits programmers learning Lua quickly.

Summarised by Claude from recommending comments

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

90 2007: 0 mentions2008: 1 mention2009: 3 mentions2010: 7 mentions2011: 9 mentions2012: 5 mentions2013: 2 mentions2014: 1 mention2015: 4 mentions2016: 6 mentions2017: 1 mention2018: 1 mention2019: 3 mentions2020: 3 mentions2021: 2 mentions2022: 2 mentions2023: 1 mention2024: 1 mention2025: 6 mentions2026: 1 mention200720172026

What Hacker News says

  • silentbicycle · Jan 21, 2010 · Recommends

    …good: "The Implementation of Lua 5.0" (http://www.tecgraf.puc-rio.br/~lhf/ftp/doc/sblp2005.pdf). Past discussion: http://news.ycombinator.com/item?id=617278 If you want to learn Lua, Ierusalimschy's _Programming in Lua_ (http://www.inf.puc-rio.br/~roberto/pil2/) is by far the best book. Lua is one of my favorite languages. While it's good on its own, you'll get a lot more out of it if you're comfortable with C. Lua+C…

    on “Love for LuaJIT” ↗
  • jessehorne · Sep 25, 2020 · Recommends

    …interesting books... 1. What would Machiavelli do 2. The Tao of Pooh 3. The Conquest of Bread On programming or engineering? 1. Pragmatic Programmer 2. Mr. Neighborlys Humble Little Ruby Book 3. Programming in Lua I feel put on the spot. I thought there would be more but I can't think of any at the moment. If you ever make a post asking for YouTube video suggestions, I'll definitely be able to comment on that…

    on “Ask HN: What books do you recommend?” ↗
  • silentbicycle · Nov 7, 2009 · Recommends

    …library that provides a drop-in scripting language for C projects. It's a also nice language in its own right, simple but very expressive, and stylistically somewhere between Python and Javascript. (_Programming in Lua_ by Ierusalimschy is the only book you need, though having a printed copy of the reference manual wouldn't hurt.) Prolog is a fun language. You'll probably need to stick with it a while before it switches…

    on “Ask HN: Confused semi-newbie programmer needs some advice.” ↗
  • jsyedidia · Apr 4, 2010 · Recommends

    I also want to defend Programming in Lua, which is probably the best single book devoted to a programming language that I've ever read (only K&R comes close). I'm not alone in thinking highly of it--on Amazon, of the 30 reviews, 25 give it 5…

    on “Rethinking Programming Language Tutorials” ↗
  • silentbicycle · May 7, 2010 · Recommends

    …(http://www.literateprogramming.com/ctraps.pdf) that grew into the book is even free online. Also, for anybody doing modern C work, I strongly recommend both Hanson's _C Interfaces and Implementations_ and Ierusalimschy's _Programming in Lua_, 2nd ed. The former nails writing good C libraries, and the latter covers one particular library that provides a portable, C-friendly, mature, efficient (http://luajit.org/), ready-made scripting language…

    on “C Language Quirks” ↗
  • telemachos · Apr 30, 2012 · Recommends

    Roberto Ierusalimschy's Programming in Lua, 2nd Ed. is an absolute gem. Well written, concise and very authoritative (he's one of the language's co-creators). One thing worth knowing though: he's working on the 3rd edition (updated for Lua 5.2),…

    on “The evolution of Lua” ↗
  • Vaskivo · Apr 9, 2015 · Recommends

    …technical books, but I was expecting something like "Theme X. This is what philosopher A thinks of it. This is what philosopher B thinks of it. This is how these theories clash". Probably gonna drop it. Programming in Lua, Roberto Ierusalimschy. The first programming language book I bought since college. IMO, Lua is the most well-designed and beautiful language yet (from the one I know). The book is clear, concise, full…

    on “Ask HN: Which book are you reading these days?” ↗
  • justincormack · Jun 22, 2015 · Recommends

    Programming in Lua by Roberto Ierusalimschy is one of the best introductions to any programming language. Hw writes the new version along with each language release now, on the grounds that if you cannot explain it right…

    on “Ask HN: What are some of the best written programming books?” ↗
  • bayareaguy · Dec 7, 2008 · Recommends

    …either - very specific and highly technical (e.g Schneier's "Applied Cryptography") - very general (e.g. Kernighan & Pike's "The Practice of Programming") or - define the language (e.g. Ierusalimschy's "Programming in Lua") it's pretty rare for me to find a good programming book that can both challenge me to think in a useful way and also be useful in other situations where I don't want to think. Hillegass's book is…

    on “Holy crap, an Objective-C text that doesn’t assume you’re retarded” ↗
  • bayareaguy · Aug 15, 2009 · Recommends

    …the web. The last such book I found was Kurt Jung and Aaron Brown's "Beginning Lua Programming". It's full of well-organized time-saving details and an excellent companion to Roberto Ierusalimschy's "Programming in Lua", a book at the same quality level as K&R's "The C Programming Language". Unless the price is an absolute bargin, I won't bother buying a printed book unless it's as good as those.

    on “Do programmers still buy printed books?” ↗
  • silentbicycle · Feb 12, 2010 · Recommends

    …doesn't really have a module system, per se. 5.1 also has a better garbage collector. LuaJIT (which is based on Lua 5.1) is also an option, if you're on 32-bit i386. For learning Lua, Ierusalimschy's _Programming in Lua_ is the best book, by leaps and bounds. There are a couple other Lua books, but that one is succinct yet comprehensive, like K&R and Pike's Bell Labs stuff. The Lua Users' Wiki (http://lua-users.org/wiki/)…

    on “Why nobody talks about Lua” ↗
  • silentbicycle · Apr 13, 2010 · Recommends

    While there aren't a whole lot of books about Lua, the official one (Ierusalimschy's _Programming in Lua_, 2nd ed., AKA, "the blue PiL") is excellent. That, the wiki, and mailing list archives (http://lua-users.org/) should pretty much cover things. The reference manual is also helpful, particularly for…

    on “Project Euler” ↗
  • silentbicycle · Oct 1, 2010 · Recommends

    …(in a ~200k C library), has prototype-based objects, a JSON-like native datatype, and a better JIT (http://luajit.org/) than any JS implementation thus far. Recommended introduction: Ierusalimschy's _Programming in Lua, 2nd ed._ (http://www.inf.puc-rio.br/~roberto/pil2/).

    on “JavaScript - It’s a Real Language” ↗
  • kmort · Nov 2, 2010 · Recommends

    …useful exploration). But when switching between languages frequently, or when knowledge of one is getting a little rusty, something like this is just perfect. (I'll also take this chance to recommend 'Programming in Lua' by the creator - Roberto Ierusalimschy. It's really one the clearest, well-paced language texts I've read.)

    on “Lua Cheat Sheet for Programmers” ↗
  • silentbicycle · Nov 9, 2010 · Recommends

    If this piques your interest, the best way to learn Lua is probably Ierusalimschy's _Programming in Lua, 2nd ed._ (http://www.inf.puc-rio.br/~roberto/pil2/). That starts from square one and gets to advanced Lua programming, the C API, etc. in just over 300 pages. The first edition is free online (http://www.lua.org/pil/);…

    on “Lua Tutorial” ↗

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help