THE WHITE DRAGON BOOK · POST-NEUMANN PRINCIPLES

White Dragon Book — Article 5: Step-Wise ABI Evolution — Ending the Flag-Day Upgrade

White Dragon Book — Article 5: Step-Wise ABI Evolution — Ending the Flag-Day Upgrade

Series: Awesome-OS White Dragon Book — Engineering Essays on Sovereign Computing
Artifacts: sections/chromium-build/b8g_chromium_abi_table.h · sections/chromium-build/abi-v3-upgrade/

1. The Law of Monolithic Fragility

In classical Von Neumann C++ engineering, binary interfaces evolve by breaking and rebuilding the world. Because C++ couples class layout, inline headers, allocator identity, and virtual dispatch tables at compile time, introducing a new capability into a shared engine (like Chromium or V8) forces every downstream consumer to recompile in lockstep.

That lockstep constraint is the true root cause of:


2. Prefix-Compatible C11 Tables + Capability Negotiation

B8G-ABI v3 replaces lockstep rebuilds with monotonic, prefix-compatible step-wise evolution:

typedef struct B8gChromiumAbiTableV3 {
  B8gChromiumAbiTable v2; /* _Static_assert(offsetof == 0) */
  uint32_t struct_size;
  uint32_t capability_flags;
  const B8gOriginArenaDispatchTable* origin_arena;
  const B8gCloudSyncV3DispatchTable* cloud_sync;
  const B8gLibNodeDispatchTable* libnode;
  const B8gAbiUpgradeDispatchTable* upgrade;
} B8gChromiumAbiTableV3;

Bidirectional Compatibility Matrix

Host Version Loaded Module Version Runtime Behavior
v2 v2 Native v2 dispatch (0 overhead).
v2 v3 Reads exact offset-0 v2 prefix; ignores appended v3 tail safely.
v3 v2 b8g_abi_is_v3() returns 0; host stays in v2 compatibility mode (0 crashes).
v3 v3 Negotiates 0x00030000u, checks struct_size + capability_flags, and enables step-wise hot_swap_subsystem() in RAM.

3. Why This Turns Incremental Builds Into a Permanent Moat

Once every subsystem boundary obeys offset-0 prefix compatibility + struct_size + capability_flags:

„Nunquam ante, numquam iterum.“ — Break headers once by deleting them; never break binary callers again.

← Back to White Dragon Book index