Show HN:我开发了一款新浏览器,历时两年,今天通过了 Acid 3 测试
Show HN: I worked on a new browser for 2 years, today it passed Acid 3

原始链接: https://code.intellios.ai/cwbrowser/

**cwbrowser** 是一款全新的高性能网页浏览器,其渲染引擎完全使用 Zig 语言编写。与依赖 Blink、WebKit 或 Gecko 等陈旧且庞大的主流浏览器引擎不同,cwbrowser 从零开始实现了自己的 HTML 解析器、CSS 引擎以及布局和渲染管线。 为了在确保现代网页兼容性的同时,避免耗费十年时间去构建一个新的 JavaScript 虚拟机,该项目集成了 Google 的 V8 引擎,并保持了轻量化和模块化的架构。作为一个独立项目,它旨在做到易于理解、内存高效且速度极快;在 Acid3 标准测试中取得 100/100 的满分成绩,充分证明了其可行性。 初步基准测试显示,在相同硬件条件下,cwbrowser 的运行速度约为 Google Chrome 的两倍。通过利用 Zig(一种无需垃圾回收且没有隐藏运行时的现代系统级语言)的高效性,cwbrowser 证明了浏览器可以被重构得比当今的行业标准更加精简和快速。面向 Apple Silicon 的公开预览版预计即将推出。

一位开发者最近在 Hacker News 上分享了他历时两年开发的新浏览器引擎(intellios.ai),声称其 Acid3 测试得分达到 100%。尽管一些用户对这一独立开发成果表示赞赏,但该公告在社区中引发了强烈的质疑。 批评者指出,Acid3 已过时,相较于全面的“Web 平台测试”(Web Platform Tests),它不足以衡量现代网络标准。此外,许多评论者对该项目的真实性表示怀疑,理由包括缺乏公开源码、依赖 AI 生成的登录页面,以及通过 Google Drive 而非标准代码仓库分发软件。讨论焦点转向了从零开发渲染引擎的难度,以及该项目究竟是一项严肃的工程成就,还是像近期其他类似项目一样属于“AI 垃圾内容”。尽管存在质疑,一些用户仍对开发独立浏览器引擎的可能性表现出兴趣,并要求项目方就许可协议、目标和技术基准做出说明。
相关文章

原文

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
cwbrowser running the Acid3 test at acid3.acidtests.org and showing a perfect 100/100 score, with the coloured animation rectangles rendered correctly and a status bar reading 'Loaded http://acid3.acidtests.org/ — 2265 ms, 481 px'
cwbrowser on acid3.acidtests.org — a clean 100/100, rendered by its own engine. Note the status bar: full page loaded and laid out in 2265 ms.

What it is

cwbrowser is a desktop web browser built on a rendering engine I wrote from nothing over the last two years. Where Chrome ships Blink, Safari ships WebKit, and Firefox ships Gecko, cwbrowser ships an engine of its own: the tokenizer, DOM, CSS parser and cascade, the box-model layout pass, and the painting stage are all original code in Zig — a small, fast, memory-careful systems language.

The one piece it doesn’t reinvent is the JavaScript engine. Re-implementing a modern, JIT-compiling JS VM is a decade-scale project, so cwbrowser embeds Google’s V8 — the same engine inside Chrome and Node — and wires it to the from-scratch DOM. You get a real, standards-following browser where the parts that decide how the web looks are entirely hand-built.

How it’s built

LanguageZig for the whole rendering engine — manual memory management, no garbage collector, no hidden runtime.

HTML & DOMA from-scratch tokenizer and tree builder producing a live DOM the engine and V8 both operate on.

CSSOriginal parser and cascade — selectors, specificity, inheritance, the box model — feeding the layout pass.

Layout & paintHand-written block/inline layout and a paint pipeline that renders pixel-for-pixel to match the Acid3 reference.

JavaScriptGoogle’s V8, embedded and bound to the DOM — the same VM that powers Chrome and Node.

PerformanceRoughly 2× Chrome on the same machine in early tests; the whole engine is lightweight by design.

Why build a browser from scratch?

The modern web runs on three rendering engines, all enormous, and all descended from code written more than twenty years ago. cwbrowser is a bet that a browser engine can be rebuilt today — smaller, faster, and understandable by one person — using a modern systems language and only borrowing the one component (the JS VM) that genuinely isn’t worth reinventing. Passing Acid3 at 100/100 is the first proof the approach holds up against real standards.

Download

A public preview build for macOS on Apple Silicon is on the way. It isn’t posted here yet — when it is, this is where it’ll live.

⤓  Download — coming soon
联系我们 contact @ memedata.com