Menu

cwbrowser — a browser engine written from scratch in Zig
📰

cwbrowser — a browser engine written from scratch in Zig

Hacker News·4 months ago
#syzMKx22
#code#engine#browser#scratch#layout
Reading 0:00
15s threshold

A web browser with a rendering engine written completely from scratch in Zig , paired with Google’s V8 for JavaScript. Two years of solo work — extremely lightweight, and about 2× faster than Chrome in early testing.

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.

100 / 100

Acid3 conformance

test — a perfect

score

~2×

faster than Google

Chrome in early

benchmarking

From scratch

parser, CSS, layout,

paint — all

hand-written in Zig

2 years

of solo engineering

on the rendering

engine

Acid3 100/100 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.

⤓ Download — coming soon

macOS · Apple Silicon

A public build is…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.