comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Have you ever had a bug caused by...
Date: Tue, 23 Oct 2001 09:30:35 -0400
Date: 2001-10-23T13:30:37+00:00	[thread overview]
Message-ID: <9r3rdt$d6f$1@nh.pace.co.uk> (raw)
In-Reply-To: 9r2f090nu2@drn.newsguy.com

It isn't even new with Ada. Pascal was doing this long before Ada was
invented. IIRC, some Fortran compilers would generate runtime exceptions on
an array index out of bounds. It was one of those things left out of C
because C was supposed to be a high-level assembly language. "You want
checks? Put them in yourself!"

Most of the kinds of checking that Ada does are not particularly new.
Language designers have been putting in compile & runtime checks on all
kinds of things for years. Its really just a difference in mentality. The C
mindset being "Don't burden the code with anything that doesn't need to be
there so we get maximum possible efficiency". Maybe at one time that made
some sense, but with the speed of today's processors and in most application
arenas it really doesn't make much sense. The small percentage of CPU used
for runtime checks just doesn't show up above the noise level. (Of course
there are still some apps for which it *does* make sense, and that's why Ada
lets you disable the checks as you need to.)

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Robert*@" <Robert_member@newsguy.com> wrote in message
news:9r2f090nu2@drn.newsguy.com...
>
> When Java came out, everyone was so excited about it, and how much more
> reliable it was, more than C, and the most common thing sited was that
> it detected array overrun conditions are run-time, wow! as if this was a
> new concept, and Ada had that for 15 years before Java was born.
>
> Yes, Ada does even more today than Java/C/C++. None of those other
languages
> for example will detect a floating point overflow/underflow at run-time,
but
> Ada will.
>





  reply	other threads:[~2001-10-23 13:30 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-20  1:14 Have you ever had a bug caused by Mike Silva
2001-10-20  1:44 ` Larry Kilgallen
2001-10-20  2:12   ` James Rogers
2001-10-20  9:15     ` Robert*
2001-10-20 11:20       ` Bertrand Augereau
2001-10-20 11:30         ` Matthew Woodcraft
2001-10-20 12:39           ` Robert*
2001-10-20 13:09           ` Bertrand Augereau
2001-10-20 21:21         ` Robert Dewar
2001-10-22 15:58     ` Ted Dennison
2001-10-20 19:07 ` Dr Adrian Wrigley
2001-10-21  1:09   ` Mike Silva
2001-10-21 12:05     ` Larry Kilgallen
2001-10-22 14:48 ` Marin David Condic
2001-10-22 17:03   ` Martin Dowie
2001-10-22 17:22     ` Marin David Condic
2001-10-23  6:13   ` Mike Silva
2001-10-22 21:49 ` David Bolen
2001-10-22 22:14   ` Marin David Condic
2001-10-23  0:52     ` Robert*
2001-10-23 13:30       ` Marin David Condic [this message]
2001-10-25  9:45         ` John English
2001-10-25 15:23           ` Marin David Condic
2001-10-25 18:17             ` Ted Dennison
2001-10-25 15:36           ` Ted Dennison
2001-10-25 16:09       ` Simon Wright
2001-10-25  2:16     ` David Bolen
2001-10-23  6:26   ` Mike Silva
2001-10-23  9:40     ` mike
2001-10-23 10:09       ` Preben Randhol
2001-10-23 13:48         ` Marin David Condic
2001-10-23 15:45           ` Ted Dennison
2001-10-23 17:08             ` Marin David Condic
2001-12-04 11:09               ` Harri J Haataja
2001-10-24 12:44             ` Marc A. Criley
2001-10-24 18:55               ` Jeffrey Carter
2001-10-24 19:34                 ` Marin David Condic
2001-10-26  4:18                   ` (Off topic:) Quality Anders Wirzenius
2001-10-25  9:36 ` Have you ever had a bug caused by John English
2001-10-25 15:41   ` Wes Groleau
2001-10-25 17:57     ` Have you ever had a bug OOPS Wes Groleau
2001-11-13  2:07       ` David Thompson
replies disabled

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