Why not rewrite everything at once?
Chromium is one of the largest C++ codebases on Earth. A clean-slate rewrite would take years and stall on web compatibility. Our approach treats the existing tree as the source of truth while we carve out modules that can move to Zig or Rust without destabilizing the engine.
Where Rust already wins
Brave's adblock-rust proves the model: native performance, strong typing, and a small FFI boundary into the browser. We extend that pattern to other subsystems with similar isolation.
Where Zig fits
Zig offers explicit allocators, comptime, and first-class C interop — useful for
new modules and selected rewrites where we want C ABI compatibility without C++
baggage. Experiments live under brave_rewrite/ in the main repository.