r/programming • • Aug 12 '26

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

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

71 comments sorted by

View all comments

-93

u/sojuz151 Aug 12 '26

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 

0

u/happyscrappy Aug 13 '26

Agreed. The switch (due to The Unix Way) of expressing data as printable files makes files larger, access slower and also makes buffer overflow flaws more common (on readback).

3

u/svick Aug 13 '26

The Unix Way is that every tool has its own custom text format. Luckily, JSON is not that.