跳到正文
dex· @dexhorthy · X·· 2 小时前精选AI 评分72
AI 导读

Anthropic 工程博客宣布用五个月自建新版本控制系统并将 monorepo 完全从 git 迁移,代码合并量从 5 月的每日约 2,500 次增至 9 月的超过 30,000 次。Dex Horthy 点评其关键转变是新 VCS 不支持离线、依赖中心服务器,在代码变更越来越自动化的未来,VCS 接近生产环境的一部分,可把处理卸载到服务端换取客户端性能。

推荐理由

作者解读 Anthropic 自建集中式版本控制的设计取舍,指出当代码变更高度自动化后 VCS 可能重新走向中心化。

正文

anthropic built their own git. Most interesting mental shift here, and if you buy that changing code happens more and more autonomously, faster*, then this will make a ton of sense:

Git was designed so that any client could serve the repo. Fully offline,
your *build time* dev stack is never in the hot path for your *run time* deployment.

Anthropics new version control system (VCS) does not work offline. There’s a central server which must be reachable for clients to function. They found a bunch of benefits to doing it this way.

At first this sounds wild. Today if GitHub is down, you can’t pull or push or merge. Imagine if you couldn’t COMMIT if GitHub was offline.

But in a (someday, maybe) future where code changes 1000x per day with no human in the loop, then your VCS is basically part of production anyway, so you might as well lean into keeping it online with a team of SREs etc, and then you get all sorts of interesting perf benefits for CLIENTS because you can offload some processing to server and re architect what all needs to be stored where

* I’m not sure I buy this, but the labs are certainly pushing “don’t read the code, leverage signals like “outage, feature request, user behavior change” as STIMULUS to agents to drive change in deployed code” as the future, so it lines up

Does that make sense? Are we going back to CVS instead of distributed? Will there be another swing back to distributed 5-10 years after things like Scion become Mainstream?

引用Anthropic@AnthropicAI
New on our Engineering blog: Creating in-house source control. In May, we merged around 2,500 code changes per day. In September, we merged more than 30,000 per day. As a result, we became bottlenecked by developer infrastructure built for human (rather than agent) scale. Here, we share how we built a new version control system—and fully migrated our monorepo from git—in five months: https://www.anthropic.com/engineering/redesigning-source-control
在 X 查看被引用的帖子

来源:dex · x.com