comp.lang.ada
 help / color / mirror / Atom feed
From: William A Whitaker <whitaker@erols.com>
Subject: Re: Disallowing Pre-Defined Operations
Date: 2000/03/22
Date: 2000-03-23T04:52:16+00:00	[thread overview]
Message-ID: <38D9A2E8.F720768@erols.com> (raw)
In-Reply-To: 8b0pbg$aph$1@nnrp1.deja.com

No one asks for built-in units checking.  (Actually I did and several
others have talked to me about it, but apparently not to ACT.)  This may
not be unexpected.  ACT talks to the computer people in a company. 
Computer scientists have no brief for units, they deal with bits, and
maybe GUIs.  They get an algorithm and are supposed to implement it. 
That is software.  The managers do not ask for units, thay just want to
job done and expect that the programmeers will take care of it.  The
only way they would know of the problem is when something goes wrong,
like a Mars probe crashes.  And the knowledge is of little use then
because their next managerial job is at McDolalds.

It was not always so.  The first few generations of computers were
designed and built for physicists, who did their own programming.  And
units were important, but physicists were trained to be particularly
careful with them.  Now days the language/compiler could help those who
are not as careful. 

I suggest that a units checking feature would be a valuable selling
feature in Ada, even though one might have to educate the user.  But it
is a step above any individual implementer.  The suggestion that it
would be an interesting experiment as a modification to GNAT is a good
one.  But I hope such work gets widely circulated so that there is
developed a common method of stating the units in a program, however it
is implemented.  And one might advertize that the units pragma in one
system means the same as in another.

Whitaker

Robert Dewar wrote:
> 
> In article <38D2E598.262D1CD5@erols.com>,
>   whitaker@erols.com wrote:
> > Of course, the ideal is an Ada recognition of the Units
> > requirement and implementation at the standard/compiler level.
> 
> I don't see the "of course" here at all. It is not at all clear
> that the damage to the language done by the additional
> complexity here would be worth the additional functionality.
> 
> Given that the discriminants solution works fine, and has an
> efficient implementation, that seems good enough to me. If no
> compiler vendor has bothered to provide this efficient
> implementation, it would tend to indicate that it is simply
> not that important.
> 
> Certainly we have never had any customers asking for such
> a feature, and our customers are not shy when it comes to
> asking for enhancements (the long list of features in the
> new release of GNAT 3.13a is largely fueled by customer
> requests).
> 
> Robert Dewar
> Ada Core Technologies
> 
> P.S. Exploring this more efficient implementation would
> certainly make a nice GNAT-based project for someone to
> undertake.
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.




  reply	other threads:[~2000-03-22  0:00 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-10  0:00 Disallowing Pre-Defined Operations Charles H. Sampson
2000-03-09  0:00 ` Keith Thompson
2000-03-09  0:00 ` Samuel T. Harris
2000-03-12  0:00   ` Steven Hovater
2000-03-10  0:00 ` Jean-Pierre Rosen
2000-03-11  0:00   ` Tarjei Tj�stheim Jensen
2000-03-11  0:00     ` James S. Rogers
2000-03-13  0:00       ` Tarjei T. Jensen
2000-03-13  0:00     ` dmitry6243
2000-03-13  0:00     ` Robert Dewar
2000-03-13  0:00       ` Keith Thompson
2000-03-15  0:00         ` Robert Dewar
2000-03-15  0:00     ` Charles H. Sampson
2000-03-15  0:00       ` Robert Dewar
2000-03-21  0:00         ` Charles H. Sampson
2000-03-21  0:00           ` Robert Dewar
2000-03-21  0:00           ` Robert A Duff
2000-03-12  0:00   ` claveman
2000-03-12  0:00     ` Robert A Duff
2000-03-13  0:00       ` Tarjei T. Jensen
2000-03-13  0:00         ` Robert A Duff
2000-03-13  0:00         ` Robert Dewar
2000-03-15  0:00       ` Charles H. Sampson
2000-03-15  0:00         ` Tucker Taft
2000-03-15  0:00           ` Paul Graham
2000-03-16  0:00             ` Charles Hixson
2000-03-17  0:00               ` Paul Graham
2000-03-17  0:00                 ` Charles Hixson
2000-03-18  0:00                   ` Robert Dewar
2000-03-20  0:00                     ` Charles Hixson
2000-03-20  0:00                       ` Robert Dewar
2000-03-16  0:00             ` Robert Dewar
2000-03-16  0:00           ` Bryce Bardin
2000-03-16  0:00           ` Tarjei T. Jensen
2000-03-16  0:00             ` mark_biggar
2000-03-16  0:00             ` Dale Stanbrough
2000-03-17  0:00         ` Robert A Duff
2000-03-13  0:00     ` Ted Dennison
2000-03-10  0:00 ` mark_biggar
2000-03-14  0:00 ` Nick Roberts
2000-03-15  0:00   ` Robert Dewar
2000-03-17  0:00 ` William A Whitaker
2000-03-18  0:00   ` Robert Dewar
2000-03-18  0:00   ` Robert Dewar
2000-03-18  0:00   ` Robert Dewar
2000-03-22  0:00     ` William A Whitaker [this message]
2000-03-23  0:00       ` Robert Dewar
2000-04-06  0:00         ` Robert I. Eachus
2000-04-05  0:00           ` Marin D. Condic
2000-04-06  0:00             ` Robert Dewar
2000-04-06  0:00               ` Marin D. Condic
2000-04-07  0:00                 ` dale
2000-04-07  0:00                   ` Marin D. Condic
2000-04-07  0:00                     ` Tarjei T. Jensen
2000-04-07  0:00                       ` Marin D. Condic
2000-04-07  0:00                         ` tmoran
2000-04-07  0:00                           ` Marin D. Condic
2000-04-08  0:00                             ` Vladimir Olensky
2000-04-08  0:00                             ` Vladimir Olensky
2000-04-08  0:00                         ` Dale Stanbrough
2000-04-10  0:00                         ` Tarjei T. Jensen
2000-04-15  0:00                         ` Niklas Holsti
2000-04-15  0:00                           ` Marin D. Condic
2000-04-07  0:00                 ` Robert Dewar
2000-04-07  0:00                   ` Marin D. Condic
2000-04-09  0:00               ` Robert I. Eachus
replies disabled

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