AWESOME-OS ENGINEERING BLOG

02 — Evolving Beyond Legacy `lo`: Composable V8 Snapshots, CDP, and Self-Maintaining CI

02 — Evolving Beyond Legacy lo: Composable V8 Snapshots, CDP, and Self-Maintaining CI

2026-11-19 · Awesome-OS Development History

Every ambitious operating system carries fossils from its earliest prototypes. For Awesome-OS, our V8 integration originally grew out of lo — a fast, direct C++ V8 embedder that proved JS/TS could run close to the metal, but still tied V8 to monolithic C++ glue and 100,000-line v8.h template headers.

Today, V8 is no longer a special-case monolith in Awesome-OS. It is just another clean, composable Section.


1. B8gAbiV8Section: Normal C Components + Real Multithreading & Forking

In sections/b8g-abi-v8/, we replaced legacy embedder coupling with a tiny zero-v8.h C header (b8g_abi_v8_section.h) extending b8g_abi.h v2:


2. CDP + Self-Advancing Snapshot REPL (b8g-abi-v8-cdp-repl)

We also integrated two capabilities directly alongside B8gAbiV8Section in cdp-repl.mts:

Instead of writing fragile bundler pipelines for every custom runtime, you simply compose snapshots — the same way OCI composes filesystem layers, except at the V8 heap level.


3. Unified Distributed Builds & Self-Maintaining V8 CI

With C++ (b8g-cxx), Rust (b8g-rust), and Zig (b8g-zig) all aligned onto the exact same .b8p CAS pack format and UniversalBuildIntersection, even a full V8 or Chromium build (C++ + Rust + generated code) reduces to one distributed wave step.

To keep the repository clean and self-maintaining as we scale, we locked down a 4-Phase Refactoring & Autonomous V8 CI Plan (docs/REPO-REFACTORING-AND-V8-CI-PLAN.md):


This is the architecture of an OS that builds, inspects, previews, and upgrades itself.

← Back to all 27 engineering posts