|
|
|
|
|
by modulovalue
648 days ago
|
|
I'm still wondering if there could exist an alternative world where efficient addition over decimal numbers that we developers use on a day to day basis is associative. Is that even possible or is there perhaps some fundamental limit that forces us to trade associativity for performance? It seems to me that non associative floating point operations force us into a local maximum. The operation itself might be efficient on modern machines, but could it be preventing us from applying other important high level optimizations to our programs due to its lack of associativity? A richer algebraic structure should always be amenable to a richer set of potential optimizations. --- I've asked a question that is very much related to that topic on the programming language subreddit: "Could numerical operations be optimized by using algebraic properties that are not present in floating point operations but in numbers that have infinite precision?" https://www.reddit.com/r/ProgrammingLanguages/comments/145kp... The responses there might be interesting to some people here. |
|
Floats are mostly for when you need that dynamic range.