comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Overriding discriminants perplexes GNAT 3.14p
Date: 19 Sep 2002 11:51:14 -0400
Date: 2002-09-19T16:01:32+00:00	[thread overview]
Message-ID: <u4rcm0yh9.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: amc58u$4ebgo$1@ID-77047.news.dfncis.de

Dmitry A.Kazakov <mailbox@dmitry-kazakov.de> writes:

> Stephen Leake wrote:
> 
> > Dmitry A.Kazakov <mailbox@dmitry-kazakov.de> writes:
> > 
> >> People rightly criticize MS VC++, but the situation with Ada
> >> compilers isn't much better.
> > 
> > Yes it is (in my experience). I've found bugs in _every_ compiler I've
> > ever used. At least with GNAT I have a chance of getting them fixed!
> 
> First of all there are bugs and bugs. GNAT is at least ten years old, so I 
> would expect that one could not catch it on such primitive things. What you 
> are talking about is merely a quality of support, which is a very important 
> but yet another thing. Moreover, from what Robert Dewar said before his 
> departure, it looks like excellent and thus expensive support actually 
> harms quality. ACT intentionally limits the number of GNAT users by those 
> with very deep pockets and applications which do not require all stregths 
> of Ada. Should GNAT Pro be affordable for small and medium sized projects, 
> then Ada would be applied much more wider with so terrifying ACT 
> consequence of an increasing support demand.

You are making a couple of assumptions that I find dubious.

1) More and cheaper customers = higher quality

I don't believe this, because the first consequence of more cheaper
customers is to spread your support personnel thinner, so they have
less time to write quality fixes for the bugs that get reported. 

2) ACT customers do not require all strengths of Ada. 

GNAT is the only compiler to support _all_ of the Ada Annexes. ACT
only supports code that customers demand. So I have to believe that
there is at least one ACT customers using each part of Ada. Which also
helps defeat assumption 1).

> >> I judge from my experience with GNAT and Object Ada.
> > 
> > GNAT is better than Object Ada
> 
> I wouldn't say that. From my sad experience [I was forced to create a small 
> validation site] Object Ada compiles many examples which perplexe GNAT. It 
> also makes a better code. 

Ok, it is certainly true that compilers perform differently on
different types of code; I suspect your code is in a different domain
than mine.

> The major problem with Object Ada is that it sometimes hangs and
> sometimes joyfully generates nonsense, especially when it tries to
> optimize return statements with controlled types.

That's a show stopper for me :).

> > DEC was good. GNAT is better! And yes, I _did_ find bugs in the DEC
> > Ada compiler.
> 
> Lucky one (:-)). For five years GNAT was unable to compile my program in 
> Ada 83 written for DEC Ada. [I must admit, I slightly overused generics 
> there]

Yeah, I've hit a few bugs in GNAT generics as well. Fixed now :).

> Yes *now* GNAT is better than DEC Ada that time. 

That is what I meant. Certainly the first version of GNAT (3.09?) was
pretty horrible.

> Though there is nothing comparable with LSE and DEC debugger. 

Emacs and gdb (current versions) are better than LSE and DEC debugger,
but just barely.

> But what if mismanagement and "new economy" didn't kill DEC?

Then I'd be running VMS instead of Windows, and Linux would never have
gotten started (hey, I can dream, can't I :).

> > Compilers are _extremely_ complicated systems. It is _not_ possible to
> > ensure they have no bugs.
> > 
> > Please report your bug to report@gnat.com, following the instructions
> > in the GNAT BUG box. Or let me know, and I'll do it.
> 
> It is better if you do that, because you are working with 3.15. 

Hmm. I don't want to abuse my support contract by submitting bugs that
I have not encountered in my work. I'll send this one in, but from now
on I won't make that offer.

And ACT does look at bug reports from non-customers, especially if
they are simple to reproduce (as yours is).

> Here is a pair of "gems" from my collection:

Send them in to ACT; they will get fixed in a future version.

-- 
-- Stephe



  reply	other threads:[~2002-09-19 15:51 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-19  2:32 Overriding discriminants perplexes GNAT 3.14p Dmitry A.Kazakov
2002-09-18 16:45 ` Stephen Leake
2002-09-19 21:34   ` Dmitry A.Kazakov
2002-09-19 15:51     ` Stephen Leake [this message]
2002-09-20 22:06       ` Dmitry A.Kazakov
2002-09-20 12:29         ` Stephen Leake
2002-09-22  8:43           ` Dmitry A.Kazakov
2002-09-22 13:32             ` Georg Bauhaus
2002-09-23  5:41               ` Dmitry A.Kazakov
2002-09-23 12:41                 ` Georg Bauhaus
2002-09-24  1:38                   ` Dmitry A.Kazakov
2002-09-23 15:33             ` Stephen Leake
2002-09-24  8:35               ` Dmitry A. Kazakov
2002-09-19 18:22     ` Adam Beneschan
2002-09-20 22:06       ` Dmitry A.Kazakov
2002-09-20 16:00         ` Adam Beneschan
2002-09-22  8:43           ` Dmitry A.Kazakov
2002-09-23 21:18             ` Adam Beneschan
2002-09-24  9:40               ` Dmitry A. Kazakov
2002-09-21 13:01     ` Simon Wright
2002-09-18 16:46 ` Mark Johnson
2002-09-19 21:34   ` Dmitry A.Kazakov
2002-09-19 16:17     ` Stephen Leake
2002-09-19 20:02       ` tmoran
2002-09-20 21:10       ` Dmitry A.Kazakov
2002-09-21 12:56       ` Simon Wright
2002-09-18 16:49 ` Frank J. Lhota
2002-09-19 21:34   ` Dmitry A.Kazakov
2002-09-18 17:17 ` Per Sandbergs
2002-09-19  8:51 ` Thierry Lelegard
  -- strict thread matches above, loose matches on Subject: below --
2002-09-19  9:08 Grein, Christoph
replies disabled

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