Home

Programming (General)

AI

Data Structure and Algorithm

Compiler

Distributed System

Code Base

Redis
The source code is available on Github and is remarkably clean and easy to follow. Redis showcases a variety of interesting data structures and demonstrates numerous advanced system programming techniques—sometimes referred to as the "dark arts" of systems programming.
SQLite
Exceptionally well-documented, SQLite provides detailed explanations of its stable file format, function APIs, and techniques for handling atomic commits. It is a highly reliable system that has proven its robustness over decades and remains a solid choice for developers. The book Using SQLite also offers valuable insights from the user's perspective, making it an excellent companion for understanding and working with the database.
Ninja Build

The Ninja build system highlights the importance of design over implementation. Its minimalist architecture and emphasis on speed make it exceptionally performant, with an impressively small codebase. The project is also noteworthy from a historical perspective: it predates C++11 and relies heavily on C-style constructs rather than modern C++ features. This avoids unnecessary templates and newer abstractions, significantly improving readability.

I also appreciate its three-layer code structure:

  1. Component composition layer
  2. Simple abstractions over components
  3. Concrete implementation layer
This layering makes the codebase straightforward to navigate and reason about.