comp.lang.ada
 help / color / mirror / Atom feed
From: Ken Garlington <Kennie.E.Garlington@lmco.com>
Subject: Re: Ada and robots
Date: 1997/06/26
Date: 1997-06-26T00:00:00+00:00	[thread overview]
Message-ID: <33B2A014.2C5@lmco.com> (raw)
In-Reply-To: 9706242128.AA09652@stealth.ctron.com


Huy Vo wrote:
> 
> jsa@alexandria.organon.com (Jon S Anthony) wrote:
> >In article <199706201607.MAA01178@mermaid.ctron.com> Huy Vo <vo@CTRON.COM>
>  writes:
> >
> >> >Um, this just means Ada _labels_ unchecked conversion as dangerous. In C
> >> >it may be "simple", but it is NOT "safe". (Maybe you forgot a smiley?)
> >> >
> >> Safe or not safe, it looks like Ada programs can crash on the field like
> >> a previous poster admitted. The worse thing is that it leaves no trace
> >> as to what leads to the crash.  And other posters have to come up with
> >> ugly 'C hacks'  to provide traceback of Ada programs. There goes the myth
> >> that Ada programs need no debugging.
> >
> >a) No one is dumb enough to suggest Ada programs are by nature some
> >how bug free.  So, you are just giving a silly strawman
> 
> Cool; Ada is not as safe as I thought it was; so, when I board a Boeing
> I should think twice. By the way, aren't there components on a Boeing
> that are based on 8 bit processors that can't take C let alone Ada.
> So what is the justification of insisting on building supposedly
> safe systems (the Boeing)  with a mix of safe components (Ada) and
> unsafe ones (C and assembly)?

Because it's safer than building it in pure assembly.

You don't _really_ believe systems are "safe" vs. "unsafe", do you?
Systems are _relatively_ safe vs. other systems. There's several good
books on this subject; see (for example)

  http://www.cs.washington.edu/research/projects/safety/www/

> 
> >
> >b) Trace backs or not are _implementation_ dependent.  Plenty of C
> >implementations have nothing to offer here either (put together with
> >the fact that most have absolutely worthless compile time diagnostics
> >and you have something that basically offers zero support).
> 
> As a C programmer, I know it better than anyone; so I have been
> religiously checking every malloc()'s return and proceed accordingly.
> What do you do when you call new and new fails? You rely on the runtime system
>  telling
> you what line it fails? Unlikely, since the runtime is not required to do this.

In Ada, of course, it _is_ required to tell you (see the exception
Storage_Check,
described in section 11.5:23 of the language reference manual). Coupled
with a
good debugging environment, the line number where the check occured will
be
reported.

> How many of you actually have a customized "out of memory" handler
> that indicates what exactly the offending line?
> Error checking is an attitude; it's not a feature of the language.

In Ada, it's both.

> 
> >
> >c) In this particular case (fiddling with machine level
> >representations) the most you can conclude from your "comment" is that
> >neither has an advantage over the other, i.e., for this _particular_
> >case, you claim that it's a wash.
> >
> >d) Even in HW interfacing there is a _lot_ more going on than the
> >actual machine level fiddling.  This work invariably requires
> >(implicitly or explicitly) higher level abstractions.
> >
> >e) No one is dumb enough to suggest C has high level abstraction
> >capabilities such as found in Ada.
> 
> On the contrary, C constitutes the low level base for Ada programs,
> the work horse, the "unsafe" layer (NT, UNIX, LINUX, etc...) without which
> it's impossible to build "safe" applications.

My Ada compiler generates object code, not C, and runs using an Ada
run-time
environment (also written in Ada). I build safety-critical applications
with it.
What Ada compiler are you using?

> The lack of high level abstraction
> doesn't hurt C a bit. C provides me with every component that made this post
> possible: the editor, the operating system, the networking software/firmware.
> I don't believe in C because everyone (well, almost) writes in C; I believe
> in C because it works just fine for me.

Do you build safety-critical applications?

--
LMTAS - The Fighter Enterprise - "Our Brand Means Quality"
Who uses Ada? See http://www.lmasc.lmco.com/f22
For job listings, other info: http://www.lmtas.com or
http://www.lmco.com




  parent reply	other threads:[~1997-06-26  0:00 UTC|newest]

Thread overview: 132+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-24  0:00 Ada and robots Huy Vo
1997-06-25  0:00 ` Alan Brain
1997-06-25  0:00 ` Dale Stanbrough
1997-06-25  0:00 ` Jon S Anthony
1997-06-25  0:00 ` Wes Groleau
1997-06-26  0:00 ` Ken Garlington [this message]
1997-07-01  0:00   ` Tom Moran
  -- strict thread matches above, loose matches on Subject: below --
