comp.lang.ada
 help / color / mirror / Atom feed
From: jans@orca.UUCP (Jan Steinman)
Subject: Re: What I miss... (really C, Ada, religion)
Date: Sun, 29-Sep-85 14:21:10 EDT	[thread overview]
Date: Sun Sep 29 14:21:10 1985
Message-ID: <1777@orca.UUCP> (raw)
In-Reply-To: 568@unisoft.UUCP

In article <568@unisoft.UUCP> phil@unisoft.UUCP (Phil Ronzone) writes:
>In article <191@graffiti.UUCP> peter@graffiti.UUCP (Peter da Silva) writes:
>>> ...was it not the mariner probe that was lost due to a FORTRAN subscript
>>> error?... for my money I would prefer to see the [range checking] in for
>>> systems like nuclear plants, MX missiles etc..
>>
>> What should the code do when a range-check occurs? Print out an error
>> message on ticker-tape & hang? Do nothing?
>
> ...as a decade-long C programmer, I find about every 3 years some
>``discussion'' with a proponent of a more-or-less highly typed language
>(Ada most recent) over the ``virtues'' of Ada and its error checking over
>(denigration inserted here) C.
>
>Shucks - but I still CAN'T see how much the poor pilot in an F16 with an
>Ada programmed fire-control computer is going to be as a Mig-27 bears down
>on him, and right when he hears the lock-on buzz to fire his own missile --
>
>     Ada runtime error 498: subscript i value 23 out of range for array x (20)
>
>I mean,
>   
>     Bus error - core dumped
>
>reads quicker and thus gives the pilot a faster ``oh shit'' response time
>to take evasive action .... :-) :-)

****** FLAME ALERT FLAME ALERT FLAME ALERT FLAME ALERT FLAME ALERT *****
As a decade-long generalist who enjoys trying and contrasting new things, I
find people who are willing to go public with their lack of knowledge about
things they are unwillng to try truly amazing!

Sorry, Phil, but you really miss the point.  With range checks, the programmer
can **anticipate** such errors.  Ada (in particular) allows multi-level
trapping of such exceptions, so nuclear war does not rest on a single low-level
module's ability to do something sane with exceptions.  I, for one, would much
rather prefer to write an exception handler that will do something useful and
sane than to simply let the OS dump core.

I've stirred these waters before, and received hate mail for it.  I respect
the opinion of C hackers who have studied Ada enough to be able to identify
it's real problems, but I've really lost patience with those whom are so
imbued with C that they cannot understand how things could be any different!

One with a decade of experience with stone axes has no concept of how a
chainsaw works.  Phil, go out and USE Ada for a year or two, then I'll listen.
-- 
:::::: Artificial   Intelligence   Machines   ---   Smalltalk   Project ::::::
:::::: Jan Steinman		Box 1000, MS 61-405	(w)503/685-2956 ::::::
:::::: tektronix!tekecs!jans	Wilsonville, OR 97070	(h)503/657-7703 ::::::

       reply	other threads:[~1985-09-29 18:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <796@kuling.UUCP>
     [not found] ` <2580002@csd2.UUCP>
     [not found]   ` <191@graffiti.UUCP>
     [not found]     ` <568@unisoft.UUCP>
1985-09-29 18:21       ` Jan Steinman [this message]
1985-10-02  1:16         ` What I miss... (really C, Ada, religion) Eugene D. Brooks III
1985-10-03 20:14           ` William D Michael
1985-10-05 19:23             ` DARIN JOHNSON
1985-10-04 13:04           ` Re: What I miss... (really C, Ada, r rosen
1985-10-04 13:44           ` What I miss... (really C, Ada, religion) Jon Mauney
1985-10-05 15:17           ` Swamp Thing
1985-10-05 21:30           ` S.Rajeev
1985-10-06  6:04           ` Jan Steinman
1985-10-07 20:56           ` J. Eric Roskos
1985-10-02 16:04         ` Peter da Silva
1985-10-07 21:04           ` J. Eric Roskos
1985-10-09 18:56           ` Wayne Throop
1985-10-09 23:47           ` Peter Ludemann
1985-09-30 20:00       ` Subscript out-of-bounds detection Joe Orost
1985-10-06 20:54   ` What I miss... (really C, Ada, religion) Eugene D. Brooks III
1985-10-07 14:13   ` Karl Tombre
1985-10-11 12:59   ` J. Eric Roskos
1985-10-13  6:28   ` Barry Margolin
1985-10-16  5:46   ` systolic processor? wildstar
1985-10-21  2:26   ` Re: What I miss... (really C, Ada, religion) Richard Welty
replies disabled

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