hackertube.io

Stephan T. Lavavej “Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss”

CppCon · talk · Watch on YouTube

What it is

Stephan T. Lavavej's CppCon 2019 talk on implementing floating-point to_chars and from_chars in Microsoft's C++ STL. It covers the history of float-string conversion and the algorithms that make it much faster.

Why Hacker News recommends it

HN calls it a surprisingly fun, approachable talk on a hard problem and cites it in floating-point threads.

  • 3 people recommended it
  • 3 different months
  • 1 strong recommendations
  • first 2020, last 2022

What HN commenters said

  1. “I really love this talk in particular”

    Favorite talk, on charconv

    Forricide, 2022-09 · Strong recommendation · in “C++20, How Hard Could It Be”

  2. “Stephan Lavavej gave a talk about this very subject during CppCon 2019”

    More on how charconv performance was achieved

    osolo, 2020-09 · Recommendation · in “Parsing floats in C++: benchmarking strtod vs. from_chars”

  3. “Stephan T Lavavej also had a surprisingly fun and approachable talk on that problem”

    Fun, approachable talk on charconv implementation in Microsoft's STL

    ygra, 2020-10 · Recommendation · in “Rendering floating numbers: advances in problems you didn’t know you had (2011)”

Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.

Topics: c++17, charconv, floating point, ryu, microsoft stl, performance

Also recommended by the same people