2 ms·
I don't agree that it's "impossible to measure objectively." The practice to store floating values with less bits but calculate with more is very old, specific
by acqq 13y ago
I don't agree that it's "impossible to measure objectively." The practice to store floating values with less bits but calculate with more is very old, specifically, older than C. It's not accidental, it survived because it's needed. As long as we don't have infinite memory and want to have huge inputs and outputs we'll need 32-bit floats.
And as long we want to calculate with less error, and we need it, we'll need doubles as intermediate calculations.
- pcwalton 13y agoNone of this is relevant to my point. You can use doubles for intermediate calculations in C, Java, and Rust. The only difference is what the defaults are.
- bluecalm 13y agoIs the group using your choice as default sizeable? it's hard to imagine it's comparable to all the people who do numerical computations assuming standard behavior. Now all the algorithms will produce different results and the onea in Rust will be less accurate. I don't think you can reasonably expect to avoid a lot of pain with this choice. it would be nice to at least have compiler flag or something instead requirement to write explicit casts everywhere.