comp.lang.ada
 help / color / mirror / Atom feed
From: D'Arcy Smith <nospam@itools.symantec.com>
To: kirk@spam_free
Subject: Re: Ada and Java. different behaviour. casting long to int problem.
Date: 1999/06/16
Date: 1999-06-16T20:54:12+00:00	[thread overview]
Message-ID: <37680F83.4426B424@itools.symantec.com> (raw)
In-Reply-To: 7k8tv3$3gm@drn.newsguy.com

kirk@spam_free wrote:

> In article <3767E8A2.EF1A0570@itools.symantec.com>, D'Arcy says...

> >How long has C been around?

> And how long have we had buggy code?

And how wide a margine can you miss my point by?

"> Things designed to be used by humans should strive for "reasonable",
 > "expected" behavior whenever possible, and should notify the human
when
 > that's not possible."

If you come from C the expected behaviour is exactly what
Java does.  You may not agree with the behaviour but it
is completely expected given what influenced Java.

Perhaps if you look at it like this:  Java is not an end.

We had C... good.  C++ came along and removed some of the "bad"
things - use const instead of #define etc... Java came along
and removed some additional "bad" things from C and then removed
some "bad" things from C++.  Java also did some silly things.
One day a language is going to come along and take parts of
Java and we will wind up with something that is "better".

Please note the use of ""s all over there.


> >Its not like this is a new issue.

> I agree. less than best language features are nothing new.
> C/C++ as well as Java have them.

I'm sure Ada has some silly things as well... I don't know what
they are since I've never used it.


> >And if you take the people using Java as a first language then
> >there is no issue (they get told that this is the way it is).

> you are repeating the same argument you said over and over, which is,
> as long as it is documented, then it is OK.

No I never said that.  I said (or implied) as long as it is documented 
and people screw up then it is THEIR fault not the fault of the
language.


> The point of this discussion is beyond this simple view. It is about
> one language aspect of java that many think is bad. replying by saying:
> "but it is documented" is a cop-out argument in my opinion.

I've agreed that it probably would be better to handle it in a
different way.  It doesn't get over it.

 
> >for some things)... but get over it.


> get over it?  we hear some people who want to use Java to build nuclear
> plant control software with and to use Java to write the software that
> will control systems that if failed will end up killing many people.

Ada software has _never_ failed?  Ada software has never had programmers
who make mistakes.  Cool.  Good for you.

Now if you say Ada offers features to avoid certain types of mistakes
then I'll agree.

Can Java programmers do something to work around the fact that the
language doens't support overflow exceptions?  Sure I've already 
given a code snippet.  Makes to code slower and move verbose but
it does what you want (or at least is the basis for that).

Would Java be more robust if it handled overlows - sure.


> It is important that people know about the lack of safety in Java, so
> not everyone get caught in the hype that is going around.

