Re: Possible to write compiler to Java VM?

hbaker@netcom.com (Henry Baker)
29 Jan 1996 00:27:26 -0500

          From comp.compilers

Related articles
[2 earlier articles]
Re: Possible to write compiler to Java VM? chase@centerline.com (1996-01-25)
Re: Possible to write compiler to Java VM? bwilson@shasta.stanford.edu (Bob Wilson) (1996-01-25)
Re: Possible to write compiler to Java VM? clodius@sst.lanl.gov (William Clodius) (1996-01-27)
Re: Possible to write compiler to Java VM? tdunbar@gserver.grads.vt.edu (Thomas Dunbar) (1996-01-27)
Re: Possible to write compiler to Java VM? tore@lis.pitt.edu (1996-01-27)
Re: Possible to write compiler to Java VM? sam@inf.enst.fr (Samuel Tardieu) (1996-01-28)
Re: Possible to write compiler to Java VM? hbaker@netcom.com (1996-01-29)
Java-Ada95 comparisons krish@cs.purdue.edu (Saileshwar Krishnamurthy) (1996-01-29)
Re: Possible to write compiler to Java VM? david.hopwood@lady-margaret-hall.oxford.ac.uk (1996-01-29)
Re: Possible to write compiler to Java VM? darius@phidani.be (Darius Blasband) (1996-01-29)
Re: Possible to write compiler to Java VM? stt@copperfield.camb.inmet.com (1996-01-29)
Re: Possible to write compiler to Java VM? ncohen@watson.ibm.com (1996-01-29)
Re: Ada GC (was about Java VM) dewar@cs.nyu.edu (1996-01-29)
[32 later articles]
| List of all articles for this month |

From: hbaker@netcom.com (Henry Baker)
Newsgroups: comp.lang.java,comp.compilers,comp.lang.ada
Date: 29 Jan 1996 00:27:26 -0500
Organization: nil organization
References: 96-01-037 96-01-085 96-01-097
Keywords: translator, C++, Ada



Dirk Craeynest wrote:
> Although Java is a programming language which is syntactically
> similar to C++, it is semantically much closer to Ada 95.


Samuel Tardieu <sam@inf.enst.fr> wrote:
> You may have a look on:
> http://lglwww.epfl.ch/Ada/Resources/Ada_Java.html
> There is a table comparing Java, Ada and C++.


I looked at this web page, and it said that Ada-95 is the language
that Java 'should have been'. With the exception of Ada's header
files, which are a clear advance over C/C++ header files, I think that
this analysis is completely wrong. Ada-95 asked for suggestions on
how to improve Ada-83, and got around 1000, or so. Many of them asked
for turning Ada into a bad approximation to C++, most of which were
thankfully rejected. However, most of those suggestions asking to fix
the underlying problems with Ada-83 were rejected, as well.


The resulting language -- Ada-95 -- has flashes of brilliance (it
would have had more, but some of these flashes were doused by the
usual politics of language standardization), but carries far too much
baggage that it should have jettisoned.


Ada is by far the most frustrating language I have ever dealt with.
Even after many programs and many, many hours with the reference
manual, I would be loathe to attempt to predict that any of my
programs would compile the first time. There are far too many bizarre
rules -- including some which no one can provide any comprehensible
reason for. For many years, there ran in ACM Ada Letters a column
called 'Dear Ada', which basically discussed (with unseemly relish,
IMHO) all of these bizarre interactions of obscure rules. Truly Ada
is a worthy successor to PL/I in this regard.


However, the single most important reason why Java is a _much_ better
language than Ada-95 is the fact that Java does garbage collection and
Ada does not. Twice now, the Ada language people have gone AWOL
(absent without leave -- i.e., deserted) on the GC issue, and for no
technically supportable reasons. Their cowardice under (friendly!)
fire leaves them no moral high ground to claim any kind of superiority
over even Basic or Lotus 123, much less Java.


--
www/ftp directory:
ftp://ftp.netcom.com/pub/hb/hbaker/home.html
--


Post a followup to this message

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