Stephan T. Lavavej “Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss”
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
“I really love this talk in particular”
Favorite talk, on charconv
Forricide, 2022-09 · Strong recommendation · in “C++20, How Hard Could It Be”
“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”
“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
talkCppCon 2015: Andrei Alexandrescu “std::allocator...”CppCon · 7 HN recommenders · 2017–2025
talkLexical Scanning in Go - Rob PikeGoogleFOSSSydney · 13 HN recommenders · 2012–2025
talkCppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step”CppCon · 9 HN recommenders · 2018–2026
talkRustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine WestRust Programming Language · 9 HN recommenders · 2018–2023
talkCppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”CppCon · 13 HN recommenders · 2016–2024
talkIdeas about a new programming language for games.Jonathan Blow · 7 HN recommenders · 2014–2025
talkCppCon 2014: Mike Acton "Data-Oriented Design and C++"CppCon · 9 HN recommenders · 2015–2026
talkHow I program CEskil Steenberg · 8 HN recommenders · 2017–2025