Re: Java compiler courses

"Andy Johnson" <>
23 Apr 2007 07:49:09 -0400

          From comp.compilers

Related articles
Java compiler courses (wooks) (2007-04-20)
Re: Java compiler courses (Russell Shaw) (2007-04-23)
Re: Java compiler courses (Andy Johnson) (2007-04-23)
Re: Java compiler courses (glen herrmannsfeldt) (2007-04-23)
Re: Java compiler courses (Hans-Peter Diettrich) (2007-04-23)
Re: Java compiler courses (Chris Dollin) (2007-04-23)
Re: Java compiler courses (Karsten Nyblad) (2007-04-25)
Re: Java compiler courses (wooks) (2007-04-25)
Re: Java compiler courses (Hans-Peter Diettrich) (2007-04-25)
[15 later articles]
| List of all articles for this month |

From: "Andy Johnson" <>
Newsgroups: comp.compilers
Date: 23 Apr 2007 07:49:09 -0400
Organization: The MathWorks, Inc.
References: 07-04-074
Keywords: Java, courses
Posted-Date: 23 Apr 2007 07:49:09 EDT

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.

Pascal compilers were all written in Pascal. Most C++ compilers are written
in C++. They may have originally started off as a small compiler written in
some other language, but as soon as this compiler became sufficiently
useful, it was used to bootstrap the self-hosted compiler, and was never
used again. Why should Java be any different? I was involved in an
ahead-of-time Java compiler project several years ago, and we deliberately
chose to write it in Java.


"wooks" <> wrote in message
> Why do they exist.
> Why would anybody want to teach a compiler course in Java when it
> seems that there are more and better resources (books, tools)
> supporting a compilers course based on C (aside from the obvious -
> students are taught Java and not C).
> Why would anybody want to write a compiler in Java (unless it's the
> only language they know).

Post a followup to this message

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