Zig 项目反对 AI 贡献的理由
The Zig project's rationale for their anti-AI contribution policy

原始链接: https://simonwillison.net/2026/Apr/30/zig-anti-ai/

Zig编程语言对由大型语言模型(LLM)生成的贡献有明确的禁止政策,即使是看似有益的改进也不例外。这源于一种核心理念,即重视*贡献者*而非*贡献本身*。 Zig的维护者认为,开源项目的成功依赖于培养新的、值得信赖的开发者。审查LLM生成的代码并不能促进这种成长;它是一种一次性的好处,而无法建立长期的社区投入。他们称之为“贡献者扑克”——押注于人,而不仅仅是代码。 有趣的是,Bun,一个由Anthropic(一家人工智能公司)收购的著名基于Zig的运行时,*确实*利用LLM进行开发,并通过LLM辅助代码获得了性能提升。然而,由于LLM的禁用,Bun不会将这些改进贡献回Zig主项目,这凸显了Zig在维护其社区驱动的开发模式方面的坚定立场。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Zig 项目反对 AI 贡献政策的理由 (simonwillison.net) 22 分,lumpa 1 小时前 | 隐藏 | 过去 | 收藏 | 1 条评论 帮助 jwzxgo 1 小时前 | 上一个 [–] 我和 https://deerflow.tech/ 的开发者聊过,他们几乎有相同的计划,除非来自已知且受信任的开发者。回复 考虑申请 YC 2026 年夏季项目!申请截止至 5 月 4 日 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Zig has one of the most stringent anti-LLM policies of any major open source project:

No LLMs for issues.

No LLMs for pull requests.

No LLMs for comments on the bug tracker, including translation. English is encouraged, but not required. You are welcome to post in your native language and rely on others to have their own translation tools of choice to interpret your words.

The most prominent project written in Zig may be the Bun JavaScript runtime, which was acquired by Anthropic in December 2025 and, unsurprisingly, makes heavy use of AI assistance.

Bun operates its own fork of Zig, and recently achieved a 4x performance improvement on Bun compile after adding "parallel semantic analysis and multiple codegen units to the llvm backend". Here's that code. But @bunjavascript says:

We do not currently plan to upstream this, as Zig has a strict ban on LLM-authored contributions.

In Contributor Poker and Zig's AI Ban (via Lobste.rs) Zig Software Foundation VP of Community Loris Cro explains the rationale for this strict ban. It's the best articulation I've seen yet for a blanket ban on LLM-assisted contributions:

In successful open source projects you eventually reach a point where you start getting more PRs than what you’re capable of processing. Given what I mentioned so far, it would make sense to stop accepting imperfect PRs in order to maximize ROI from your work, but that’s not what we do in the Zig project. Instead, we try our best to help new contributors to get their work in, even if they need some help getting there. We don’t do this just because it’s the “right” thing to do, but also because it’s the smart thing to do.

Zig values contributors over their contributions. Each contributor represents an investment by the Zig core team - the primary goal of reviewing and accepting PRs isn't to land new code, it's to help grow new contributors who can become trusted and prolific over time.

LLM assistance breaks that completely. It doesn't matter if the LLM helps you submit a perfect PR to Zig - the time the Zig team spends reviewing your work does nothing to help them add new, confident, trustworthy contributors to their overall project.

Loris explains the name here:

The reason I call it “contributor poker” is because, just like people say about the actual card game, “you play the person, not the cards”. In contributor poker, you bet on the contributor, not on the contents of their first PR.

This makes a lot of sense to me. It relates to an idea I've seen circulating elsewhere: if a PR was mostly written by an LLM, why should a project maintainer spend time reviewing and discussing that PR as opposed to firing up their own LLM to solve the same problem?

联系我们 contact @ memedata.com