# Anthropic：无Rust工程师完成API迁移

Original title: Anthropic migrated Messages API to Rust with no Rust developers

> Hacker News story 50644162 · language: zh · submitted 2026-11-25
> Web version: https://zeli.app/zh/story/50644162
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 23 · by [swyx](<https://news.ycombinator.com/user?id=swyx>) · 💬 4
[original](<https://www.anthropic.com/research/migrating-api-to-rust>) · [HN discussion](<https://news.ycombinator.com/item?id=50644162>)

## Summary

我们将Messages API从Python迁移到Rust，全程没有Rust工程师参与，全靠Claude生成代码。面对Python代码随时间变化、Claude输出非确定性等难题，传统测试无法验证迁移正确性。我们创新地将生产环境中的Messages API本身作为验证器，通过流量影子对比和差异指纹技术，精准定位并自动修复了数百个细微差异。最终，新API在零停机、不冻结功能迭代的情况下上线，CPU消耗降低70%，首字延迟减少20%。

## Key quote

> 当Claude的能力越来越强时，生成代码不再是瓶颈，验证代码的正确性才成了真正的挑战。

---

## Cite

- Page: https://zeli.app/zh/story/50644162
- Date: 2026-11-25
- Source: anthropic.com (https://www.anthropic.com/research/migrating-api-to-rust)
- Hacker News: https://news.ycombinator.com/item?id=50644162

## Other languages

- en: https://zeli.app/story/50644162 · markdown: https://zeli.app/story/50644162.md
- ja: https://zeli.app/ja/story/50644162 · markdown: https://zeli.app/ja/story/50644162.md
- ko: https://zeli.app/ko/story/50644162 · markdown: https://zeli.app/ko/story/50644162.md
- de: https://zeli.app/de/story/50644162 · markdown: https://zeli.app/de/story/50644162.md
- es: https://zeli.app/es/story/50644162 · markdown: https://zeli.app/es/story/50644162.md
- ru: https://zeli.app/ru/story/50644162 · markdown: https://zeli.app/ru/story/50644162.md
