> One interesting thing, John and I had an argument about the implementation, because there is one part about it that really sucks.
And which part would that be? I'm mostly asking out of curiosity, so don't put yourself out if the answer is too long and involved.
As someone who has implemented a couple FPUs, I can assure you that there are quite a few pieces of IEEE 754 that suck to implement.
Re:Why Bitwise Reproducibility Matters
by jacobolus on Saturday September 19, 2015 @08:13PM
(#10246037)
> there is one part about it that really sucks
Don’t leave us hanging! What is the part that really sucks?
Re:Why Bitwise Reproducibility Matters
by dnautics on Saturday September 19, 2015 @11:18PM
(#10246461)
The spec has an asymmetric exponent bias. IEEE floating points have an asymmetric exponent bias - for example float64 has 1022 bias (symmetric would be a 1023 bias). Because of the properties of unums, the universal representation of the value 1 is subnormal, and subnormals are tricky to deal with. If unums had symmetric exponent biases, then there would not be multiple representations of one.
One interesting thing, John and I had an argument about the implementation, because there is one part about it that really sucks. Eventually he admitted that it had rankled him too and that the reason why he made this design choice was so that float64 could bitwise map smoothly onto unum{4,6} and float32 onto unum{4,5}... And that people would actually refuse to use unums if not for this direct bitwise mapping! So I capitulated.