THE WHITE DRAGON BOOK · POST-NEUMANN PRINCIPLES

The 11.8 KB Binary Strangler Fig: Replacing a 166 MB Monolith Without Forking It

The 11.8 KB Binary Strangler Fig

Replacing a 166 MB Monolith Without Forking It

Milestone: Track 29 & Track 30 (sections/chromium-build/chrome-facade/b8g_chrome_facade.cc, pushed live to awesome-os/chromium.googlesource.com @ layer/chrome-facade).
Motto: „Nunquam ante, numquam iterum“

1. The Architectural Breakthrough

For two decades, every organization that wanted to customize Chromium — Brave, Electron, NW.js, Carbonyl, Vivaldi, Edge, Opera, Arc — paid the exact same brutal tax:

The Strangler-Fig Binary Facade breaks that cycle permanently.

Out of the entire 166.41 MB of compiled chrome.dll, chrome.exe literally only calls ONE exported C function:

// Windows x64
int __cdecl ChromeMain(HINSTANCE instance, void* sandbox_info, int64_t exe_entry_point_ticks);

// Linux x86_64 ELF
int ChromeMain(int argc, const char** argv);

Nothing else crosses the executable boundary.


2. How the Binary Facade Works

By placing a zero-header, zero-STL b8g_chrome_facade (149 KB Win64 DLL / 11.8 KB Linux x86_64 ELF .so) in front of chrome_real.dll / libchrome_real.so:


3. Single-Machine Cross-Compilation (Zero WSL, Zero Docker)

Because the facade and every B8G-ABI module depend strictly on <stddef.h> + <stdint.h> (no C++ STL across boundaries, no bloated sysroots), Zig 0.14.1 cross-compiles native Linux x86_64-linux-gnu ELF64 .so binaries directly on Windows 11 in under a second:

Target Compiler Binary Size Verified Proof
Windows x64 .\bin\clang++ b8g_chrome_facade.dll 149 KB `[PASS] intercepted ChromeMain in 1996 us \ cloud_sync=1 (oss) \ libnode=1 \ real_chrome=1 \ forwarded_rc=0xBEA`
Linux x86_64 ELF .\bin\zig c++ -target x86_64-linux-gnu libb8g_chrome_facade.so 11.8 KB is_elf=True (0x7F 'E' 'L' 'F'), packaged in b8g-chrome-abi-linux-x64.tar.gz

4. Why This Matters Beyond Chromium

This pattern is universal. Every legacy software monolith on Earth (chrome.dll, libobs.dll, msedgewebview2.exe, node.exe, System.Management.Automation.dll) enters through a tiny, frozen C entry point.

You do not need a 500-engineer team to replace a monolith. You wrap its entry point in an 11.8 KB zero-header cross-compiled facade, project clean B8G-ABI boundaries behind it, and strangle the monolith from the inside out — at the speed of intent.


Back to The White Dragon Book Index · The Sovereign Chrome Stack Architecture

← Back to White Dragon Book index