Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: What is a good book about how computers work?
26 points by baalduct on April 18, 2023 | hide | past | favorite | 17 comments
Monitor, hard drive, RAM, CPU, etc.


"Code: The Hidden Language of Computer Hardware and Software" by Charles Petzold


One of my most favorite books. It is such a joy.

Read the first few pages, if you haven‘t. One of those books that will show you exactly what you can expect by reading the first 3 pages.


This book is such a gem and was so easy to read. I highly recommend it to anyone who hasn't read it yet.


https://www.amazon.co.uk/Elements-Computing-Systems-Building...

I did 11 of the 12 chapters of this. Each chapter is has a practical exercise. You do need some programming experience. Really teaches you how a computer works buy building on in a high level description language (processor, memory etc all from nand gates). Then you build an assembler for it. Then a compiler.


Most of the comments here suggest excellent resources ("Code", "NAND to Tetris", etc) to learn about how computing works on a fundamental level. Those won't be immediately useful to someone who wants to understand how "monitor, hard drive, RAM, CPU" all fit together in their laptop, or if they want to build a computer out of parts. If that's the goal, I recommend the following:

1. "How Computers Work" by Ron White - it looks like a children's book, but it provides a lot of good information about components of modern digital technology. I personally learned quite a lot from this book. https://www.amazon.com/How-Computers-Work-Evolution-Technolo...

2. A+ Certification Guide - provides practical, hands-on info on how a modern Windows PC operates, from both hardware and software perspectives. It's a long book geared towards someone who will build and repair computers professionally, but you don't have to read it cover to cover. https://www.amazon.com/CompTIA-Certification-Eleventh-220-11...

(my background: phd in computer engineering and lots of real world experience building and repairing computers and computer networks).


From Nand to Tetris

It takes you from individual logic gates to assembler to Tetris, all as a hands on course.


If you _really_ want to know how a computer works. Check out Ben Eater's YouTube series on his 8-bit breadboard computer.

As a CS grad, I found this a truly amazing eye-opener on how it all actually _works_.

https://www.youtube.com/playlist?list=PLowKtXNTBypGqImE405J2...

PS: Yeah, I know, it's not a book...


Ben Eater is absolute top notch. Great recommendation.


I highly recommend the course “Computer, Enhance!” by Casey Muratori on substack for those interested in how CPUs / assembly work. You get to decode byte code, simulate instructions, learn how the stack works, etc. It is really well-paced, gives you plenty of space to figure things out your own way (with reference material if you need it), and helped me get several “aha!” moments that solidified how things work.


This is what we had to read in grad school. I remember the sections on how they designed RISC architectures as especially good fun.

https://www.elsevier.com/books/computer-architecture/henness...


But How Do It Know?

J. Clark Scott


Haha, you beat me to it!


seems interesting


Search YouTube for "How Computers Work."

https://www.youtube.com/results?search_query=how+computers+w...

Video > Print


Structured Computer Organization: Tanenbaum, Andrew, Austin, Todd


Incidentally what's a good book about how browser work?





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: