|Java compiler courses email@example.com (wooks) (2007-04-20)|
|Re: Java compiler courses firstname.lastname@example.org (Russell Shaw) (2007-04-23)|
|Re: Java compiler courses email@example.com (Andy Johnson) (2007-04-23)|
|Re: Java compiler courses firstname.lastname@example.org (glen herrmannsfeldt) (2007-04-23)|
|Re: Java compiler courses DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-04-23)|
|Re: Java compiler courses email@example.com (Chris Dollin) (2007-04-23)|
|Re: Java compiler courses firstname.lastname@example.org (Karsten Nyblad) (2007-04-25)|
|Re: Java compiler courses email@example.com (wooks) (2007-04-25)|
|Re: Java compiler courses DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-04-25)|
|[15 later articles]|
|From:||"Andy Johnson" <firstname.lastname@example.org>|
|Date:||23 Apr 2007 07:49:09 -0400|
|Organization:||The MathWorks, Inc.|
|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" <email@example.com> 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).
Return to the
Search the comp.compilers archives again.