Generic-Programming

Browse posts by tag

Watch: Algorithms Arise from Algebraic Structure

Watch: Algorithms Arise from Algebraic Structure

The Stepanov series is now a nine-episode animated playlist: declare the algebraic structure, and the algorithms come for free. From the monoid to lattices, in teacher and student dialogue.

Elements of Programming

Notes

Rigorous foundations of generic programming. Connects algebra and algorithms. Stepanov’s magnum opus.

Choosing the Algebra

Choosing the Algebra

The Stepanov series showed that algorithms arise from algebraic structure. This post is about the flip side: sometimes you choose a different structure to make the algorithm trivial.

Computer Science Mathematics
How Iterators Give You N+M Instead of NxM

How Iterators Give You N+M Instead of NxM

Iterators reduce the NxM algorithm-container problem to N+M by interposing an abstraction layer, following Stepanov's generic programming approach.