milo

09 — Engineering Patterns & Best Practices

Milo is written in freestanding C++20 for AArch64 (-ffreestanding -fno-exceptions -fno-rtti) with a host-testable core (HOST_TEST). Rather than relying on ad-hoc C idioms or runtime-heavy abstractions, the codebase enforces a small set of deterministic systems-engineering patterns across kernel/, include/ddk/, drivers/, and tests/host/.


1. Freestanding C++20 Without Exceptions, RTTI, or atexit

How Milo Uses It

Why & References


2. RAII & Rule of Five for Deterministic Resource Ownership

How Milo Uses It

Why & References


3. Hardware Isolation, HAL, and Compiler-Enforced DDK Boundaries

How Milo Uses It

Why & References


4. Dual-Target Testing & Zero-Leak Memory Invariants

How Milo Uses It

Why & References


5. Observability: Structured Forensic Logging Decoupled from Console UX

How Milo Uses It

Why & References


6. Automated Quality Gates & Repository Hygiene

How Milo Uses It

Why & References