Ask HN: Which books do you consider real gems in your field of work/study?
438 pointsWell written books can serve as eye openers and warp your understanding of a topic when read at the correct time in your life.
Can you name a few books of that type that really were of such high value in your field of work or study?
Comments (262) 124 threads
Show all comments
Showing thread 22 of 124
It is so foundational to what we do at rev.ng, that we gift a physical copy of the book to every interviewee, even if they don't pass.
However, I can tell you that this book is so much better than the Muchnick (Advanced Compiler Design and Implementation). The way data-flow analysis is explained in Muchnick sucks, while in POPA it's vertical but once you get over it, everything clicks and you are able to design new analyses in a sound way.
I actually took several courses from the authors some years back, and implemented most of the book for a not-so-simple imperative language, including e.g. abstract interpretation for detecting out-of-bounds array accesses.
The book is a bit advanced unless you are well seasoned in the basics of abstract algebra and interpreter / compiler construction. Most fellow students struggled a lot. Hence, the authors have written a prequel [1], which is a bit simpler and also uses Datalog to get going faster.
[1] https://arxiv.org/pdf/2012.10086.pdf
During my PhD I really felt stupid reading Muchnick and not getting data-flow analysis. Nielson & Nielson literally saved my PhD and enabled the creation of the company. I'm so grateful.
Having infinite time, it'd be nice to rewrite some LLVM analyses using it.Do you have any contact? It'd be cool to invite one of the authors to our weekly internal meetings.
> the authors have written a prequel
Oh crap, that's great!
Honestly, we use Chapter 2 a lot, it already provides so much value. And in fact, you could write a whole book only about that.
Here's our C++ implementation of MFP:
We joke saying that we'll open a new company when we start using Chapter 3 effectively. :)
Btw, if you're in a CEST-friendly time zone and are interested in what we do, drop us an e-mail :)