Idea · Aug 19, 2026

Build Your Own Database Engine

A structured multi-week assignment where students implement a minimal relational database from scratch: a B-tree storage engine, a SQL parser for a core subset of SQL, and a naive query optimizer. Students finish with a working database they can query from Python.

What it would do

Database textbooks describe B-trees, query planning, and the storage layer abstractly, but students rarely implement them. This assignment scaffolds the work into four weekly milestones: (1) a page-based file storage layer with a B-tree index, (2) a tokenizer and recursive-descent parser for SELECT, INSERT, UPDATE, and DELETE, (3) a table scan + index scan executor, and (4) a simple cost-based query optimizer that chooses between full-table scans and index lookups. Students test each layer with automated unit tests and a final integration test suite that runs real SQL queries. The project is language-agnostic but Python with no external DB libraries is recommended. Students come away having internalized how data actually reaches disk and why indexes matter, rather than treating the database as a black box.

Key features

  • Page-based file storage layer with B-tree index implementation
  • Recursive-descent SQL parser for SELECT, INSERT, UPDATE, DELETE
  • Table scan and index scan query executor
  • Naive cost-based query optimizer
  • Automated unit + integration test harness students must pass

More in Systems & Hardware

Consensus Game

A real-time multiplayer browser game where players are nodes in a distributed network trying to reach consensus while an adversary player injects faults, built by students as a capstone for a distributed systems unit.

Systems & HardwareClass assignmentLargeAug 24, 2026

Mini-Compiler Workbench

A multi-week course project in which students implement a complete compiler pipeline from scratch: lexer, recursive-descent parser, AST, type checker, and a bytecode virtual machine, culminating in a working language that compiles and runs a reference program.

Systems & HardwareClass assignmentLargeAug 23, 2026

Packet Story

A browser extension that captures every HTTP request your tab makes and generates a readable detective-story narration of what your browser fetched, why, and what it reveals about real-world web architecture. Perfect for networking and web-dev courses.

Systems & HardwareTeaching toolMediumAug 9, 2026

JS Event Loop Visualizer

An interactive browser tool where you paste JavaScript code and watch the call stack, Web APIs register, microtask queue, and callback queue animate step by step as the event loop advances — purpose-built for students learning async JS for the first time and covering Promise and async/await semantics that older visualizers miss.

Systems & HardwareTeaching toolMediumAug 8, 2026

All 39 ideas in Systems & Hardware →