Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Round Numbers are always false. -- Samuel Johnson


devel / comp.compilers / Re: How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) compare to the Dragon Book (Principles of Compiler Design by Alfred Aho and Jeffery Ulman)?

SubjectAuthor
* How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) compare toThe Hassaan Atif
`* Re: How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) comparAnton Ertl
 `- Re: How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) comparGeorge Neuner

1
How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) compare to the Dragon Book (Principles of Compiler Design by Alfred Aho and Jeffery Ulman)?

<21-09-002@comp.compilers>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=81&group=comp.compilers#81

  copy link   Newsgroups: comp.compilers
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
From: hassaana...@gmail.com (The Hassaan Atif)
Newsgroups: comp.compilers
Subject: How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) compare to the Dragon Book (Principles of Compiler Design by Alfred Aho and Jeffery Ulman)?
Date: Tue, 7 Sep 2021 06:16:03 -0700 (PDT)
Organization: Compilers Central
Lines: 60
Sender: news@iecc.com
Approved: comp.compilers@iecc.com
Message-ID: <21-09-002@comp.compilers>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="54375"; mail-complaints-to="abuse@iecc.com"
Keywords: books
Posted-Date: 07 Sep 2021 11:43:47 EDT
X-submission-address: compilers@iecc.com
X-moderator-address: compilers-request@iecc.com
X-FAQ-and-archives: http://compilers.iecc.com
 by: The Hassaan Atif - Tue, 7 Sep 2021 13:16 UTC

Hey everyone, I asked this question earlier on reddit, but for the diversity
in opinions, I am posting the same question here as this group is particularly
compiler-centric.
So I have been thoroughly and religiously studying Compilers for a couple of
months now. In addition, to the Dragon Book, I have been taking video lectures
and exploring through slides online that have been compiled (no pun intended)
by people that have worked with the compiler technology for years. So anyway,
I have familiarized myself with all the basics (Scanning, Parsing (including
generating parse trees and ASTs), and even code generation, as well). I have a
good understanding of the complex algorithms involved in some of these stages,
and I have a good intuition on the complexity involved in all this (in
particular, I understand what problems are undecidable for a programmer. What
are the pros and cons of different techniques and so on).

So anyway, one of the lecture series that I watched had taken upon
"Engineering a Compiler" as their reference book, and I have explored some
portion of this book (of course, I am still at the very beginning), and my
initial thoughts are:

- This book comes across as very beginner-friendly

- I like how it builds from the basics. So, for example, while constructing a
scanner, we get to see the application of finite-state automata in action. So
the book tells us how to go from a regular expression to non-deterministic
finite automata using Thompson's construction algorithm and how all this
process leads us to recognize words. We get to learn about this process within
the first 50 pages of the book. In contrast to this, the dragon book jumps
straight into the more complex stuff (such as writing context-free grammar,
building a syntax-directed translator, and some other notions from a parsing
point of view). In other words, it seems to skip a lot of stuff at the
beginning that should have been introduced before we had jumped into the more
complex stuff.

- As mentioned above, "Engineering a Compiler" takes a very
programming-oriented approach. It is easier to comprehend things from a coding
point of view, and it is convenient to map the theory into actual practice.

- The notion of "Classic Expression Grammar" is introduced in a very
beginner-friendly manner in that book.

Anyways, I am still in the process of learning and exploring as much as I can,
so I am not sure how much weight and value my opinion carries. I am reading up
on both texts. In my opinion, the Dragon Book is very detailed, in the sense
that each sentence can be a book on its own at times, but "Engineering a
compiler" seems more beginner-friendly. One more thing that I have heard
people say is that some of the optimization techniques presented in the dragon
book are a bit outdated, but I am still looking forward to reading about
that.

Anyways, these were just my two cents on both these books. Now, why do I ask
this question from you guys? I would love to get some insights from a
professional or someone more educated on this stuff. Also, if you find any
misconceptions in the above passage then feel free to correct me on that. I
come here to learn more.
[Aho and Ullman is very old, published in 1976. They updated it and
rotated authors, Aho, Sethi and Ullman in 1986, and Aho, Lam, and Sethi
in 2006. Everything in the 1976 edition is still true but we've
learned a lot about analysis and optimization since then, and hacks
needed to fit into 16-bit computers in 1976 don't matter any more.
=John]

Re: How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) compare to the Dragon Book (Principles of Compiler Design by Alfred Aho and Jeffery Ulman)?

<21-09-004@comp.compilers>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=82&group=comp.compilers#82

  copy link   Newsgroups: comp.compilers
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.compilers
Subject: Re: How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) compare to the Dragon Book (Principles of Compiler Design by Alfred Aho and Jeffery Ulman)?
Date: Wed, 08 Sep 2021 05:30:52 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 12
Sender: news@iecc.com
Approved: comp.compilers@iecc.com
Message-ID: <21-09-004@comp.compilers>
References: <21-09-002@comp.compilers>
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="68484"; mail-complaints-to="abuse@iecc.com"
Keywords: books
Posted-Date: 08 Sep 2021 10:14:19 EDT
X-submission-address: compilers@iecc.com
X-moderator-address: compilers-request@iecc.com
X-FAQ-and-archives: http://compilers.iecc.com
 by: Anton Ertl - Wed, 8 Sep 2021 05:30 UTC

I have read the 1986 version of the Dragon Book (i.e., Aho, Sethi,
Ullman). It covers the front end part deeply, but is not so strong on
the back end part.

I have looked at Cooper & Torczon, but have not read it. But my
impression was good; in particular it covered more of the back end.

- anton
--
M. Anton Ertl
anton@mips.complang.tuwien.ac.at
http://www.complang.tuwien.ac.at/anton/

Re: How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) compare to the Dragon Book (Principles of Compiler Design by Alfred Aho and Jeffery Ulman)?

<21-09-006@comp.compilers>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=83&group=comp.compilers#83

  copy link   Newsgroups: comp.compilers
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
From: gneun...@comcast.net (George Neuner)
Newsgroups: comp.compilers
Subject: Re: How does "Engineering a Compiler" (by Keith Cooper and Linda Torczon) compare to the Dragon Book (Principles of Compiler Design by Alfred Aho and Jeffery Ulman)?
Date: Fri, 10 Sep 2021 05:13:52 -0400
Organization: A noiseless patient Spider
Lines: 19
Sender: news@iecc.com
Approved: comp.compilers@iecc.com
Message-ID: <21-09-006@comp.compilers>
References: <21-09-002@comp.compilers> <21-09-004@comp.compilers>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="76746"; mail-complaints-to="abuse@iecc.com"
Keywords: books
Posted-Date: 10 Sep 2021 13:07:48 EDT
X-submission-address: compilers@iecc.com
X-moderator-address: compilers-request@iecc.com
X-FAQ-and-archives: http://compilers.iecc.com
 by: George Neuner - Fri, 10 Sep 2021 09:13 UTC

On Wed, 08 Sep 2021 05:30:52 GMT, anton@mips.complang.tuwien.ac.at
(Anton Ertl) wrote:

>I have read the 1986 version of the Dragon Book (i.e., Aho, Sethi,
>Ullman). It covers the front end part deeply, but is not so strong on
>the back end part.
>
>I have looked at Cooper & Torczon, but have not read it. But my
>impression was good; in particular it covered more of the back end.

Agreed. I have read Cooper & Torczan, and the 1st and 2nd editions of
the Dragon book (and skimmed the 3rd), and several others.

For quite a while Cooper & Torczan has been my 1st recommendation for
an intro book.

YMMV,
George

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor