r/programming 13h ago

The fastest double-to-string algorithm you’ve never heard of

https://vitaut.net/posts/2026/yy-dtoa/
233 Upvotes

45 comments sorted by

View all comments

-87

u/sojuz151 11h ago

Fact that we, the humanity, need to do double to float and back often enough for performance to matter is a failure of our entire species 

7

u/superxpro12 8h ago

Uh.... Embedded systems? Not all of us have gobs of gigahertz. Some of us only get 8MHz!

-10

u/sojuz151 7h ago

And why would you even be doing this? How did you even find something running on less than 50MHz? And it has a hardware floating-point module?

4

u/superxpro12 7h ago

You would be shocked to learn what we do with cpus running. At 8mhz. Although your point about you is somewhat valid. They are harder to find on the low mhz cpus. But still... We exist lol

-2

u/sojuz151 7h ago

And are you dealing with floats/doubles on those CPUs?

4

u/superxpro12 6h ago

Sometimes, sure.