Re: Java compiler courses

Hans-Peter Diettrich <DrDiettrich1@aol.com>
23 Apr 2007 07:50:10 -0400

          From comp.compilers

Related articles
Java compiler courses wookiz@hotmail.com (wooks) (2007-04-20)
Re: Java compiler courses rjshaw@netspace.net.au (Russell Shaw) (2007-04-23)
Re: Java compiler courses ajohnson@mathworks.com (Andy Johnson) (2007-04-23)
Re: Java compiler courses gah@ugcs.caltech.edu (glen herrmannsfeldt) (2007-04-23)
Re: Java compiler courses DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-04-23)
Re: Java compiler courses chris.dollin@hp.com (Chris Dollin) (2007-04-23)
Re: Java compiler courses 148f3wg02@sneakemail.com (Karsten Nyblad) (2007-04-25)
Re: Java compiler courses wookiz@hotmail.com (wooks) (2007-04-25)
Re: Java compiler courses DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-04-25)
Re: Java compiler courses torbenm@app-7.diku.dk (2007-04-26)
Re: Java compiler courses usenet@gmx.info (Michael Klemm) (2007-04-26)
[22 later articles]
| List of all articles for this month |

From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: 23 Apr 2007 07:50:10 -0400
Organization: Compilers Central
References: 07-04-074
Keywords: Java, courses
Posted-Date: 23 Apr 2007 07:50:10 EDT

wooks wrote:


> Why would anybody want to write a compiler in Java (unless it's the
> only language they know).


What should the students learn: writing compilers in C, or writing
compilers in general? IMO it's easier to port a compiler model, designed
in Java, to any other programming language, than modifying or extending
a compiler model implemented in C. Java doesn't encourage hacks, which
often are found in C code. While speed may be an argument in an
commercial compiler, a compiler course should spot the principles of an
compiler, not the details. A modular OO approach, as required by Java,
IMO is a good starting point for every big project.


DoDi



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.