Get the latest tech news

Writing your own C++ standard library from scratch


The C++ standard library (also know as the STL) is, without a doubt, an astounding piece of work. Its scope, performance and incredible back...

The biggest one being the absolutely abysmal compile times but unreadability, and certain unoptimalities caused by strict backwards compatibility are also at the top of the list. Converting this code to use the STL is fairly simple and only requires changing some types and fine tuning the API. Pystd has been designed to both support perfect ABI stability and make it possible to change it in arbitrary ways in the future.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Scratch

Scratch

Photo of C++

C++

Photo of Standard Library

Standard Library

Related news:

News photo

Build a Container Image from Scratch

News photo

Writing an LLM from scratch, part 10 – dropout

News photo

A Guide to Undefined Behavior in C and C++ (2010)