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

marsbit2026-07-11 tarihinde yayınlandı2026-07-11 tarihinde güncellendi

Özet

科技圈近日因编程语言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的

Trend Kriptolar

İlgili Sorular

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生成物”时,耗费的认知成本和排错成本极高,可能超过今天节省下的前期开发成本。

İlgili Okumalar

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.

marsbit17 dk önce

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

marsbit17 dk önce

Altman Admits: Overestimated AI Snatching Jobs! Huang Renxun: The Unemployment Narrative Is Completely Backwards

Sam Altman has revised his earlier predictions about AI rapidly replacing jobs, admitting he overestimated the speed at which AI would eliminate entry-level white-collar roles. Speaking on the "Invest Like the Best" podcast, he stated that people do not truly want an AI CEO, as accountability and human connection remain critical. He found that individuals prefer interacting with people who can be held responsible for decisions. Similarly, NVIDIA's Jensen Huang argued that the narrative of AI destroying jobs is misguided. He distinguishes between tasks and jobs, noting that while AI can automate specific tasks, entire jobs—encompassing communication, judgment, coordination, and accountability—are not eliminated. He cited examples like radiologists and software engineers, where demand for these roles has increased as AI handles repetitive tasks, allowing for business expansion and the creation of more positions. Data from a University of Maryland and LinkUp study supports this, showing that U.S. job postings for new graduates have actually risen, countering the fear of vanishing entry-level roles. However, a significant shift is occurring: the traditional entry-level tasks that help newcomers gain experience are being automated, making initial career access more challenging. The key insight is that as AI takes over standardized tasks, the enduring value of human work shifts toward areas of responsibility, trust-building, and final decision-making—aspects that AI cannot replicate. The real "moat" for professionals lies in these irreplaceable human elements.

marsbit23 dk önce

Altman Admits: Overestimated AI Snatching Jobs! Huang Renxun: The Unemployment Narrative Is Completely Backwards

marsbit23 dk önce

Weekly Editor's Picks (0725-0731)

Weekly Editor's Picks (0725-0731) provides a curated selection of deep analysis, filtering out market noise. Key themes from this week include: **Macro & Policy:** The Federal Reserve's upcoming meeting is marked by high uncertainty, balancing cooling inflation data against persistent price pressures. Meanwhile, the U.S. crypto regulatory Clarity Act faces critical political hurdles, with its 2026 passage probability seen as low. **Investing & Crypto:** Analysis suggests long-term crypto success depends on conviction through volatile cycles, focusing on assets like Bitcoin and core smart contract platforms. A trend noted is the increasing similarity between global equity markets (especially tech) and crypto, driven by narrative and leverage. Several major crypto protocols show strong revenue growth, but this isn't always translating to token price appreciation due to sell pressure and structural factors. **AI & Semiconductors:** Nvidia's rising credit default swap rates signal market concern over AI infrastructure financing risks. The storage sector experienced volatility as markets began pricing in potential 2027 oversupply. Despite a record profitable quarter, SK Hynix's results were deemed "below expectations," reflecting heightened investor demands for future growth visibility. **Markets & DeFi:** TradeXYZ demonstrated remarkable accuracy in pre-market pricing for a major A股 listing. The token ONDO saw gains, linked to its growing role in the on-chain tokenized stock ecosystem. **Ethereum:** Post-Pectra upgrade, a major structural shift is underway as Lido begins migrating millions of ETH to new validator architectures designed for capital efficiency. **Also Highlighted:** Butian's bullish stock market move; OpenAI's Altman promising major advances; Samsung and SK Hynix securing large AI chip deals; Apple reaching a $5T market cap; and ongoing discussions around exchange security following Poolin's bankruptcy case.

marsbit57 dk önce

Weekly Editor's Picks (0725-0731)

marsbit57 dk önce

Low Investment Isn't Apple's Immunity Pass

