comp.lang.ada
 help / color / mirror / Atom feed
From: gwinn@res.ray.com (Joe Gwinn)
Subject: Re: fixed point vs floating point
Date: 1997/11/26
Date: 1997-11-26T00:00:00+00:00	[thread overview]
Message-ID: <gwinn-2611971945330001@dh5055143.res.ray.com> (raw)
In-Reply-To: dewar.880518760@merv


In article <dewar.880518760@merv>, dewar@merv.cs.nyu.edu (Robert Dewar) wrote:

> Joe said
> 
> <<It's been at least ten years since use of fixed point in Ada83 came up,
> and I no longer recall the details.  I don't think it was lack of
> understanding, as we had lots of oldtimers experienced with scaled binary
> (most often in assembly, but also in fortran etc) and lots of Ada folk,
> some quite good.  Anyway, we gave up on it.  It may have been an
> early-compiler effect, later fixed, but the damage was already done.
> >>
> 
> Actually that's probably a recipe for such misunderstanding. If you come
> to the fixed-point semantics in Ada with preconceptions, you can often
> be surprised. For example, people do not realize that delta does not
> specify the small, or they don't understand the issue with end points
> fudged by delta, or they don't understand the role of universal fixed
> in multiplication and division, or they don't undersatnd the accuracy
> requiremets etc.
> 
> So it would not surprise me *at all* if this "damage" were self
> inflicted. Using fixed-point in Ada is not like using scaled binary
> in Fortran!

Well, in those days many people had lots of trouble getting scaled binary
exactly right too.  It wasn't always obvious how to renormalize the
results of multiplications and divisions on various machines.  One of my
best-selling memos of that era gave a simple turn-the-crank algorithm to
convert a function from mathematical (ie, real arithmetic) form to scaled
binary form, and back.  

The great hope of Ada83 fixed-point arithmetic was that it would make such
memos unnecessary.  This would have been a good thing, but it had to wait
for the wide use of floating point.

As for the differences in Ada's model, I don't recall complaints about
that, or that they couldn't understand how it worked.  What I do recall
was that the Ada experts couldn't get it to work reliably or well using
the compilers of the day.

In the large-scale development world, under the ususal schedule and budget
pressures, tools and technologies don't get so many chances.  People will
try something.  If it works, and doesn't cost too much blood or treasure,
they keep on using it, and it will spread.  If it fails, or is too much
trouble, or bites them too often, they stop using it, and they tell all
their friends.  It's rare that something that failed for them will ever be
tried again.  Bad news travels faster than good news.  And, full-scale
engineering development (FSED) labs are not research universities.  For
better or worse, the FSED labs are paid to build something in no more than
two or perhaps three years, and push it out the door, so there's little
time or money to fiddle with things.


Joe Gwinn




  reply	other threads:[~1997-11-26  0:00 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-22  0:00 fixed point vs floating point Matthew Heaney
1997-11-22  0:00 ` Tucker Taft
1997-11-22  0:00   ` Robert Dewar
1997-11-22  0:00     ` Matthew Heaney
1997-11-23  0:00 ` Geert Bosch
1997-11-23  0:00   ` Tom Moran
1997-11-25  0:00     ` John A. Limpert
1997-11-25  0:00       ` Robert Dewar
1997-11-25  0:00       ` Robert Dewar
1997-11-23  0:00   ` Matthew Heaney
1997-11-23  0:00     ` Robert Dewar
1997-11-24  0:00       ` Herman Rubin
1997-11-24  0:00         ` Robert Dewar
1997-11-25  0:00           ` Joe Gwinn
1997-11-25  0:00             ` Robert Dewar
1997-11-25  0:00               ` Joe Gwinn
1997-11-25  0:00                 ` Robert Dewar
1997-11-26  0:00                   ` Joe Gwinn [this message]
1997-11-26  0:00                     ` Robert Dewar
1997-12-01  0:00                       ` Joe Gwinn
1997-12-01  0:00                         ` Robert Dewar
1997-12-01  0:00                           ` Joe Gwinn
1997-12-03  0:00                           ` robin
1997-11-25  0:00             ` Matthew Heaney
1997-11-26  0:00             ` William A Whitaker
1997-11-24  0:00     ` Geert Bosch
1997-11-24  0:00 ` Vince Del Vecchio
1997-11-24  0:00 ` Vince Del Vecchio
1997-12-03  0:00 ` robin
  -- strict thread matches above, loose matches on Subject: below --
2011-09-29 10:25 RasikaSrinivasan@gmail.com
2011-09-29 10:49 ` AdaMagica
2011-09-29 13:38   ` Martin
2011-09-30 10:17 ` Stephen Leake
2011-09-30 16:25   ` tmoran
2011-09-30 16:52     ` Dmitry A. Kazakov
2011-10-01 11:09     ` Stephen Leake
2011-09-30 19:26   ` tmoran
2011-09-30 22:31   ` tmoran
2011-10-01 13:37   ` RasikaSrinivasan@gmail.com
2011-10-02 14:19     ` Stephen Leake
1997-12-02  0:00 Robert Dewar
1997-12-02  0:00 ` Joe Gwinn
1997-12-02  0:00   ` Robert Dewar
1997-12-02  0:00     ` Matthew Heaney
1997-12-03  0:00       ` Robert Dewar
1997-12-03  0:00     ` Shmuel (Seymour J.) Metz
1997-12-03  0:00       ` Robert Dewar
1997-12-03  0:00       ` Matthew Heaney
1997-12-04  0:00         ` Shmuel (Seymour J.) Metz
1997-12-04  0:00           ` Robert Dewar
1997-12-03  0:00       ` Robert Dewar
1997-12-03  0:00     ` robin
1997-12-03  0:00       ` Robert Dewar
1997-12-02  0:00   ` Ken Garlington
1997-12-03  0:00     ` Joe Gwinn
1997-12-04  0:00       ` Robert Dewar
1997-12-04  0:00         ` Shmuel (Seymour J.) Metz
1997-12-03  0:00 ` robin
1997-11-28  0:00 tmoran
1997-11-28  0:00 ` Robert Dewar
1997-11-27  0:00 tmoran
1997-11-27  0:00 ` Robert Dewar
1997-11-29  0:00   ` Tarjei T. Jensen
     [not found] <9711221603.AA03295@nile.gnat.com>
1997-11-22  0:00 ` Ken Garlington
replies disabled

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