C++ String Conversion: Exploring std:from_chars in C++17 to C++26

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. ryu

    Converts floating point numbers to decimal strings (by ulfjack)

    I believe the impl you link to is not fully standards compliant, so just calls back to

    MSFT's one is totally standards compliant and it is a very different beast: https://github.com/microsoft/STL/blob/main/stl/inc/charconv

    Apart from various nuts and bolts optimizations (eg not using locales, better cache friendless, etc...) it also uses a novel algorithm which is an order of magnitude quicker for many floating points tasks (https://github.com/ulfjack/ryu).

    If you actually want to learn about this, then watch the video I linked earlier.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. fast_int

    Header-only C++11 implementation of the C++17 `from_chars` functions for integer types

    I wrote this library once; https://github.com/ton/fast_int.

    Removed `std::atoi` from the benchmarks since it was performing so poorly; not a contender. Should be easy to verify.

  4. STL

    MSVC's implementation of the C++ Standard Library.

    I believe the impl you link to is not fully standards compliant, so just calls back to

    MSFT's one is totally standards compliant and it is a very different beast: https://github.com/microsoft/STL/blob/main/stl/inc/charconv

    Apart from various nuts and bolts optimizations (eg not using locales, better cache friendless, etc...) it also uses a novel algorithm which is an order of magnitude quicker for many floating points tasks (https://github.com/ulfjack/ryu).

    If you actually want to learn about this, then watch the video I linked earlier.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Writing your own C++ standard library from scratch

    8 projects | news.ycombinator.com | 25 Mar 2025
  • The case of the critical section that let multiple threads enter a block of code

    1 project | news.ycombinator.com | 24 Mar 2025
  • China Is Rapidly Becoming a Leading Innovator in Advanced Industries

    2 projects | news.ycombinator.com | 16 Sep 2024
  • Rust Atomics and Locks by Mara Bos

    2 projects | news.ycombinator.com | 13 Aug 2024
  • DARPA: Translating All C to Rust (Tractor)

    5 projects | news.ycombinator.com | 30 Jul 2024