17 Jan
2024
17 Jan
'24
11:33 a.m.
It's an intractable problem. I spent a few months trying to adapt Lemire's papers on fast_float to 128-bit precision. You need 10s of MBs of static data, and generating it at runtime is a non-starter. Ultimately Gay's algorithm works, and it's what is in strtold already. I would much rather use the battle tested implementations in the STL than my own. But isn't strtold locale dependent while from_chars is supposed to act as-if strtod in the "C"-locale? Wouldn't that fallback violate that contract on non-English locales?
Or does that fallback only apply when the locale difference does not matter? Alex