Re: Java compiler courses

Hans-Peter Diettrich <DrDiettrich1@aol.com>
25 Apr 2007 04:16:54 -0400

          From comp.compilers

Related articles
[2 earlier articles]
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)
Re: Java compiler courses gneuner2@comcast.net (George Neuner) (2007-04-26)
Re: Java compiler courses gah@ugcs.caltech.edu (glen herrmannsfeldt) (2007-04-26)
Re: Java compiler courses cfc@shell01.TheWorld.com (Chris F Clark) (2007-04-26)
Re: Java compiler courses DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-04-27)
[9 later articles]
| List of all articles for this month |

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

Andy Johnson wrote:


> For one thing, to continue the tradition. Many compilers have been written
> in the same language as they are compiling (e.g. javac). If you are
> bootstrapping a compiler, it's always good to have your own killer test
> application, which is the compiler itself.


A very good point! Really :-)


But is the N-th reimplementation, of an compiler for an already existing
*general purpose* programming language, a practical situation for
compiler writers in real life? And is the implementation of an compiler
really a practical test case for students, which are trying to implement
their first compiler at all?


Many of the languages, to be implemented at work, may not be very well
suited for the implementation of an compiler, or may not be
Turing-complete at all.


Therefore I think that the choice of the language should be splitted for
educational purposes, into the compiler implementation and application
language. The implementation lanugage must come with all the required
libraries, whereas the application language should allow to write test
cases, without a need for implementing a huge runtime system, in
addition to the compiler itself.


DoDi



Post a followup to this message

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