@GergelyOrosz: 1. It's a big deal to rewrite when no one on the team knows Rust, like the case with Anthropic 2. Do it on a service at…
Summary
讨论 Anthropic 将 API 从 Python 重写为 Rust 的工程实践:团队无人懂 Rust、服务规模极大、且在不细读新代码的情况下于数月内完成验证上线。
View Cached Full Text
Cached at: 11/27/26, 08:07 AM
@ByDeepakJain 1. It’s a big deal to rewrite when no one on the team knows Rust, like the case with Anthropic
-
Do it on a service at MASSIVE scale and growing (one of the largest services wordwide)
-
Do it without reading the new code but validating it
-
Finish in a few months, vs taking
Gergely Orosz@GergelyOrosz·Nov 26: How did Anthropic rewrite the API all Claude tokens from Python to Rust, why did eng teams remove coding interviews, and why do devs spend a LOT more time building internal tools than before? Super interesting details from @katelyn_lesse
Timestamps:
00:00 Intro 03:09 Stripe
Similar Articles
@ByDeepakJain: What’s such a big deal in writing an api from python to rust Any sane programmer would look into resource footprint and…
A user comments on Gergely Orosz's post about Anthropic rewriting its API from Python to Rust, arguing that any sane programmer would weigh resource footprint before choosing tooling.
@FinanceYF5: Anthropic used Claude to migrate its core API from Python to Rust, and the results were somewhat astonishing. CPU usage dropped by about 70%, memory usage fell by more than 80%, and time to first token decreased by about 20%. The entire process involved no interruption to live services or pause in new feature…
Anthropic migrated its core Messages API from Python to Rust, reducing CPU usage by approximately 70%, memory usage by more than 80%, and time to first token by approximately 20%, without any interruption to production services, and publicly shared the full engineering experience.
@musen9527: Rewriting Claude's core API from Python to Rust — Anthropic's migration is pretty hardcore. They published a write-up walking through the whole process, and the cleverest move was keeping the old Python service around as a judge. Every time an endpoint was rewritten in Rust, both sides would run in parallel, using Python's output to v…
Anthropic published a write-up reviewing the process of migrating Claude's core API from Python to Rust. The standout idea was keeping the old Python service as a real-time validation referee — after each endpoint was rewritten, both systems ran side by side to verify the results.
@AnthropicAI: We recently migrated our Messages API from Python to Rust. On our engineering blog, we share how we used the existing s…
Anthropic detailed how it migrated its Messages API from Python to Rust, using teams of Claude agents and the production Python API as a verifier to track down and fix parity differences—cutting CPU per request by ~70% and median time to first token by ~20% without downtime.
Migrating our Messages API to Rust
Anthropic describes migrating its production Messages API from Python to Rust, using the live Python service itself as a verifier to test the Rust version on production traffic and auto-dispatch agents to fix divergences. The result cuts CPU per request by ~70% and median time-to-first-token by ~20% with zero downtime.