HeadlinesBriefing favicon HeadlinesBriefing.com

New Zig-Based Browser Passes Acid3 Test

Hacker News •
×

I worked on a new browser for 2 years, today it passed Acid3. A web browser with a rendering engine written completely from scratch in Zig, paired with Google’s V8 for JavaScript. No Chromium, no WebKit, no Gecko. The HTML parser, CSS cascade, layout engine, and paint pipeline are all hand-written in Zig; only the JavaScript virtual machine is borrowed from Google’s V8.

The result is a browser small enough to reason about end to end, and fast enough to beat the mainstream engines on the same hardware. In early testing, it was roughly 2× faster than Chrome. As of today, cwbrowser passes the Acid3 test with a perfect 100/100 — the same conformance bar the mainstream engines cleared, met by a from-scratch engine.

cwbrowser is a desktop web browser built on a rendering engine I wrote from nothing. Where Chrome ships Blink, Safari ships WebKit, and Firefox ships Gecko, cwbrowser ships an engine of its own. A public build for macOS on Apple Silicon is being prepared.