Code
Charles Petzold
147 people recommended it in 57 threads, 2011–2026.
2 of those were in the last year.
4 commenters pushed back on it — worth reading the threads.
What people on Hacker News said
After reading Code my hacking skills increased considerably. I am never comfortable relying on abstractions so understanding more of the programming stacks I use increased my willingness to experiment with then. It also helped me to better understand pointers and memory management as memory became a real thing to me.
Seeing every step from the ground-up really helps demystify the machines you see around yourself every day.
If you didn't take, or have forgotten, classes like Computer Architecture or Digital Logic, this is a great book for getting your head around the low level details of what's happening in side a digital computer. Petzold starts from VERY basic examples (using a flaslight to morse code messages to your friend across the street) and slowly builds up to a full-fledged (if somewhat minimalistic) CPU.
So, by the end of the night, with proper questioning we'd gotten him to come up with MMIO, with virtual memory, with paging, and eventually gotten him to consider how to implement concurrency via scheduling and his newly discovered virtual memory mechanism.
It starts at simple circuits and builds up a picture of how computers work. It has really helped me get my mental models of what's going on inside a computer straightened out!
Where it comes up
- Ask HN: What language-agnostic programming books should I read? 2017 · 12 recommendations
- Ask HN: Which book can attract anyone towards your field of study? 2022 · 9 recommendations
- The Book That Every Programmer Should Read 2011 · 9 recommendations
- Ask HN: What are the most fundamental books on computer science? 2019 · 7 recommendations
- Ask HN: What's the best computer science book you've read recently? 2017 · 7 recommendations
- Ask HN: What are some books where the reader learns by building projects? 2020 · 6 recommendations
- Extracting Hacker News book recommendations with the ChatGPT API 2023 · 5 recommendations
- Ask HN: Do you recall any book or course that made a topic finally click? 2022 · 5 recommendations
- Ask HN: Computer Science/History Books? 2020 · 5 recommendations
- How These Things Work – A book about CS from first principles (2016) 2020 · 5 recommendations
- Ask HN: What are some of the best books you have read in 2022? 2022 · 4 recommendations
- Ask HN: The book that did it for you in math and/or CS? 2022 · 4 recommendations
- Ask HN: Best book you read in 2011 2011 · 4 recommendations
- Ask HN: Which books do you consider real gems in your field of work/study? 2022 · 3 recommendations
- Books that changed my career as a software engineer 2021 · 3 recommendations
- Ask HN: What book have you given as a gift? 2016 · 3 recommendations
- Top Books on Amazon Based on Links in Hacker News Comments 2016 · 3 recommendations
- What is the single most influential book every programmer should read? 2011 · 3 recommendations
- Ask HN: What are the most eye-opening textbooks you have ever read? 2023 · 2 recommendations
- Ask HN: Which book are you reading, since when? 2022 · 2 recommendations
