TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25748 6
Żmij 1.2 "the proof is in the printf" released with full to_chars implementation, formal verification, improved performance and more

[Żmij](https://github.com/vitaut/zmij) 1.2 is out. It started as a shortest round-trip `double`\-to-string converter; this release makes it a full formatter.

* Scientific, fixed, general and hex notation with a caller-specified precision, matching `printf`'s `%e`, `%f`, `%g` and `%a`.
* `long double`, covering both x87 80-bit extended and IEEE binary128.
* Full FP `std::to_chars` implementation that works in C++14 and is [several times faster and smaller](https://vitaut.net/posts/2026/complete-to-chars/) than typical standard library implementations.
* The main algorithms are now proved correct in Lean 4.
* `float` conversion is about 23% faster than 1.1, `double` is 1-4% faster.
* Initial `constexpr` support.

Release notes: [https://github.com/vitaut/zmij/releases/tag/v1.2](https://github.com/vitaut/zmij/releases/tag/v1.2)

https://redd.it/1wna0z2
@r_cpp
GitHub GitHub - vitaut/zmij: A fast floating-point-to-string conversion library for C and C++ A fast floating-point-to-string conversion library for C and C++ - vitaut/zmij
More from @r_cpp
  1. Oct 4, 2026Magic statics vs. std::call_once https://devblogs.microsoft.com/oldnewthing/20260916-00/?p…
  2. Oct 4, 2026At cppcon WG21 had a whiteboard asking attendees what they would like to have in C++29 som…
  3. Oct 4, 2026Printing UTF-8 strings since C++23 C++23 provides significant better support to print UTF-…
  4. Oct 4, 2026Stateful compile-time functions In section 9.1.2 of this book[1] it mentions that C++23 al…
  5. Oct 4, 2026fastgltf: modern C++17 glTF 2.0 library focused on speed https://github.com/spnda/fastgltf…
  6. Oct 4, 2026Shipping Complex Qt Applications in the Browser with emscripten-forge https://emscripten-f…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →