2 ms·
> Better yet, he claims the new format is a “drop-in replacement” for standard floats, with no changes needed to an application’s source code. Claims like that
by gwbas1c 7y ago
> Better yet, he claims the new format is a “drop-in replacement” for standard floats, with no changes needed to an application’s source code.
Claims like that are best taken with a grain of salt:
> It also does away with rounding errors, overflow and underflow exceptions, subnormal (denormalized) numbers, and the plethora of not-a-number (NaN) values. Additionally, posits avoids the weirdness of 0 and -0 as two distinct values.
Ok, so posits will probably work fine as a drop-in replacement when my application makes simple use of floats. But, assuming my application is doing non-trivial math, it's probably aware of the above edge cases. Thus, dropping in posits might have lots of weird side effects where I had to work around weird side effects of floats.
- hinkley 7y agoI think we can assume that the people who are sophisticated enough to “use floats correctly” are also sophisticated enough to know the article is not aimed at them. Your boss, on the other hand, may try to armchair architect you, which is a real (and underreported) problem,
- vanderZwan 7y ago> But, assuming my application is doing non-trivial math, it's probably aware of the above edge cases. Thus, dropping in posits might have lots of weird side effects where I had to work around weird side effects of floats. Yeah, but posits appear to have fewer weird edge-cases. Plus the people trying out posits are constantly trying to find methods to work around the limitations too. During this years conference on posit maths Florent de Dinechin had a really nice talk bringing up all current issues with posits and ways that floating point maths had found workarounds over the year, as a kind of challenge to make posits catch up[0][1]. The community took it really well, as far as I can see, and Gustafson in particular seemed delighted because he genuinely wants everyone to start using better numerical methods. [0] https://www.youtube.com/channel/UCOstJ2IVC4Y8mbgN0IsowKw https://www.youtube.com/channel/UCOstJ2IVC4Y8mbgN0IsowKw [1] https://www.youtube.com/watch?v=tcX2nRCdZvs https://www.youtube.com/watch?v=tcX2nRCdZvs