Ummm... if people don;t read the language spec then that is their
problem (and yes I have read the C/C++/Java language specs).
Now in the case of a nuclear power plant (which unless the Java
license has changed you can't use Java for IIRC) then yes it is
all of our problem.  But I am sure that someone writing bad Ada
code could cause just as many problems (just different ones :-)

 
> when my life is on line, I will not get over it.

Again - there has _never_ been a bug in any Ada software?


> it is too bad that the java designers did not take the time and go all
> the way and design a really good language, they seem to have started
> doing this, but the Sun marketing guys must have told to hurry up, and
> they sort of handed  over a half completed job of whatever they had
> completed at the time.

I'll agree with that - but I really doubt that they would have
made the Overflow change that you are wanting.

..darcy
-- 
D'Arcy Smith
Sr. Software Engineer
Symantec, Internet Tools Division

If you simply reply to this email it will get forwarded to /dev/null
My Email address is darcy at itools dot symantec dot com




  reply	other threads:[~1999-06-16  0:00 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-12  0:00 Ada and Java. different behaviour. casting long to int problem nabbasi
1999-06-12  0:00 ` Tucker Taft
1999-06-12  0:00   ` PPAATT
1999-06-12  0:00   ` Keith Thompson
1999-06-12  0:00     ` kirck
1999-06-13  0:00       ` Robert Dewar
1999-06-12  0:00         ` Fred
1999-06-14  0:00           ` Mark Hood
1999-06-15  0:00             ` mike
1999-06-15  0:00               ` Samuel Mize
1999-06-15  0:00                 ` jerry
1999-06-16  0:00                   ` Richard D Riehle
1999-06-16  0:00                     ` jerry
1999-06-15  0:00               ` D'Arcy Smith
1999-06-16  0:00                 ` George W. Bayles
1999-06-16  0:00                   ` D'Arcy Smith
1999-06-17  0:00                   ` Aidan Skinner
1999-06-17  0:00                   ` Matthew Heaney
1999-06-15  0:00               ` Marin David Condic
1999-06-15  0:00                 ` Mike Silva
1999-06-15  0:00                   ` rich
1999-06-15  0:00                     ` Marin David Condic
1999-06-15  0:00                       ` D'Arcy Smith
1999-06-15  0:00                         ` Keith Thompson
1999-06-16  0:00                           ` D'Arcy Smith
1999-06-16  0:00                           ` bill
1999-06-16  0:00                             ` George W. Bayles
1999-06-16  0:00                               ` Fraser Wilson
1999-06-17  0:00                               ` Aidan Skinner
1999-06-17  0:00                                 ` David Botton
1999-06-18  0:00                                   ` Dale Stanbrough
1999-06-18  0:00                                     ` Matthew Heaney
1999-06-18  0:00                                     ` David Botton
1999-06-18  0:00                                       ` Pascal Obry
1999-06-17  0:00                               ` Chris Dollin
1999-07-20  0:00                             ` Geoff Bull
1999-06-16  0:00                         ` George W. Bayles
1999-06-16  0:00                           ` D'Arcy Smith
1999-06-16  0:00                           ` Tucker Taft
1999-06-17  0:00                             ` George W. Bayles
1999-06-17  0:00                               ` Tucker Taft
1999-06-17  0:00                                 ` bob
1999-06-16  0:00                           ` D'Arcy Smith
1999-06-17  0:00                           ` Larry Kilgallen
1999-06-16  0:00                         ` Mike Silva
1999-06-16  0:00                           ` D'Arcy Smith
1999-06-16  0:00                             ` kirk
1999-06-16  0:00                               ` D'Arcy Smith [this message]
1999-06-17  0:00                                 ` Markus Kuhn
1999-06-17  0:00                                   ` john
1999-06-17  0:00                                     ` Ed Falis
1999-06-18  0:00                                     ` Aidan Skinner
1999-06-17  0:00                                   ` D'Arcy Smith
1999-06-16  0:00                               ` Hyman Rosen
1999-06-17  0:00                                 ` Robert I. Eachus
1999-06-17  0:00                                   ` Hyman Rosen
1999-06-17  0:00                                     ` Marin David Condic
1999-06-17  0:00                                     ` bob
1999-06-18  0:00                                       ` Hyman Rosen
1999-06-18  0:00                                         ` mike
1999-06-18  0:00                                           ` Hyman Rosen
1999-06-19  0:00                                             ` Samuel Mize
1999-06-21  0:00                                               ` Marin David Condic
1999-06-19  0:00                                             ` Dale Stanbrough
1999-06-21  0:00                                               ` Marin David Condic
1999-06-21  0:00                                             ` Mike Silva
1999-06-17  0:00                                 ` Jean-Pierre Rosen
1999-06-17  0:00                                   ` Marin David Condic
1999-06-17  0:00                                     ` Samuel Mize
1999-06-17  0:00                                       ` Marin David Condic
1999-06-22  0:00                                         ` Hyman Rosen
1999-06-22  0:00                                           ` Keith Thompson
1999-06-23  0:00                                             ` Marin David Condic
1999-06-24  0:00                                               ` Robert A Duff
1999-06-24  0:00                                                 ` Marin David Condic
1999-06-23  0:00                                           ` Marin David Condic
1999-06-18  0:00                                       ` Aidan Skinner
1999-06-17  0:00                                 ` Markus Kuhn
1999-06-20  0:00                                 ` Sera Hirasuna
1999-06-19  0:00                                   ` Kio
1999-06-20  0:00                                   ` Vladimir Olensky
1999-06-21  0:00                                   ` Hyman Rosen
1999-06-21  0:00                                   ` Samuel T. Harris
1999-06-22  0:00                                     ` Richard D Riehle
1999-06-22  0:00                                     ` Robert I. Eachus
1999-06-23  0:00                                       ` Aidan Skinner
1999-06-23  0:00                                       ` Richard D Riehle
1999-06-17  0:00                           ` Jean-Pierre Rosen
1999-06-16  0:00                         ` Marin David Condic
1999-06-22  0:00                       ` Robert Dewar
1999-06-23  0:00                         ` Marin David Condic
1999-06-23  0:00                           ` Vladimir Olensky
1999-06-23  0:00                             ` Marin David Condic
1999-06-23  0:00                             ` Roedy Green
1999-06-23  0:00                               ` Marin David Condic
1999-06-23  0:00                                 ` Keith Thompson
1999-06-24  0:00                                   ` Marin David Condic
1999-06-24  0:00                                   ` Mike Silva
1999-06-15  0:00                     ` tmoran
1999-06-15  0:00                       ` David Botton
1999-06-16  0:00                       ` Richard D Riehle
1999-06-16  0:00                       ` Samuel Mize
1999-06-15  0:00                     ` Samuel Mize
1999-06-16  0:00                 ` Mark Hood
1999-06-17  0:00                   ` Jean-Pierre Rosen
1999-06-17  0:00                 ` Robert I. Eachus
1999-06-17  0:00                   ` Marin David Condic
1999-06-17  0:00             ` Markus Kuhn
1999-06-17  0:00               ` David Botton
1999-06-13  0:00   ` Robert Dewar
1999-06-14  0:00     ` tmoran
1999-06-30  0:00       ` John Merryweather Cooper
1999-07-01  0:00         ` Chad R. Meiners
1999-07-02  0:00           ` Robert Dewar
1999-07-02  0:00             ` John Merryweather Cooper
1999-07-03  0:00               ` Robert Dewar
1999-06-12  0:00 ` nabbasi
1999-06-12  0:00   ` jerry
1999-06-12  0:00     ` Robert Dewar
1999-06-14  0:00       ` Marin David Condic
replies disabled

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