105 points · by eatonphil · 5y ago · 100 comments
What other books are in this vein?
Due to popularity, feel free to skip The Littler Schemer/MLer, HtDP, SICP, On Lisp, Thinking in Forth. And let's skip history, biography books like Soul of a New Machine and Isaacson's Jobs.
And again, let's skip books that you might actually consider required reading for experienced developers.
Joe Armstrong used to recommend Algorithms + Data structures = Programs (https://en.wikipedia.org/wiki/Algorithms_%2B_Data_Structures...) but I haven't read it.
Okay I know you said no to the little schemer but you technically didn't mention The Reasoned Schemer which is just amazingly fun to go through and wrap your head around (https://mitpress.mit.edu/books/reasoned-schemer-second-editi...). Also see Will Byrds latest strangeloop keynote: https://www.youtube.com/watch?v=AffW-7ika0E
I haven't read any of Knuth's stuff because doesn't having 7 volumes kinda imply it can't possibly be well edited? Or maybe I really do just need to suck it up and read these books. I know it's not the same exact book but I took his style to be to generate encyclopedic tomes rather than interesting reading.
> Algorithms + Data structures = Programs
Oo a Wirth book. Those are always good.
> I know you said no to the little schemer but you technically didn't mention The Reasoned Schemer
Man you're cutting it close there!
That's a very bad assumption in this case. The contents of TAOCP are very well edited, just massive in scope and it's one man putting it all together. However, those aren't his only books. Concrete Mathematics is a completed text that expands on, in particular, the math in Chapter 1 of TAOCP. Literate Programming is a collection of papers on topics in programming, and is the first of eight such books. If you want interesting but mildly impractical, check out his Computers & Typesetting [0] which includes two books which are actually literate programs.
For moderately impractical, look at tape sorting in Sorting and Searching.
Of the Knuth I've read (which includes [a tiny] _some_ of AoCP, lets not kid ourselves) I think he is a very good writer with great sense of humour between the academicness of some of his writing. Take the Surreal Numbers book for example.
You're missing out on some of the best writing on any topic!
Not all Knuth's books are the same: The Art of Computer Programming (TAOCP) is his mangum opus, an ever-expanding encyclopedic knowledge fire-hose of various computer science topics. But the series of books that are simply "collected papers" makes it easy to focus on something much narrower. For impractical, you may want to start from Selected Papers on Fun and Games.
And then he has books like Surreal Numbers, which is written as a story of a couple discovering mathematical notation and deriving a whole system...
Inside the Machine: An Illustrated Introduction to Microprocessors and Computer Architecture
Explains how Microprocessors operate, going from operands and building up a lot of the execution tricks used, all whilst going through popular examples of CPUs (thee pentium chips, PowerPCs, etc), discussing their history, their specs, their capabilities, etc.
Hardware and Support Support for Virtualization
This one corners on useful, but it's short and it's free and unless you work in virtualization it probably won't be much use but I found it helpful in getting a grasp on what is actually happening.
------
Edit: Removed history books but, for anyone interested, the ones I listed previously were The Idea Factory, Valley of Genius, and Android: The Team that Built the Android OS
This whole series is truly awesome.
> Inside the Machine: An Illustrated Introduction to Microprocessors and Computer Architecture
I'm always looking for more like nand2tetris or Harris and Harris' book on comp arch to suggest. Thank you!
The second edition from 2000 is online available at https://archive.org/details/ProgrammingPearls2ndEditionJonBe...
Definitely helped understand in place quicksort and need to swap pivot value.
For those still confused remember the invariants
Start with:[????????????p?????], end with:[|<=p|p|>p|]
Partition via:[p|<=p|???|>p] (pivot|less than or equal to pivot|untested values|greater than pivot).
Giving: [|p|<=p|>p|]
pivot|less than or equal pivot|greater than. This requires swapping pivot at end of partition step
https://en.wikipedia.org/wiki/Computer_Lib/Dream_Machines
https://archive.org/details/computer-lib-dream-machines
- - - -
Also "Scalable Internet Architectures" by Theo Schlossnagle
That does look very interesting!
It's about multithreading synchronization issues like the Dining Philosopher's problem, and it's brief, interesting, and very readable.
> ... is a book by Przemyslaw Prusinkiewicz and Aristid Lindenmayer. It's notable as it is the first comprehensive volume on the computer simulation of certain patterns in nature found in plant development (L-systems).
> The book is no longer in print but is available free online.
https://en.wikipedia.org/wiki/The_Algorithmic_Beauty_of_Plan...
You could think of it as "SICP for Prolog".
[0]: https://www.t3x.org/
I surprisingly really enjoyed it. Well written and it pulled back the veil on a lot of concepts that I thought were too complex for me to understand/enjoy.
I'm thinking about books you don't _need_ to read but that are just really neat or advanced discussions.
Edit:
A couple of other suggestions.
Managing Gigabytes: Compressing and Indexing Documents and Images[2]
Mining of Massive Datasets[3]
Algorithm Design Manual[4]
Network Algorithmics[5]
Neural Network Design[6]
I think all of these fall into the category of "Won't be applicable to everyone, but can be good for those who need this kind of stuff."
[1]: https://github.com/clever-algorithms/CleverAlgorithms
[2]: https://people.eng.unimelb.edu.au/ammoffat/mg/
[3]: http://www.mmds.org/
[4]: https://www.amazon.com/Algorithm-Design-Manual-Steven-Skiena...
[5]: https://www.amazon.com/Network-Algorithmics-Interdisciplinar...
The CS Detective: https://nostarch.com/csdetective
Mazes for Programmers: http://www.mazesforprogrammers.com/
A Curious Moon: https://bigmachine.io/products/a-curious-moon/
xchg rax,rax: https://www.xorpd.net/pages/xchg_rax/snip_00.html
Yes!!!
Great list, thanks for sharing.
This reminds me Niklaus Wirth's Compiler Construction probably belongs in this thread.
hilarious
P. J. Plauger's "Programming on Purpose" series of essays.
Purely Functional Data Structures by Chris Okasaki.
I would put both of these alongside Bentley's "Programming Pearls" books which I saw mentioned in another comment.
A classic! Good suggestion.
I'm curious to check out Programming on Purpose.
https://en.wikipedia.org/wiki/To_Mock_a_Mockingbird
Nothing explicit computery or even technical in there. Only all kinds of invented birds with specific weird behavior. You need to know nothing above what a 10 year old knows (and be interested in logic). And yet, when you're at the end, it turns out you know what 'Y combinator' actually means.
Under "Logic Puzzles", through To Mock a Mockingbird (about to reread it because I read it years ago and a lot of things didn't stick at that point). I picked up his books to flesh out my home library (I'd read some of them back in college) and started rereading from the beginning. Have a notepad and pencil to help puzzle through the problems (or index cards, I have a few stuck in the books).
They span from riddles, to logic puzzles (the classic Knight & Knave puzzles), to computation-based puzzles with combinators.
> excerpted from This Book Needs No Title: A Budget of Living Paradoxes by Raymund Smullyan
Sweet. I just learned about this book earlier today. It's on my list now!
It comes with a bonus music video! [1]
I still refer to this book from time to time to brush up on file system basics.
Programming Erlang by Joe Armstrong
Communicating Sequential Processes by Hoare
The algorithmic beauty of plants by Prusinkiewicz, Lindenmayer
Network Performance Analysis Using the J Programming Language by Alan Holt
Relational Programming in miniKanren by William Byrd
Exercises in Programming Style by Cristina Videira Lopes
edit: also "SAT/SMT by example" by Dennis Yurichev
I've been following the development of http://browser.engineering/ and it's so much fun to go through. Highly recommended!
Mazes for Programmers is on my bookshelf. I've gone through the first few chapters coding along in Go and going on weird diversions. It's totally pointless, and I love it. There's also "The Ray Tracer Challenge" by the same author, which looks phenomenal.
The Inmates Are Running the Asylum (Alan Cooper) makes the case that user interfaces can and should be easier to understand. I think in the years since this book was written, there has been much improvement in the UI world overall, but still worth thinking about.
Expert C Programming (Deep C Secrets) (Peter van der Linden) goes into some fascinating technical (and historical) tidbits related to C.
I'm working on a collection of 12 books about software development and IT: https://dev-concepts.dev/table-of-contents
I try not to get down to the level of atoms and molecules, but I'm going deep down the rabbit hole, and it's quite fun!
Along the same lines, while not a book, videos and documents about debugging electromechanical pinballs and modular analog synthesizers provide great reference points for what digital systems could look like or strive to emulate, and physical engineering, woodworking and construction decenter the computer as the whole of the process while still being very logical and systematic. At the top level it's usually finding the right structural metaphor that dogs practical programming and gets it into a loop of endless data collection and reprocessing, so it helps to have other things in mind and try to discern ultimate aims.
Heard little about it and tried reading start but didn't seem very groundbreaking
Not required reading but entertaining and only somewhat practical unless you happen to write Haskell for a living, in which case yeah - too bad.
Free to read online:
It's extremely accessible, easy to follow and digest, plus it challenges you to experiment to see how things work by adding new features or breaking existing ones; fascinating stuff!
Now...if it wasn't the Java part and was fully dedicated in C it would be awesome! :-D
Would be a great suggestion in a generic good books list but this one is about books that are not pragmatic!
Prompted by this comment, I'm reading it again. Holy cow, this is better than I remembered. So relevant too; it's hard to keep in mind that this is from before Unix.
The author was involved in numerous cognitive experiments with programmers, and also as a teacher. His group researched programming language development. So a lot of it is from that angle. The book is full of interesting anecdotes and gems of wisdom.
To detect errors, the programmer must have a conniving mind, one that delights in uncovering flaws where beauty and perfection were once thought to lie. Perhaps a touch of paranoia helps---the kind of thinking that automatically conjures up the worst imaginable cases.
For locating errors, however, we want a person who has the persistence of a mother-in-law and the collecting instincts of a pack rat. In one project, for instance, a bug in the operating system was known to exist for six months before it was finally tracked down by one programmer who had saved every dump taken in that period---three nine-foot stacks of paper! Late at night he could be found poring over his dumps---searching, groping, rummaging about for some slight clue that would have escaped the eye of a Sherlock Holmes. Months went by, and then, in one dump, a single bit which didn't seem quite right. Back he went through all the other dumps, until he had ferreted out two more cases, then five, then a dozen out of the hundreds. These twelve cases he arranged on a large table, first in one pattern, then another until some threads of connection became visible.
By this time, his mind was so specialized to the cases at hand that it was fruitless for him to try to explain his hypothesis to anyone else. It seemed to him that one of the data channels---when certain conditions were just right---was picking up a bit in one of the positions of its address register, thus causing a single character to be stored out of its regular sequence. Since this error usually occurred in the middle of a large data block, the stray character was usually wiped out by subsequent characters in the block, but in a few cases---the twelve---the character was found just past the end of the block. He tried to convince the engineers, but they would not listen. Programmers always say that there are machine errors. So, finally, he constructed a program that would force the channel into just the right circumstances with an increased frequency. Then, when made the error occur with more regularity, he was able to define the circumstances with enough precision to find on the schematic exactly the circuit card that must be in error. The engineers were impressed with his diligence, so they finally granted him a test of the card---and found he was right!
Such programming sleuths are not rewarded for their discoveries with the fame of a Pasteur or a Salk. Nonetheless, they are satisfied--beyond the comprehension of ordinary men---with the work itself.