1997-07-02  0:00 Huy Vo
1997-07-04  0:00 ` Richard A. O'Keefe
1997-07-01  0:00 Huy Vo
1997-07-02  0:00 ` Wes Groleau
1997-06-30  0:00 Huy Vo
1997-07-01  0:00 ` Alan Brain
1997-07-11  0:00   ` Will Rose
1997-07-02  0:00 ` Mattias Sj�sv�rd
     [not found] <867541382.23405@dejanews.com>
1997-06-29  0:00 ` John Howard
1997-06-26  0:00 Huy Vo
1997-06-27  0:00 ` Alan Brain
1997-06-27  0:00   ` Wes Groleau
1997-06-27  0:00   ` Stephen Leake
1997-06-27  0:00 ` Richard A. O'Keefe
1997-06-27  0:00 ` Jon S Anthony
1997-06-27  0:00 ` Wes Groleau
1997-06-27  0:00 ` nma123
1997-06-20  0:00 Huy Vo
1997-06-23  0:00 ` Jon S Anthony
1997-06-19  0:00 ada " Jon S Anthony
1997-06-19  0:00 ` Brian Rogoff
1997-06-20  0:00   ` Jon S Anthony
1997-06-22  0:00   ` John G. Volan
1997-06-25  0:00     ` Richard A. O'Keefe
1997-06-23  0:00   ` Robert Dewar
1997-06-24  0:00     ` Brian Rogoff
1997-06-16  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-16  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-17  0:00 ` Joe Gwinn
1997-06-18  0:00   ` Jon S Anthony
1997-06-18  0:00     ` Brian Rogoff
1997-06-20  0:00   ` Robert Dewar
1997-06-23  0:00     ` Richard Kenner
1997-06-23  0:00       ` Robert Dewar
1997-06-23  0:00     ` Geert Bosch
1997-07-02  0:00       ` Robert Dewar
1997-06-25  0:00   ` Jonathan Guthrie
1997-06-25  0:00   ` Will Rose
1997-06-21  0:00 ` Nick Roberts
1997-06-12  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-09  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-05  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-05  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-06-09  0:00 ` Jerry Petrey
1997-06-10  0:00   ` Alan Brain
1997-06-10  0:00     ` Joe Gwinn
1997-06-11  0:00       ` Robert Dewar
1997-06-11  0:00         ` Samuel Mize
1997-06-13  0:00           ` Erik Magnuson
1997-06-17  0:00         ` Joe Gwinn
1997-06-18  0:00           ` Jon S Anthony
1997-06-19  0:00             ` Jonathan Guthrie
1997-06-20  0:00           ` Robert Dewar
1997-06-11  0:00       ` Alan Brain
1997-06-11  0:00         ` Joe Gwinn
1997-06-11  0:00         ` Spam Hater
1997-05-28  0:00 John Bohn
1997-05-29  0:00 ` Michael F Brenner
1997-05-29  0:00 ` Stephen Leake
1997-05-30  0:00 ` John Cook
1997-05-30  0:00   ` Tom Moran
1997-06-01  0:00     ` Dale Stanbrough
1997-06-02  0:00       ` John G. Volan
     [not found]         ` <5mv984$7kn@news.emi.com>
1997-06-03  0:00           ` Joe Gwinn
1997-06-04  0:00             ` Pat Rogers
1997-06-05  0:00               ` Joe Gwinn
1997-06-14  0:00                 ` Robert Dewar
1997-06-16  0:00                 ` Ken Garlington
1997-06-16  0:00                   ` Robert Dewar
1997-06-17  0:00                   ` Joe Gwinn
1997-06-28  0:00                     ` Mike Stark
1997-07-03  0:00                       ` Joe Gwinn
1997-06-04  0:00             ` John G. Volan
1997-06-05  0:00               ` Joe Gwinn
1997-06-14  0:00                 ` Robert Dewar
1997-06-17  0:00                   ` Joe Gwinn
1997-07-03  0:00                     ` Shmuel (Seymour J.) Metz
     [not found]               ` <9706052229.AA29554@jaguar.nmc.ed.ray.com>
1997-06-06  0:00                 ` John G. Volan
1997-06-07  0:00                   ` RC
1997-06-09  0:00                   ` Joe Gwinn
1997-06-05  0:00             ` Jon S Anthony
1997-06-05  0:00               ` Joe Gwinn
1997-06-14  0:00                 ` Robert Dewar
1997-06-10  0:00             ` Robert Dewar
1997-06-10  0:00               ` Joe Gwinn
1997-06-11  0:00                 ` Robert Dewar
1997-06-12  0:00                   ` George Haddad
1997-06-16  0:00                   ` Matthew S. Whiting
1997-06-17  0:00                     ` Robert A Duff
1997-06-18  0:00                       ` Ken Garlington
1997-07-17  0:00                         ` Shmuel (Seymour J.) Metz
1997-06-20  0:00                       ` Adam Beneschan
1997-06-20  0:00                       ` Robert Dewar
1997-06-17  0:00                     ` Robert Dewar
1997-06-17  0:00                     ` Jon S Anthony
1997-06-17  0:00                       ` Matthew S. Whiting
1997-06-18  0:00                         ` Jon S Anthony
1997-06-22  0:00                           ` John G. Volan
1997-06-18  0:00                         ` Samuel Mize
1997-06-18  0:00                           ` Matthew S. Whiting
1997-06-18  0:00                         ` Robert A Duff
1997-06-17  0:00                     ` Samuel Mize
1997-06-18  0:00                       ` Steve O'Neill
1997-06-19  0:00                         ` Anonymous
1997-06-19  0:00                       ` Kenneth W. Sodemann
1997-06-20  0:00                       ` Stephen Leake
1997-06-20  0:00                         ` Robert Dewar
1997-06-17  0:00                     ` Stephen Leake
1997-06-17  0:00                       ` Robert A Duff
1997-06-20  0:00                       ` jim granville
1997-06-21  0:00                         ` Robert Dewar
1997-06-29  0:00                         ` Matthew Heaney
1997-07-03  0:00                           ` Shmuel (Seymour J.) Metz
1997-07-13  0:00                             ` Robert Dewar
1997-06-03  0:00           ` Martin A. Stembel
1997-06-04  0:00         ` RC
1997-06-04  0:00           ` John G. Volan
1997-06-04  0:00           ` Larry Kilgallen
1997-06-05  0:00           ` Jon S Anthony
1997-06-02  0:00     ` Nick Roberts
1997-06-04  0:00       ` Jan Galkowski
1997-06-05  0:00         ` Albert K. Lee
1997-06-06  0:00           ` dana
1997-06-07  0:00             ` John G. Volan
1997-06-10  0:00               ` dana
replies disabled

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