While Meta and Google face investor scrutiny over ballooning AI capital expenditures, Apple's minimal AI investment has paradoxically become a strength. Its market cap recently reclaimed the global top spot, surpassing $5 trillion. The irony is deep: Apple's own AI efforts have lagged, with "Apple Intelligence" delayed and core talent lost, forcing reliance on partners like Google Gemini and Alibaba's Qianwen. Its Q3 FY2026 (Q2 CY) earnings initially seemed stellar. Revenue hit $109.4B (up 16% YoY), with iPhone and Mac sales, growing 22% and 29% respectively, driving most of the growth. However, the stock fell over 8% post-earnings. The primary concern was a weaker Q4 revenue growth forecast of 9-11%, below expectations, due to looming supply chain constraints. Apple is feeling the indirect cost of the AI boom. Soaring memory and chip prices, fueled by massive data center investments from Microsoft, Amazon, and others, are forcing Apple to raise Mac and iPad prices significantly. The upcoming iPhone launch is also expected to see substantial price hikes. Despite avoiding heavy AI infrastructure spending—its capital expenditures are actually down 28%—Apple cannot escape the industry-wide supply and cost pressures. While Apple's operating cash flow remains robust, its substantial R&D spending (up 32% YoY) has yet to yield major AI breakthroughs. As Tim Cook prepares to step down as CEO, Apple faces a challenging transition: balancing its premium hardware success against the strategic and cost pressures of the AI era it has so far cautiously navigated.

marsbit1 saat önce

Low Investment Isn't Apple's Immunity Pass

marsbit1 saat önce

İşlemler

Spot

Popüler Makaleler

EPIC Nasıl Satın Alınır

HTX.com’a hoş geldiniz! Epic Chain (EPIC) satın alma işlemlerini basit ve kullanışlı bir hâle getirdik. Adım adım açıkladığımız rehberimizi takip ederek kripto yolculuğunuza başlayın. 1. Adım: HTX Hesabınızı OluşturunHTX'te ücretsiz bir hesap açmak için e-posta adresinizi veya telefon numaranızı kullanın. Sorunsuzca kaydolun ve tüm özelliklerin kilidini açın. Hesabımı Aç2. Adım: Kripto Satın Al Bölümüne Gidin ve Ödeme Yönteminizi SeçinKredi/Banka Kartı: Visa veya Mastercard'ınızı kullanarak anında Epic Chain (EPIC) satın alın.Bakiye: Sorunsuz bir şekilde işlem yapmak için HTX hesap bakiyenizdeki fonları kullanın.Üçüncü Taraflar: Kullanımı kolaylaştırmak için Google Pay ve Apple Pay gibi popüler ödeme yöntemlerini ekledik.P2P: HTX'teki diğer kullanıcılarla doğrudan işlem yapın.Borsa Dışı (OTC): Yatırımcılar için kişiye özel hizmetler ve rekabetçi döviz kurları sunuyoruz.3. Adım: Epic Chain (EPIC) Varlıklarınızı SaklayınEpic Chain (EPIC) satın aldıktan sonra HTX hesabınızda saklayın. Alternatif olarak, blok zinciri transferi yoluyla başka bir yere gönderebilir veya diğer kripto para birimlerini takas etmek için kullanabilirsiniz.4. Adım: Epic Chain (EPIC) Varlıklarınızla İşlem YapınHTX'in spot piyasasında Epic Chain (EPIC) ile kolayca işlemler yapın.Hesabınıza erişin, işlem çiftinizi seçin, işlemlerinizi gerçekleştirin ve gerçek zamanlı olarak izleyin. Hem yeni başlayanlar hem de deneyimli yatırımcılar için kullanıcı dostu bir deneyim sunuyoruz.

184 Toplam GörüntülenmeYayınlanma 2025.03.17Güncellenme 2026.07.21

EPIC Nasıl Satın Alınır

Tartışmalar

HTX Topluluğuna hoş geldiniz. Burada, en son platform gelişmeleri hakkında bilgi sahibi olabilir ve profesyonel piyasa görüşlerine erişebilirsiniz. Kullanıcıların EPIC (EPIC) fiyatı hakkındaki görüşleri aşağıda sunulmaktadır.

活动图片