comp.lang.ada
 help / color / mirror / Atom feed
From: Bob Brown <bob@justplainbob.com>
Subject: Re: Everything You Know Is Wrong
Date: Wed, 2 Mar 2016 16:52:32 +0000 (UTC)
Date: 2016-03-02T16:52:32+00:00	[thread overview]
Message-ID: <nb75of$108a$1@gioia.aioe.org> (raw)
In-Reply-To: nb74po$u3q$1@gioia.aioe.org

On 2016-03-02, Bob Brown <bob@justplainbob.com> wrote:
> On 2016-03-02, J-P. Rosen <rosen@adalog.fr> wrote:
>> Le 02/03/2016 16:44, Bob Brown a ?crit :
>>>> This was a deliberate decision, to make Ada compatible with various
>>>> floating point models. Many (most? all?) number crunching machines do
>>>> not have IEEE arithmetic, 
>>> 
>>> Really? Which one(s) are you talking about? I didn't even know there were
>>> any number crunchers aside from the sad ones made from a kid's pool full
>>> of Intel chips stuck together with tape and glue. All the real stuff like
>>> CDC/Cray has been gone for ages.
>> Well, true enough, I don't know for recent machines. Even Silicon
>> Graphics has disappeared (not so long ago), and AFAIK, they were not IEEE.
>>
>>>> and there has been famous papers claiming that Java requiring IEEE
>>>> arithmetic was a huge mistake. 
>>> 
>>> I would be interested in seeing the references if you have them at hand.
>>> 
>> https://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf

Ok, skimming this quickly it does not seem to me that the issue was Java
requiring IEEE arithmetic. The issue was Java's implementation of IEEE
arithmetic is seriously broken and error prone. They did not support the
highest precision type even though it is in virtually all desktop
hardware. And they didn't support the various signalling and trap mechanisms
required (and provided by other languages) to protect against serious errors
in computations.

Furthermore, and this is well-known but only touched-on very briefly by
Kahan, the lack of integer math support in Java (and other very popular
scripting languages like Javascript) is a terribly wrong-headed notion that
causes no end of problems when floating point is misapplied and integer math
should have been used instead.

What's really scary is reading claims by various knuckelheads claiming it's
ok to do financial and accounting calculations with floating point...

Bob


  reply	other threads:[~2016-03-02 16:52 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-27  0:37 Everything You Know Is Wrong Jeffrey R. Carter
2015-12-27  7:55 ` J-P. Rosen
2015-12-27 17:37   ` Jeffrey R. Carter
2015-12-27  8:46 ` Dmitry A. Kazakov
2015-12-27 17:36   ` Jeffrey R. Carter
2016-01-04 14:44     ` Alejandro R. Mosteo
2015-12-28  9:57 ` Georg Bauhaus
2015-12-28 11:19   ` Dmitry A. Kazakov
2015-12-28 16:27     ` Nicholas Collin Paul de Gloucester
2015-12-28 17:30       ` Dmitry A. Kazakov
2015-12-28 18:50         ` Nicholas Collin Paul de Gloucester
2015-12-28 20:40           ` Dmitry A. Kazakov
2015-12-29 11:42             ` G.B.
2015-12-29 12:36               ` Dmitry A. Kazakov
2015-12-29 13:50                 ` G.B.
2015-12-29 14:06                   ` J-P. Rosen
2015-12-29 14:16                   ` Dmitry A. Kazakov
2015-12-29 16:31                     ` Dennis Lee Bieber
2015-12-29 17:02                       ` G.B.
2015-12-29 16:57                     ` G.B.
2015-12-29 17:36                       ` Dmitry A. Kazakov
2015-12-29 17:53                         ` G.B.
2015-12-29 18:09                           ` G.B.
2015-12-29 22:05                           ` Randy Brukardt
2016-01-04 14:51                           ` Alejandro R. Mosteo
2015-12-29 21:58                         ` Randy Brukardt
2015-12-28 17:19 ` Nicholas Collin Paul de Gloucester
2015-12-29 23:37 ` darkestkhan
2016-01-05 13:52 ` brbarkstrom
2016-01-10 14:46 ` Michael Erdmann
2016-02-29 12:14 ` Jacob Sparre Andersen
2016-03-02 14:11   ` vincent.diemunsch
2016-03-02 14:23     ` J-P. Rosen
2016-03-02 15:44       ` Bob Brown
2016-03-02 16:30         ` J-P. Rosen
2016-03-02 16:36           ` Bob Brown
2016-03-02 16:52             ` Bob Brown [this message]
2016-03-02 14:32     ` Dmitry A. Kazakov
2016-03-02 15:31       ` vincent.diemunsch
2016-02-29 12:27 ` Jacob Sparre Andersen
replies disabled

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