comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: An interesting quote on Java and C++
Date: 1997/09/10
Date: 1997-09-10T00:00:00+00:00	[thread overview]
Message-ID: <EG9rCz.5pH@world.std.com> (raw)
In-Reply-To: 34157a82.81185415@news.mindspring.com


In article <34157a82.81185415@news.mindspring.com>,
Robert Munck <munck@acm.org> wrote:
>On Mon, 8 Sep 1997 19:35:29 GMT, bobduff@world.std.com (Robert A Duff)
>wrote:
>>Surely you're not saying that Ada (as is) meets the goals of Java?
>
>I'm not aware of a document that lays out the goals
>of the development of Java.  Is there one?

Beats me.  But it's clear from the Java language documents that two
goals of Java are (1) avoid security flaws, and (2) portability at the
cost of efficiency.

Ada meets neither of those goals.  (1) Ada allows dangling pointers and
so forth, and (2) Ada's arithmetic model favors efficiency over
portability.

Of course, Java doesn't meet Ada's goals, either.  For example, the
various run-time checks that Java defines are the minimal needed to
avoid security flaws, and provide absolute portability -- they make no
attempt to catch plain old bugs.  Whereas Ada's run-time checks are
helpful in catching bugs, but don't prevent security violations, and
aren't portable.  Consider, for example, that if X+Y overflows, Java
gives the wrong answer, but always the same answer on all targets.
Whereas Ada raises an exception on overflow, but it doesn't define
exactly when overflow happens on different targets.  Consider also that
Ada allows range constraints, which can help catch bugs, but provide no
particular security benefit -- so Java takes the C attitude there
(although more portable than C); Java can't say "type T is range
1..10;".

>...If so,
>how does fail to match the goals of Ada (as documented
>at great length from Strawman on)?

Not sure what you mean here.  Java doesn't meet Ada's "strawman" goals,
but of course it doesn't try to.  It has different goals.

- Bob




  reply	other threads:[~1997-09-10  0:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-03  0:00 An interesting quote on Java and C++ Nasser
1997-09-03  0:00 ` Samuel Mize
     [not found] ` <01bcb881$915526a0$d7000064@sim01.amst.co.at>
1997-09-03  0:00   ` Robert Munck
1997-09-05  0:00     ` Joachim Schroeer
1997-09-06  0:00     ` Robert Dewar
1997-09-24  0:00     ` Shmuel (Seymour J.) Metz
1997-09-08  0:00   ` Robert A Duff
1997-09-09  0:00     ` Robert Munck
1997-09-10  0:00       ` Robert A Duff [this message]
1997-09-10  0:00         ` Stephen Leake
1997-09-11  0:00           ` Roy Grimm
1997-09-12  0:00             ` Robert A Duff
1997-09-10  0:00         ` Robert Munck
1997-09-11  0:00           ` Robert Dewar
1997-09-12  0:00             ` Jon S Anthony
1997-09-12  0:00             ` Robert A Duff
1997-09-18  0:00               ` Shmuel (Seymour J.) Metz
1997-09-19  0:00                 ` Robert A Duff
1997-09-20  0:00                   ` Robert Dewar
1997-09-20  0:00                 ` Robert Dewar
1997-09-22  0:00                   ` Robert A Duff
1997-09-20  0:00                 ` Robert Dewar
1997-10-03  0:00                   ` Robert I. Eachus
1997-09-12  0:00         ` Jon S Anthony
1997-09-11  0:00       ` Robert Dewar
1997-09-12  0:00         ` Jon S Anthony
1997-09-12  0:00           ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
1997-09-25  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1997-09-25  0:00 ` Shmuel (Seymour J.) Metz
1997-09-26  0:00   ` Tucker Taft
1997-10-07  0:00   ` Robert I. Eachus
1997-11-19  0:00     ` Shmuel (Seymour J.) Metz
1997-10-08  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1997-10-09  0:00 ` Shmuel (Seymour J.) Metz
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox