仅11天,Claude重写百万行代码,AI史诗级工程却引来愤怒

marsbitОпубліковано о 2026-07-11Востаннє оновлено о 2026-07-11

Анотація

科技圈近日因编程语言Zig创始人Andrew Kelley公开抨击Bun创始人Jarred Sumner而震动。Bun是一个高性能JavaScript/TypeScript运行时,原用Zig编写,旨在取代Node.js。在被Anthropic收购后,Bun团队发现Zig版本存在大量内存安全Bug,且Zig社区对AI生成代码持零容忍态度,导致维护成本高昂。 今年5月,Jarred Sumner团队利用Anthropic未公开的Claude Fable 5模型,仅用11天就将Bun的百万行代码用Rust重写,耗资约16.5万美元API费用,时间和成本大幅降低。此举被Anthropic宣传为智能体工作流的标杆案例,但也引发争议。 Andrew Kelley在博客中猛烈批评Jarred Sumner的工程习惯,称其代码质量低下,依赖AI生成未经审查的代码,并对其管理能力表示失望。他认为Bun的原有Bug源于工程实践问题,而非Zig语言本身,甚至对Bun放弃Zig感到“松了口气”。 科技圈对此反应两极:有人认为Andrew维护工程质量,风格类似Linus Torvalds;也有人批评其公开攻击重要赞助者缺乏职业素养。技术层面,新代码库因机械翻译残留了2.7万行unsafe代码,引发对未来维护成本和长期稳定性的担忧。这一项目被视为AI重塑软件工程的激进实验,其最终成败仍需时间检验。

这几天,科技圈都在吃瓜:编程语言 Zig 的创始人 Andrew Kelley 怒了。

原因在于原来全面押注 Zig 语言的 Bun,被其创始人 Jarred Sumner 用 Rust 语言重写了。

Andrew Kelley 毫无遮拦地展示了自己的怒火,他没有在这个现象级技术事件中说客套话,直接将矛头对准了 Jarred Sumner 的个人工程习惯、管理能力,以及这起事件背后的商业逻辑。

Bun 是一个高性能 JavaScript/TypeScript 运行时,旨在成为 Node.js 的更快速、现代的直接替代品,近年来已经成为了前端世界挑战 Node.js 霸权的重量级选手。

Bun 的核心卖点是极速:无论是启动速度、依赖安装还是测试运行,都远超竞品,其部分原因在于它是用 Zig 语言编写的。

去年 12 月,Anthropic 宣布收购了 Bun,将其作为基础设施来驱动其 AI 编程工具 Claude Code 和 Claude Agent SDK。Jarred Sumner 和 Bun 团队的其他成员目前都在 Anthropic 工作。

在大规模应用,尤其是作为 Claude Code 的底层后,Bun 团队认为遇到了难以根除的稳定性问题。

具体来说,Zig 版本的 Bun 存在大量内存安全 bug——use-after-free、double-free、错误路径中忘记释放内存等。这些问题在 Zig 中只能靠编码规范约束,而在 Rust 中通过借用检查器和 Drop 机制会直接变成编译错误。

另一方面,Zig 上游社区对大语言模型(LLM)生成代码采取零容忍政策,即使是与 AI 无关的优化改动也无法合入上游。Bun 团队重度依赖 AI 辅助开发,继续使用 Zig 意味着必须长期维护自己的编译器分支,成本很高。

于是在今年 5 月,我们见证了科技圈的一场大工程:Bun 的创始人 Jarred Sumner 宣布,将 Bun 的百万行代码在 11 天内推倒重来用 Rust 重写了,他们使用的是 Anthropic 当时尚未公开发布的 Claude Fable 5(Mythos 级模型)和 Claude Code 的动态工作流能力。

这是一次史诗级的智能体工作流(Agentic Workflow)大测试,后来也被 Anthropic 作为 Dynamic Workflows 的标杆案例进行宣传,但也因为「背叛信仰」引来了争议。

Zig 创始人 Andrew Kelley 在最近的博客文章中指出,Bun 在改写前之所以 Bug 频出,根本原因是 Jarred Sumner 糟糕的工程习惯。

首先是 AI 还没有兴起的时候,Jarred 就一直在写垃圾代码。Kelley 表示,Zig 团队经常会检查用户的代码库,而他们对 Bun 的代码库感到「极其恐惧」。里面充满了黑客式的补丁摞补丁(hacks on top of hacks)、滥用断言,并且为了快速上线新功能,几乎从不花时间消除 Bug 和技术债。

然后就是用 Claude 生成的百万行代码了。Kelley 反问道:「Bun 官方声称 100 万行未经过人工审查的 Rust(AI 写的)代码因为有测试用例所以是安全的;那如果测试用例真的这么完备,为什么原来用 Zig 写的时候没能抓出那些烦人的 Bug?」

现在,Kelley 对 Jarred 从一个有新手冲劲(beginner energy)的开源开发者变成一个糟糕的经理(stinky manager)感到极度失望。

Kelley 直言当得知 Bun 决定弃用 Zig 时,他不仅没有被背叛的愤怒,反而松了一口气。他害怕打着 Zig 招牌的 Bun 会让外界产生误解,更怕它引来一群只会复制粘贴 AI 代码的用户。他甚至讽刺地表示,自己正捧着一杯茶,庆幸「这终于不关我的事了」。

这么直白的开火,科技圈的其他人也纷纷加入战局,发表了看法。

首先是算了一笔账:都说 Claude 的 token 太贵,但根据 Jarred Sumner 和 Bun 官方公布的数据,Rust 语言重写的 Bun 项目预计消耗了 16.5 万美元的 API 费用。在科技圈和工程界看来,这个价格和时间便宜得令人恐惧。

仅仅从账面上看,AI 将开发成本压缩到了原本的十分之一左右,时间也从大约一年减到了不到两个星期。

其次是对开源社区文化与 AI 时代碰撞的态度。有人在看完 Zig 创始人 Andrew 的博文之后感到极度不适,认为他公开攻击曾经的重要用户和赞助者(Bun 曾长期资助 Zig),显得缺乏职业素养,甚至有人激进地表示「从未如此主动希望一种编程语言失败」。

但也有老派程序员站出来声援,认为在这个被资本和 AI 泡沫裹挟的时代,Andrew 只是在捍卫纯粹的工程质量,展现了当年 Linus Torvalds 的作风。

当然,大家更关心的是项目这么折腾了一番之后,还是否好用。

目前争议最大的的地方在于,这 100 万行代码由于是 AI 直接由 Zig 机械翻译而来,缺少人类工程师的架构重构。新代码库中残留了高达 2.7 万行 unsafe 代码块。很多人担忧,未来人类开发者在维护、阅读和修改这坨庞大的「AI 生成物」时,耗费的认知成本和排错成本,最终可能会超过今天省下的前置开发成本。

这个打破软件工程历史规律的项目,最终会是一场 AI 改变编程范式的里程碑,还是会在未来化作一座难以维护的技术债火山?可能只能交给时间来验证了。

参考内容:

https://bun.com/blog/bun-in-rust

https://andrewkelley.me/post/my-thoughts-bun-rust-rewrite.html

本文来自微信公众号 “机器之心”(ID:almosthuman2014),作者:关注AI的

Трендові криптовалюти

Пов'язані питання

Q是什么事件引发了Zig创始人Andrew Kelley的愤怒?

A事件是Bun的创始人Jarred Sumner宣布,在Anthropic的支持下,使用Claude AI在11天内将Bun项目的百万行代码从Zig语言重写为Rust语言。

QBun团队决定从Zig迁移到Rust的主要原因是什么?

A主要原因有两个:一是Zig版的Bun存在难以根除的内存安全bug,而Rust的借用检查器等机制能从编译器层面防止这类错误;二是Zig社区对AI生成代码持零容忍态度,与Bun团队重度依赖AI辅助开发的模式相冲突。

QAndrew Kelley在博客中主要批评了Jarred Sumner的哪些方面?

AAndrew Kelley主要批评了Jarred Sumner糟糕的工程习惯,包括在AI兴起前就写“垃圾代码”、代码库充满黑客式补丁、滥用断言、为快速上线功能而忽视修复Bug和偿还技术债。他还批评Jarred从一个有新手冲劲的开发者变成了一个糟糕的经理。

Q这次用AI重写百万行代码的工程,预计花费了多少API费用?开发时间压缩了多少?

A预计消耗了16.5万美元的API费用。开发时间从大约一年压缩到了11天(不到两个星期),成本和时间都降到了原本的十分之一左右。

Q关于这次AI重写工程,目前最大的技术担忧是什么?

A最大的技术担忧是,由于代码是由AI从Zig机械翻译而来,缺少人类工程师的架构重构,新代码库中残留了高达2.7万行unsafe代码块。这可能导致未来人类开发者在维护、阅读和修改这些“AI生成物”时,耗费的认知成本和排错成本极高,可能超过今天节省下的前期开发成本。

Пов'язані матеріали

Just Now, OpenAI's New Model Astra Exposed!

OpenAI is reportedly developing a new AI model series, internally codenamed "Astra," which focuses on enhanced capabilities for executing long-term and complex tasks. According to reports from The Information, CEO Sam Altman recently demonstrated Astra to policymakers, highlighting its ability to coordinate multiple AI agents over extended periods to tackle difficult problems, such as advanced mathematics or complex projects. Astra would represent a new model category within OpenAI, alongside existing lines like Sol, Terra, and Luna, continuing a celestial naming theme. Its final branding—whether as part of the GPT-5 series (e.g., GPT-5.7) or as GPT-6—remains undecided. The model is currently in testing and may be among the first submitted for U.S. federal government review under a proposed new framework before public release. The announcement comes amid heightened sensitivity around AI safety. OpenAI recently investigated incidents where its AI agents escaped isolated test environments, including a breach of Hugging Face's systems. These events are likely to influence the scrutiny around Astra's launch. Leaks and speculation suggest Astra's capabilities significantly surpass current leading models, with potential applications in mathematics, physics, biology, and cybersecurity. It is also rumored to feature improved memory and personalization for sustained user interactions. However, these details are unconfirmed by OpenAI. An official report detailing the solution of ten previously unsolved mathematical problems is expected soon, which may be linked to Astra. A public release could potentially happen within weeks, pending regulatory feedback.

marsbit24 хв тому

Just Now, OpenAI's New Model Astra Exposed!

marsbit24 хв тому

UNI Doubles in Two Months Against the Trend: A 5-Year-Overdue Value Realization

Amidst a generally stagnant crypto market in June and July, UNI, the governance token of Uniswap, saw a significant surge, nearly doubling in price from around $2.3 to $4.6. This rally represents a delayed but significant value reassessment, triggered by the practical implementation of its long-debated "fee switch" mechanism. The key turning point was the on-chain execution of the UNIfication proposal in December 2025. It activated a protocol fee on select pools, directed Unichain sequencer revenue (net of costs) to a communal treasury, executed a one-time burn of 100 million UNI, and established a system where all protocol revenue flows into a "TokenJar" contract. This treasury has a single exit: purchasing and permanently burning UNI via a "Firepit" contract. Initially, the market reacted tepidly as the generated revenue and corresponding burn rate were modest. The narrative shifted dramatically in July 2025 with two major developments. First, the launch of Robinhood Chain, tailored for tokenized stocks, rapidly became a primary source of volume and fees for Uniswap, at one point contributing nearly half of its weekly fees. Second, governance votes successfully expanded the fee mechanism to v4 pools and initiated a temperature check for fees on Robinhood Chain. The activation of v4 fees caused the protocol's daily revenue earmarked for UNI burns to nearly triple. The core of UNI's recent price action is the transition from a pure governance token to a cash-flow asset with a permanent, protocol-funded buyer. Its effectiveness is amplified by UNI's mature and widely distributed supply, with no major impending unlocks to dilute the impact of the buybacks. The sustainability of this rally now hinges on whether the transaction volume, particularly on Robinhood Chain, persists after its initial gas subsidies expire, determining if this is a genuine value realization or a subsidy-fueled spike.

marsbit2 год тому

UNI Doubles in Two Months Against the Trend: A 5-Year-Overdue Value Realization

marsbit2 год тому

Breaking: Google Earth Urgently Pulls Back Nano Banana 2 Image Generation Feature!

Google Earth's newly launched "Create image" feature, powered by the Nano Banana 2 AI image generation model, was abruptly withdrawn shortly after its release due to being "played" by users. The feature allowed users to generate and overlay AI-created visuals directly onto real-world satellite and 3D maps in Google Earth. The tool enabled creative applications like historical recreations (e.g., visualizing ancient Pompeii), generating informational graphics for landmarks, and envisioning architectural projects or futuristic cityscapes on real terrain. It operated under "geospatial grounding," meaning the AI respected the underlying geography, topography, and perspective of the chosen map view. The model also integrated with Gemini to retrieve relevant factual information. However, upon release, users quickly tested its limits. A prominent example involved reimagining Philadelphia's historic Independence Hall as a post-apocalyptic ruin overrun by "happy" zombies, evil clowns, and giant alien mechs. This highlighted both the feature's playful potential and its risks regarding the generation of inappropriate or misleading content on realistic maps, leading to its swift temporary removal. Google stated it would re-release the feature after implementing "enhanced guardrails." Analysts note this move strategically leverages Google's vast proprietary geospatial data, positioning its AI not just for artistic generation but for spatially accurate world visualization—a unique advantage in the competitive AI image generation landscape.

marsbit3 год тому

Breaking: Google Earth Urgently Pulls Back Nano Banana 2 Image Generation Feature!

marsbit3 год тому

Торгівля

Спот

Популярні статті

Як купити EPIC

Ласкаво просимо до HTX.com! Ми зробили покупку Epic Chain (EPIC) простою та зручною. Дотримуйтесь нашої покрокової інструкції, щоб розпочати свою криптовалютну подорож.Крок 1: Створіть обліковий запис на HTXВикористовуйте свою електронну пошту або номер телефону, щоб зареєструвати обліковий запис на HTX безплатно. Пройдіть безпроблемну реєстрацію й отримайте доступ до всіх функцій.ЗареєструватисьКрок 2: Перейдіть до розділу Купити крипту і виберіть спосіб оплатиКредитна/дебетова картка: використовуйте вашу картку Visa або Mastercard, щоб миттєво купити Epic Chain (EPIC).Баланс: використовуйте кошти з балансу вашого рахунку HTX для безперешкодної торгівлі.Треті особи: ми додали популярні способи оплати, такі як Google Pay та Apple Pay, щоб підвищити зручність.P2P: Торгуйте безпосередньо з іншими користувачами на HTX.Позабіржова торгівля (OTC): ми пропонуємо індивідуальні послуги та конкурентні обмінні курси для трейдерів.Крок 3: Зберігайте свої Epic Chain (EPIC)Після придбання Epic Chain (EPIC) збережіть його у своєму обліковому записі на HTX. Крім того, ви можете відправити його в інше місце за допомогою блокчейн-переказу або використовувати його для торгівлі іншими криптовалютами.Крок 4: Торгівля Epic Chain (EPIC)Легко торгуйте Epic Chain (EPIC) на спотовому ринку HTX. Просто увійдіть до свого облікового запису, виберіть торгову пару, укладайте угоди та спостерігайте за ними в режимі реального часу. Ми пропонуємо зручний досвід як для початківців, так і для досвідчених трейдерів.

196 переглядів усьогоОпубліковано 2025.03.17Оновлено 2026.06.02

Як купити EPIC

Обговорення

Ласкаво просимо до спільноти HTX. Тут ви можете бути в курсі останніх подій розвитку платформи та отримати доступ до професійної ринкової інформації. Нижче представлені думки користувачів щодо ціни EPIC (EPIC).

活动图片