Re: Java compiler courses

Michael Klemm <usenet@gmx.info>
26 Apr 2007 09:42:07 -0400

          From comp.compilers

Related articles
[4 earlier articles]
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)
Re: Java compiler courses DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-04-27)
Re: Java compiler courses gneuner2@comcast.net (George Neuner) (2007-04-28)
[13 later articles]
| List of all articles for this month |

From: Michael Klemm <usenet@gmx.info>
Newsgroups: comp.compilers
Date: 26 Apr 2007 09:42:07 -0400
Organization: Compilers Central
References: 07-04-074
Keywords: courses, Java
Posted-Date: 26 Apr 2007 09:42:07 EDT

wooks wrote:
> 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).


From my experience (tutor for compiler construction both in C and
later in Java), the students are able to produce a more stable
compiler in Java more quickly than in C. For Java, all gory details
that make programming tough (esp. memory management) comes almost for
free. Hence, students can focus on writing a solution to the exercise
and do not have to get stuck with trying to avoid SEGFAULTs.


As already mentioned, going "down" from Java to C is much easier than up
from C to Java.


And: For Java, there's also a plenty of tools available. JLex, JavaCC,
CPU, ANTLR, byacc/j. So, the tool chain to write the compiler is not a
problem.




Kind regards
-michael



Post a followup to this message

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