“A modern formatting library for C++”
summary
A modern C++ formatting library (fmt) implements a Python-like brace syntax and a std proposal P0645R0, uses variadic templates plus a compact type-erasure arg store and a buffer abstraction with a single virtual grow, and exposes format/format_to APIs and a formatter<T> parse/format extension model. Benchmarks show 6x compile-time improvement and order-of-magnitude smaller binaries versus Folly-style templates, runtime costs are within 10% of printf (faster than iostreams), floating-point still falls back to sprintf but plans include Grisu/double-conversion replacements.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:31Problems with printf
- 10:55Extensibility issues
- 12:25iostreams limitations
- 21:40Existing formatting libraries
- 25:20Proposed modern solution
- 38:36Implementation details
- 43:11Benchmarking results
- 53:08Library history and adoption
- 55:20Q&A session
related talks
33mC++20 String Formatting Library: An Overview and Use with Custom Types
50mPlenary: C++ MythBusters
59mRange-Based Text Formatting - For a Future Range-Based Standard Library
58mThe Surprising Complexity of Formatting Ranges in Cpp
55mFormatting floating-point numbers
01h 21mC++ MythBusters
58mNot getting lost in translations
59mModern C++ for Fun and Profit: This isn’t your old C++
