comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Generic-Package Elaboration Question / Possible GNAT Bug.
Date: Wed, 23 Nov 2011 12:15:30 +0100
Date: 2011-11-23T12:15:30+01:00	[thread overview]
Message-ID: <4eccd5d2$0$6637$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: <x5dznkeses66.wzuo5z8f8gkd.dlg@40tude.net>

On 23.11.11 10:04, Dmitry A. Kazakov wrote:
> On Wed, 23 Nov 2011 00:52:23 +0100, Georg Bauhaus wrote:
>
>> On 22.11.11 20:15, Dmitry A. Kazakov wrote:
>>
>>>> Meyer: "Programming is a human activity".
>>>> Programmers are led towards a solution during the process of programming.
>>>> Depending on the characteristics of the process, then,
>>>> programmers will produce different results.
>>>
>>> I see no word "debugging" there.
>>
>> A debugging aid is a means of finding mistakes when developing programs.
>
> So it is the debugging driven design you are advocating for. Designing by
> fixing bugs. Nice, very nice... exactly the thing I don't want for Ada.

Specifications have bugs.

Since designing with annotations (instead of without them, or with
comments only)  happens at the level of abstract data types,
DbC absolutely wants programmers to be honest about the
bugs in their ADTs' interfaces.  These bugs exist
in brains, on paper, or in package specs. Or, well, as aspects.
At this stage, one cannot use a debugger for executable programs,
because there is no program.  But there are bugs already.
DbC need not happen at the level of concrete implementation (again,
being finally a non-trivial, but redundant consequence of the
annotated program). In fact, DbC emphasizes that assertions
do not replace conditionals.


> I bet that coffee is far more helpful than frantic patching the
> program in the debugger.

What debugger?


> One of the key points of good design is NOT to have such descriptions. The
> reader of the program, be it human or the compiler should be able to
> *understand* what you are describing.

What is it that a reader of a package spec should be able to understand?
ADTs without invariants?
Subprograms of unknown effect, but possibly raising a ubiquitous exception?
Yes, it is possible to understand these things, but I don't understand
how this is so useful in comparison.


>> There is no right or wrong in most programs.
>
> You cannot build safe software on false premises.

Almost all programs have a number of things that can go wrong,
they are not safe, but they are pretty safe. Yes, pretty safe.
That's bad, but it is something. Reduces risk of stress-induced
health problems caused by buggy programs.
My point is that it is better to reduce the number of annoyances
created by such programs, rather than to insist that ensuring
total safety is impossible in general.

> You could bring thousands
> reasons, but none can change the fact. What is wrong is wrong.

