comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Ada.Strings.Fixed.Count raises Storage_Error
Date: Wed, 29 Jun 2016 12:40:17 -0700
Date: 2016-06-29T12:40:17-07:00	[thread overview]
Message-ID: <nl1872$dbp$1@dont-email.me> (raw)
In-Reply-To: <dtijidFlr8mU1@mid.individual.net>

On 06/29/2016 11:49 AM, Niklas Holsti wrote:
> 
> I'm astonished that you seem to be saying that Gödel's results mean that this
> clear and simple bug in a library function should not be reported to AdaCore.
> Really. Perhaps you are afraid that this is the last bug in GNAT, and as you
> believe that every compiler must have at least one bug, removing this bug would
> mean that GNAT would no longer be a compiler :-)

This is not an error in the compiler; it's an error in a general-purpose
library. Fixing it will not change the number of errors in the compiler.

We're told that the ARG has decided that some corner cases are too difficult for
compiler writers to get right, so the ARG won't require that they be handled
correctly. The argument that this permission means the function in question
doesn't need to be correct is wrong because the error in question isn't
something the compiler has difficulty compiling. It's an error by the
implementor of the subprogram that the compiler compiles correctly.

The argument that correcting the error would have a negative effect on the
performance of the subprogram, and that it's more important that it be fast than
that it be correct is wrong because correctness is always more important than
performance for a general-purpose library. It's expected that a general-purpose
library's performance may not be acceptable for some applications. Such
applications know that a general-purpose library may not meet their performance
needs.

-- 
Jeff Carter
"What's the amount of the insult?"
Never Give a Sucker an Even Break
104

  reply	other threads:[~2016-06-29 19:40 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-12 11:36 Ada.Strings.Fixed.Count raises Storage_Error Xavier Petit
2016-05-12 15:22 ` Tero Koskinen
2016-05-12 22:05 ` Georg Bauhaus
2016-06-26 21:18   ` Victor Porton
2016-06-26 23:23     ` rieachus
2016-06-27  0:21       ` Jeffrey R. Carter
2016-06-27  4:00         ` rieachus
2016-06-27  0:51       ` Xavier Petit
2016-06-27  4:48         ` rieachus
2016-06-28 18:25           ` Xavier Petit
2016-06-29 18:49           ` Niklas Holsti
2016-06-29 19:40             ` Jeffrey R. Carter [this message]
2016-06-29 19:57             ` Dmitry A. Kazakov
2016-07-01 11:48               ` rieachus
2016-07-01 13:08                 ` Dmitry A. Kazakov
2016-06-27  8:29       ` Simon Wright
2016-06-27  8:41         ` Georg Bauhaus
2016-06-29  8:15       ` Niklas Holsti
2016-06-29  9:13         ` J-P. Rosen
2016-06-29 17:43           ` Niklas Holsti
2016-06-29 18:19             ` J-P. Rosen
2016-06-29 20:30             ` Robert A Duff
2016-06-30  5:38               ` Niklas Holsti
2016-07-01 10:40                 ` rieachus
2016-07-01 10:55                   ` J-P. Rosen
2016-07-01 12:17                     ` rieachus
2016-07-01 12:55                       ` G.B.
2016-06-27 12:52     ` Victor Porton
2016-05-12 22:56 ` Randy Brukardt
replies disabled

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