Introduction
Welcome to the RuchyRuchy Bootstrap Compiler project! This book documents the Test-Driven Development journey of building a self-hosting bootstrap compiler for the Ruchy programming language.
Project Goals
- Pure Ruchy Dogfooding: Build the compiler using only Ruchy tools and Ruchy code
- Extreme TDD: Every feature developed with RED-GREEN-REFACTOR cycle
- Zero Tolerance Quality: A+ lint grades, 80%+ coverage, zero SATD
- Boundary Discovery: Find and document exact limits of Ruchy runtime
- Educational Excellence: Comprehensive documentation of compiler construction
Why This Book?
This book serves as:
- Living Documentation: Real-time record of development decisions
- TDD Tutorial: Example of extreme test-driven development
- Compiler Guide: Educational resource for compiler construction
- Boundary Reference: Discovered Ruchy language capabilities and limitations
Development Approach
Every ticket follows the TDD cycle:
- RED: Write a failing test first
- GREEN: Write minimal code to make test pass
- REFACTOR: Improve code while keeping tests green
Current Status
- Ruchy Version: v3.94.0
- Project Phase: Sprint 3 - Bootstrap Stage 0 (Lexer)
- Tests Passing: 100% on completed components
- Quality Grade: A+ via
ruchy lint
How to Use This Book
- Each chapter corresponds to a ticket in
roadmap.yaml - Chapters document RED-GREEN-REFACTOR phases
- Discoveries section tracks runtime boundary findings
- All code examples are executable Ruchy
Quick Links
Let's build a compiler using TDD!