seconded. so a lot of people say a lot of things. i like chapters 1-5 just as much as the rest, btw. it's objectively a great book, written by objectively great developers and computer scientists. is it the best to learn from today? who can say. you might also say we should not start the education for structural engineering by studying the Brooklyn bridge either. but, so here we are.
Tell HN: The dragon compiler book (2nd edition) is a great book
21–30 of 48 posts
Re: Tell HN: The dragon compiler book (2nd edition) is a great book
#22Since it's so old that blog post is dead now, here is an archive copy: https://web.archive.org/web/20180929002914/http://www.billth...
Re: Tell HN: The dragon compiler book (2nd edition) is a great book
#23Besides devoting too many pages to parsing, I think compiler practitioners have low opinion of the book because it isn't useful for them. For example, the second edition claims to be updated to modern optimization techniques, and in a sense that's true, but it is useless because the book isn't using SSA. For practitioners, SSA is not optional these days, and everything about optimization in the book needs to be updat…
Re: Tell HN: The dragon compiler book (2nd edition) is a great book
#24Besides devoting too many pages to parsing, I think compiler practitioners have low opinion of the book because it isn't useful for them. For example, the second edition claims to be updated to modern optimization techniques, and in a sense that's true, but it is useless because the book isn't using SSA. For practitioners, SSA is not optional these days, and everything about optimization in the book needs to be updat…
Do you recommend a book that’s more up-to-date?
Re: Tell HN: The dragon compiler book (2nd edition) is a great book
#25From the parsers I see in the wild (not strictly speaking about compilers here), I think most programmers should definitely spend some time studying the basics of them. It’s incredible to me how people mess up parsing even the simplest of file formats or make it super complicated.
Re: Tell HN: The dragon compiler book (2nd edition) is a great book
#26I remember picking this book up at the university library in my second year because I had seen it in the movie “Hackers” and the cover looked really cool. I distinctly remember the parsing chapters especially recursive descent parsing. It was one of those light bulb “oh, this is how you do it” moments. Well worth spending a few weekends playing with that book, even if it’s somewhat dated, its like SICP in a sense mor…
I know nothing about compiler design or compiler parsing. How broadly applicable are the chapters on parsing? Will it make the average programmer instantly more equipped to, say, write a robust JSON parser?
Re: Tell HN: The dragon compiler book (2nd edition) is a great book
#27seconded. so a lot of people say a lot of things. i like chapters 1-5 just as much as the rest, btw. it's objectively a great book, written by objectively great developers and computer scientists. is it the best to learn from today? who can say. you might also say we should not start the education for structural engineering by studying the Brooklyn bridge either. but, so here we are.
Re: Tell HN: The dragon compiler book (2nd edition) is a great book
#28seconded. so a lot of people say a lot of things. i like chapters 1-5 just as much as the rest, btw. it's objectively a great book, written by objectively great developers and computer scientists. is it the best to learn from today? who can say. you might also say we should not start the education for structural engineering by studying the Brooklyn bridge either. but, so here we are.
But as mentioned, not even the rest of the book is relevant for compilers without SSA, so I don’t think your bridge example is relevant.
Re: Tell HN: The dragon compiler book (2nd edition) is a great book
#29I think the third edition of Engineering a Compiler was recently published (paperback only, WTH). I found that to be a better read IMO.
Re: Tell HN: The dragon compiler book (2nd edition) is a great book
#30I remember picking this book up at the university library in my second year because I had seen it in the movie “Hackers” and the cover looked really cool. I distinctly remember the parsing chapters especially recursive descent parsing. It was one of those light bulb “oh, this is how you do it” moments. Well worth spending a few weekends playing with that book, even if it’s somewhat dated, its like SICP in a sense mor…