A Self-Written C++ Standard Library: Simplicity vs. Completeness

2025-06-02
A Self-Written C++ Standard Library: Simplicity vs. Completeness

The author wrote a simplified C++ standard library for fun and shared it on Hacker News and Reddit. The post sparked a discussion, not about the library's completeness, but its naming and design philosophy. The author intentionally simplified the library's design, requiring all types to be 'well-behaved', thus avoiding complex exception handling. This significantly reduces the library's complexity but also limits its applicability. The post also explores the implementation of string splitting and iterators, comparing the differences between Python and C++. Ultimately, the author completed functionality for strings, regular expressions, and basic containers with impressively fast compilation times.

Development