Implement the C++ Standard Library: Design, Optimisations, Testing while Implementing Libc++ @CppCon
Implement the C++ Standard Library: Design, Optimisations, Testing while Implementing Libc++  @CppCon
Uploaded November 2025 | Updated September 2026, 2 weeks ago
cppcon.org
---

Implement the C++ Standard Library: Design, Optimisations and Testing while Implementing Libc++ - Hui Xie - CppCon 2025
---

This presentation covers various practical examples in the designs, optimisations and testing in libc++, a standard library implementation.

In space optimisation section, it presents various examples of using compact type, reusing tail padding bytes, reusing unused bits in existing bytes, in various standard types: std::stop_token , std::expected , std::optional , std::variant , std::ranges library and std::move_only_function .

In time optimisations section, it presents examples of how we optimise std::atomic<T>::wait 's waiting strategy, how we optimised algorithms for segmented iterators, and also how we keep in mind optimisations by leaving the door open for future optimisations. At the same time, compilation time is also important so it also contains examples how unnecessary template instantiations can be avoided.

Finally, this talk covers the unit tests of libc++, including the high test coverage of standard spec, the technique we share tests between runtime and constexpr, negative testing and so on.

---

Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Implement_Standard_Library.pdf

Video Sponsored by Susquehanna - youtube.com/@LifeatSusquehanna
Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Hui Xie

Hui Xie is a C++ software developer at Qube Research and Technologies in the finance industry. He is a member of the standard committee WG21 and the UK national body BSI. He usually contributes to the ranges study group SG9. He is also an active contributor to libc++, the clang's standard library implementation.
---

CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---

#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
Implement the C++ Standard Library: Design, Optimisations, Testing while Implementing Libc++Lightning Talk: Rust Programming in 5 Minutes - Tyler Weaver - CppCon 2024Lightning Talk: Do You Love or Hate Your C++ Build System? - Helen Altshuler - CppCon 2024Back to Basics: How to Refactor C++ Code - Amir KirshLightning Talk: DevSecOps for C++? Keep Calm and use Conan - Luis Caro Campos - CppCon 2024Lightning Talk: What LLMs Wont Ever be Able to Do - Ben Deane - CppCon 2024Unsatisfied with the C++ Standard Library? Join The Beman Project! - River WuAdventures with C++ Legacy Codebases: Tales of Incremental Improvement - Roth Michaels - CppCon 2024Your Future in C++ Starts at CppCon - 12th - 18th Sept 2026Master Linux Debugging: Essential GDB & System ToolsUsing Floating-point in C++: What Works, What Breaks, and Why - Egor Suvorov - CppCon 2025Back to Basics: How To Improve C++ Code Reviews - Chandranath Bhattacharyya & Kathleen Baker
CppCon |

Implement the C++ Standard Library: Design, Optimisations, Testing while Implementing Libc++

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER