Discrepency between JPython and CPython
Andrew Dalke
dalke at acm.org
Tue May 2 00:09:07 EDT 2000
Neel Krishnaswami asked:
>Why is this? Don't they [Java] just use IEEE-754 like everybody else?
The relevent paper I know of is
"How Javas Floating-Point Hurts Everyone Everywhere"
http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf
which claims:
> Abstract:
> Javas floating-point arithmetic is blighted by five gratuitous mistakes:
> 1. Linguistically legislated exact reproducibility is at best mere
> wishful thinking.
> 2. Of two traditional policies for mixed precision evaluation, Java
> chose the worse.
> 3. Infinities and NaNs unleashed without the protection of floating-point
> traps and flags mandated by IEEE Standards 754/854 belie Javas claim
> to robustness.
> 4. Every programmers prospects for success are diminished by Javas
> refusal to grant access to capabilities built into over 95% of today's
> floating-point hardware.
> 5. Java has rejected even mildly disciplined infix operator overloading,
> without which extensions to arithmetic with everyday mathematical types
> like complex numbers, intervals, matrices, geometrical objects and
> arbitrarily high precision become extremely inconvenient.
Don't ask me about the topic - I just parrot. Bwack! Andrew want a
cracker!
Andrew
dalke at acm.org
More information about the Python-list
mailing list