Re:My First Fifteen Compilers
by amelius on Friday July 12, 2019 @06:57AM
(#20419726)
Also curious, what is the modern equivalent of the "Dragon Book"? A lot has changed since the old times, e.g. JIT compilers, and garbage collected VMs and such. Also CPUs have changed a lot, e.g. speculative execution, deep pipelining, large memory cache hierarchies, GPUs, etc. Is there a compiler book that addresses it all?
[ Parent
| on HN ]
Re:My First Fifteen Compilers
by ernst_klim on Friday July 12, 2019 @07:31AM
(#20419887)
Modern Compiler in ML/Java. Dragon book is nearly useless and could be useful only for lexer/parser implementation.
Eh. Dragon still has good material on pipelining and local dataflow analysis frameworks. The version two stuff on bdds is the most poorly aged part, IMO.
Re:My First Fifteen Compilers
by MaxBarraclough on Sunday July 14, 2019 @05:56PM
(#20436399)
> Dragon book is nearly useless
Why's that?
Re:My First Fifteen Compilers
by ernst_klim on Monday July 15, 2019 @05:13PM
(#20445334)
You can't take seriously a book which spends half of its pages talking about lexing and parsing.
It's the book from the times when single-pass compilers were a thing, and that's what it's about, a primitive single pass compiler. The field has advanced too much since then.
Things you wont find in dragon book: type inference and modern type systems, modern GC implementations, exceptions and error handling, modern register allocations and optimizations, modules and parametric modules. Seriously, a book spends 300 pages on parsers and 4 pages on type inference and unification.
Re:My First Fifteen Compilers
by MaxBarraclough on Monday July 15, 2019 @06:00PM
(#20445693)
Interesting, thanks.