Hacker News new | ask | show | jobs
by ernst_klim 2541 days ago
Modern Compiler in ML/Java. Dragon book is nearly useless and could be useful only for lexer/parser implementation.
2 comments

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.
> Dragon book is nearly useless

Why's that?

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.

Interesting, thanks.