jk-jeon/dragonbox
View on GitHub ↗ ★ 822 C++
Reference implementation of Dragonbox in C++
7 mentions on Hacker News by 7 people: 1 story, 6 comments · first 2022-07-12 · latest 2025-08-04
20082026
-
…of serializing floating-point numbers has improved, even just in the past decade [1]. [1] https://github.com/jk-jeon/dragonbox?tab=readme-ov-file#perf...
comment by jonas21 · 2025-08-04 · in How we made JSON.stringify more than twice as fast -
AFAIK the state of the art now is "dragonbox": https://github.com/jk-jeon/dragonbox
comment by badmintonbaseba · 2024-10-14 · in C++ String Conversion: Exploring std:from_chars in C++17 to C++26 -
…and microcontroller-class algorithm more than anything I’d want to use on a modern machine. [1] https://github.com/jk-jeon/dragonbox/blob/master/README.md#p...
comment by mananaysiempre · 2024-09-02 · in Honey, I shrunk {fmt}: bringing binary size to 14k and ditching the C++ runtime -
https://github.com/jk-jeon/dragonbox/discussions/57#discussi... We have been doing some experiment on optimizing for size, and currently it can be reduced to ~3k on 8-bit AVR. It only contains impl/table for single-precision binary32, and…
comment by jk-jeon · 2024-09-01 · in Honey, I shrunk {fmt}: bringing binary size to 14k and ditching the C++ runtime -
…dragonbox [1] project is also worth a read. Pretty optimized for the least used branches. [1] https://github.com/jk-jeon/dragonbox
comment by h4ck_th3_pl4n3t · 2024-09-01 · in Honey, I shrunk {fmt}: bringing binary size to 14k and ditching the C++ runtime -
…floats exactly is https://github.com/ulfjack/ryu , though I'm unaware what's the state-of-the-art ( https://github.com/jk-jeon/dragonbox claims to be a benchmark and the best algorithm).
comment by nyanpasu64 · 2022-08-03 · in I still love PHP and JavaScript