CppCast cover image

CppCast

Standard Library Hardening

Apr 11, 2025
Louis Dionne, code owner of libc++ at Apple and C++ standard committee member, discusses the adoption of the library hardening proposal set for C++26. He emphasizes the importance of enhancing safety and security in C++ through techniques that turn undefined behaviors into clear contract violations. The conversation also delves into innovations like a safe mode for memory safety, evolving hardening techniques, and the balancing act between performance and security. Dionne shares actionable insights for developers eager to adopt these practices today.
58:28

Episode guests

Podcast summary created with Snipd AI

Quick takeaways

  • The podcast emphasizes the importance of transitioning from .h to .hpp file extensions to enhance clarity and safety in C++.
  • Bjarne Stroustrup's message highlights the urgent need for the C++ community to prioritize standard library hardening for improved security.

Deep dives

C++ File Extensions and Header File Standards

The discussion centers around the conventional use of file extensions for C++ header files, specifically the push to transition from the traditional .h extension to alternatives like .hpp. The argument highlights how .h is primarily associated with C headers, which can confuse the differentiation between C and C++. Proponents of the change argue that adopting distinct extensions would enhance clarity for developers and tools by explicitly indicating that a file is meant for C++. This initiative reflects broader community discussions about safety and security in C++, as distinguishing file types is seen as a step towards reducing misconceptions merging both languages.

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner