comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Ada Generic vs. C++ Templates
Date: Thu, 5 Apr 2001 10:25:10 -0400
Date: 2001-04-05T14:25:12+00:00	[thread overview]
Message-ID: <9ahv88$99b$1@nh.pace.co.uk> (raw)
In-Reply-To: WMRy6.676244$U46.20968423@news1.sttls1.wa.home.com

Well, I think it is true that *technically* speaking, an Ada compiler could
read any Ada program and generate code that produced the exception
Program_Error (or some other appropriate exception).(1) All you have to do
is posit that the target implementation is too small to contain *any* legal
Ada program of *any* size. This would be perfectly legal and presumably
ought to pass the validation suite. (This is why I have argued in the past
against the "perfectly legal" defense when a compiler doesn't do what I want
it to do. Its "Perfectly Legal" and "Totally Useless" :-)

I agree that it is less important to me to have a validated compiler than it
is to have one that produces correct, efficient and usable results. It does
give one a warm fuzzy feeling though if the compiler *is* validated because,
if nothing else, it implies that the validation suite has been used as a
test case and the bulk of it must have worked. Its significantly more than a
smoke test of the software. Also, it makes you feel comfortable that you can
use any of the language constructs and (with the possible exception of some
corner cases) get the compiler to recognize what you're trying to do &
hopefully do it.

(1) Hey! Anybody want to gang up and implement the worlds smallest/fastest
Ada compiler & get it validated? :-)

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/


"DuckE" <nospam_steved94@home.com> wrote in message
news:WMRy6.676244$U46.20968423@news1.sttls1.wa.home.com...
> I believe GNAT was the first (and may still be the only, I'm not sure) to
be
> "validated" for Ada95 including all annexes.  This does not mean the
> compiler is without bugs, nor does it mean that all features described by
> the Ada95 standard are implemented.  It merely means that the validation
> test suite was passed.
>
> Don't get me wrong, I think validation is a good thing.  But you must be
> careful about what it really means.
>
> BTW: I don't really care whether the compiler I use is validated, but it
is
> reassuring.
>






  reply	other threads:[~2001-04-05 14:25 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-02 14:28 Ada Generic vs. C++ Templates Josef Widder
2001-04-02 14:38 ` Ted Dennison
2001-04-02 20:57   ` Francois Godme
2001-04-02 21:26     ` Ted Dennison
2001-04-03  0:53       ` David Starner
2001-04-04  7:12         ` Pascal Obry
2001-04-04 12:37         ` Stephen Leake
2001-04-04 14:16         ` Ted Dennison
2001-04-03 22:09       ` Francois Godme
2001-04-04 16:17         ` Brian Rogoff
2001-04-04 16:21         ` Jeffrey Carter
2001-04-04 16:49           ` Ayende Rahien
2001-04-05 22:31             ` Colin Paul Gloster
2001-04-04 16:56           ` Ted Dennison
2001-04-04 17:02             ` Ayende Rahien
2001-04-05  0:35         ` James Rogers
2001-04-05  3:38           ` DuckE
2001-04-05 14:25             ` Marin David Condic [this message]
2001-04-05 20:32               ` Robert A Duff
2001-04-05 21:04                 ` Marin David Condic
2001-04-06 16:19                   ` Robert A Duff
2001-04-06  0:37             ` James Rogers
2001-04-06 10:38               ` Colin Paul Gloster
2001-04-11  3:33                 ` Stephen Howe
2001-04-11 14:33                   ` Colin Paul Gloster
2001-04-04 13:24 ` Georg Bauhaus
2001-04-05  8:46   ` Jean-Marc Bourguet
2001-04-04 17:30 ` Ehud Lamm
2001-04-05 22:04   ` Colin Paul Gloster
2001-04-10  7:03     ` Simon Wright
2001-04-13 14:11       ` Pat Rogers
2001-04-17  8:27         ` Colin Paul Gloster
2001-04-08  5:00 ` Lao Xiao Hai
replies disabled

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