Wrong means wrong with respect to some formalism; the one given
is too trivial for my taste, or maybe I don't understand it.
I need proof of "wrong to do this", and will, like you, continue
to use compilers, which might be wrong.





  reply	other threads:[~2011-11-23 11:15 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-19 21:14 Generic-Package Elaboration Question / Possible GNAT Bug Shark8
2011-11-19 22:12 ` Robert A Duff
2011-11-19 23:36   ` Shark8
2011-11-20  9:55     ` Dmitry A. Kazakov
2011-11-21  7:25       ` AdaMagica
2011-11-21  8:43         ` Dmitry A. Kazakov
2011-11-21 10:25           ` AdaMagica
2011-11-21 13:08           ` Robert A Duff
2011-11-21 13:50             ` Dmitry A. Kazakov
2011-11-21 19:41               ` Robert A Duff
2011-11-22  8:21                 ` Dmitry A. Kazakov
2011-11-21 20:40               ` J-P. Rosen
2011-11-22  8:29                 ` Dmitry A. Kazakov
2011-11-22 10:25                   ` Georg Bauhaus
2011-11-22 14:32                     ` Dmitry A. Kazakov
2011-11-22 15:02                       ` Georg Bauhaus
2011-11-22 16:23                         ` Dmitry A. Kazakov
2011-11-22 17:46                           ` Georg Bauhaus
2011-11-22 19:15                             ` Dmitry A. Kazakov
2011-11-22 21:03                               ` Randy Brukardt
2011-11-22 21:26                                 ` Dmitry A. Kazakov
2011-11-23  0:07                                   ` Georg Bauhaus
2011-11-23  8:44                                     ` Dmitry A. Kazakov
2011-11-23  9:32                                       ` Simon Wright
2011-11-23  9:56                                         ` Dmitry A. Kazakov
2011-11-23 11:03                                           ` Georg Bauhaus
2011-11-23 11:13                                             ` Dmitry A. Kazakov
2011-11-23 11:25                                               ` Georg Bauhaus
2011-11-23 13:14                                                 ` Dmitry A. Kazakov
2011-11-23 13:59                                                   ` Georg Bauhaus
2011-11-23 14:43                                                     ` Dmitry A. Kazakov
2011-11-23 16:10                                                       ` Georg Bauhaus
2011-11-23 19:51                                                         ` Dmitry A. Kazakov
2011-11-24  0:59                                                           ` Georg Bauhaus
2011-11-24  9:14                                                             ` Dmitry A. Kazakov
2011-11-23 15:12                                           ` Simon Wright
2011-11-23 19:53                                             ` Dmitry A. Kazakov
2011-11-24  8:07                                               ` Simon Wright
2011-11-24  9:27                                                 ` Dmitry A. Kazakov
2011-11-24 10:49                                                   ` Georg Bauhaus
2011-11-24 13:14                                                     ` Dmitry A. Kazakov
2011-11-24 14:31                                                       ` Georg Bauhaus
2011-11-24 16:32                                                         ` Dmitry A. Kazakov
2011-11-24 11:15                                                 ` Brian Drummond
2011-11-24 18:12                                                   ` Simon Wright
2011-11-24 23:52                                                     ` Brian Drummond
2011-11-23 10:35                                         ` Brian Drummond
2011-11-23  9:54                                       ` Georg Bauhaus
2011-11-23 10:30                                         ` Dmitry A. Kazakov
2011-11-23  4:08                                 ` Yannick Duchêne (Hibou57)
2011-11-23  4:11                                 ` Yannick Duchêne (Hibou57)
2011-11-22 23:52                               ` Georg Bauhaus
2011-11-23  9:04                                 ` Dmitry A. Kazakov
2011-11-23 11:15                                   ` Georg Bauhaus [this message]
2011-11-23 13:30                                     ` Dmitry A. Kazakov
2011-11-23 14:42                                       ` Georg Bauhaus
2011-11-23 19:48                                         ` Dmitry A. Kazakov
2011-11-24  1:36                                           ` Georg Bauhaus
2011-11-24 10:52                                             ` Dmitry A. Kazakov
2011-11-24 11:30                                               ` Georg Bauhaus
2011-11-24 12:52                                                 ` Dmitry A. Kazakov
2011-11-24 14:45                                                   ` Georg Bauhaus
2011-11-25  9:54                                                     ` Dmitry A. Kazakov
2011-11-24  7:46                                           ` stefan-lucks
2011-11-24  3:07                           ` Shark8
2011-11-24  6:07                             ` Yannick Duchêne (Hibou57)
2011-11-24 10:10                             ` Dmitry A. Kazakov
2011-11-24 11:15                               ` Georg Bauhaus
2011-11-24 22:48                               ` Shark8
2011-11-25  9:25                                 ` Yannick Duchêne (Hibou57)
2011-11-26 21:59                                   ` Shark8
2011-11-25  9:47                                 ` Dmitry A. Kazakov
2011-11-25 10:15                                   ` Georg Bauhaus
2011-11-25 10:51                                     ` Yannick Duchêne (Hibou57)
2011-11-25 15:45                                   ` Georg Bauhaus
2011-11-25 16:05                                     ` Yannick Duchêne (Hibou57)
2011-11-25 16:19                                     ` Yannick Duchêne (Hibou57)
2011-11-23  3:49                         ` Yannick Duchêne (Hibou57)
2011-11-23  8:50                           ` Georg Bauhaus
2011-11-23  9:45                             ` Yannick Duchêne (Hibou57)
2011-11-23 10:55                               ` Georg Bauhaus
2011-11-23  3:20             ` Yannick Duchêne (Hibou57)
2011-11-23 15:05               ` Robert A Duff
2011-11-21 17:00 ` Adam Beneschan
2011-11-23  3:13 ` Yannick Duchêne (Hibou57)
2011-11-24  3:47   ` Shark8
replies disabled

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