News for hackers. Stuff that matters.
Re:Ask HN: What are the best resources to learn about compil... by theomega on Friday July 27, 2018 @04:34PM (#17629115)
I can recommend the book „Compilers: Principles, Techniques and Tools“ [often called „Dragon Book“]. It explains from the basics with all the theory how to write a Leser, parser and much more features. It is one of the few books I bought after university.

https://en.m.wikipedia.org/wiki/Compilers:_Principles,_Techn...

Re:Ask HN: What are the best resources to learn about compil... by neonbat on Tuesday July 31, 2018 @09:55AM (#17653117)
thanks this looks good.
Re:Ask HN: What are the best resources to learn about compil... by Someone on Friday July 27, 2018 @01:39PM (#17627670)
Depends on what you want to learn. Structure and interpretation of computer programs is good for a high-level view of what a compiler does, but it compiles a lisp-like language, so it won’t learn you much about parsing or about generating good error messages when given syntactically or semantically incorrect programs (typically more work than parsing correct programs), and it compiles to some abstract ‘instruction set’, so it won’t be worthwhile if you want to know how to wring maximum performance out of any specific CPU.
Re:Ask HN: What are the best resources to learn about compil... by SamReidHughes on Sunday July 29, 2018 @02:55PM (#17639678)
This book is not completionist but instead it's to the point and avoids wasting your time: https://www.amazon.com/gp/aw/d/155558179X/

[Edit: it's Building an Optimizing Compiler by Bob Morgan.]

That's assuming you don't want to waste your time reading about parsing, type checking, or serializing an AST into some form of assembly, the parts of a compiler which just aren't that interesting.

Re:Ask HN: What are the best resources to learn about compil... by sloaken on Friday July 27, 2018 @04:15PM (#17628958)
Assuming you want to know this to make your own programming language...

Step one is to learn about BNF grammers.

When I was in school we used a book called Princples of Compiler Design. I felt this was an excellent bok at the time. It taught me a lot about how toprogram well.

Re:Ask HN: What are the best resources to learn about compil... by Chyzwar on Saturday July 28, 2018 @03:36AM (#17632091)
Re:Ask HN: What are the best resources to learn about compil... by segmondy on Friday July 27, 2018 @05:01PM (#17629371)
a college compiler class
Re:Ask HN: What are the best resources to learn about compil... by neonbat on Tuesday July 31, 2018 @09:56AM (#17653120)
done it ;)