by throwaway260124 · 2y ago · 0 comments
I think there is always a correct answer and the compiler shouldn’t make changes at least by default that are wrong.
But ways for the programmer to express his intent more clearly are always welcome.
SIMD sums are going to typically be much more accurate than a naive sum.
There just isn't a one-size-fit-all solution to be had here.
But there is: https://news.ycombinator.com/item?id=40867842
If might be the case that it is the best solution if you do need the extra precision. But that’s just one case, not all.