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) |
[15 later articles] |
From: | "Andy Johnson" <ajohnson@mathworks.com> |
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.
-AndyJ
"wooks" <wookiz@hotmail.com> wrote in message
news:07-04-074@comp.compilers...
> 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
comp.compilers page.
Search the
comp.compilers archives again.