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) |
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) |
[21 later articles] |
From: | Karsten Nyblad <148f3wg02@sneakemail.com> |
Newsgroups: | comp.compilers |
Date: | 25 Apr 2007 04:14:58 -0400 |
Organization: | Compilers Central |
References: | 07-04-074 |
Keywords: | courses, Java |
Posted-Date: | 25 Apr 2007 04:14:58 EDT |
wooks wrote:
> 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).
>
Most of the students on are never going to write a compiler. They are
studying the subject for two purposes:
First because they want to know how their code is transformed into
machine code such that they can better predict how some piece of code
will work. Who cares what language the compiler is written in in that case?
Secondly because lots of computer programs read text files. You can use
the theory for front ends when writing code to read such text files.
Such readers will typically be written in same the language as the rest
of the project. Thus there is no particular reason to believe that the
students later in will use their knowledge in projects using C.
Finally, a curse on on compiler design should not be a curse on
debugging code or data structures. There is no reason why students
should fight memory leaks in C code or reimplement stacks, maps, etc.,
when they can use library functions in other languages. The students
have only so much time for their student projects, and there is a lot of
compiler theory they will not have time for trying in practice.
Karsten Nyblad
148f3wg02 at sneakemail dot com
Return to the
comp.compilers page.
Search the
comp.compilers archives again.