Google DeepMind工程师实测Gemini 4
Applying Gemini 4 for large-scale codebase maintenance in Chromium
一线工程师实测Gemini 4 Argon处理4000万行代码库的完整工作流,包含具体配置与效率对比,对Agent工程落地极具参考价值。
After I received early access to Gemini 4 Argon, I've spun up more changes into Chromium in the last two weeks than I would typically do in a matter of months. Chromium is an open source repository that powers web browsers and it's also used to power a lot of other electronics like here also here, here too, here, here, and even here. Chromium has been around for two decades. It's got about 40 million lines of code and like any longunning open- source project.
在我获得 Gemini 4 Argon 的早期访问权限后,我在过去两周里向 Chromium 提交的更改数量,比我通常在几个月内做的还要多。Chromium 是一个开源代码库,它为网络浏览器提供动力,也被用于为许多其他电子设备提供动力,比如这里、这里、这里、这里、这里,甚至这里。Chromium 已经存在了二十年。它拥有大约 4000 万行代码,并且像任何长期运行的开源项目一样。
It's really complex. There's the core engine [music] itself and that's a very solid piece of technology. Then there's a set of features on the top. Uh think the bookmarks bar, the tab strip, the downloads [music] bar, right? There's hundreds of features that have been added by lots of different teams and these features have been built up incrementally and as a result they often have unexpected interactions with each other.
它非常复杂。有核心引擎本身,这是一项非常扎实的技术。然后在顶部有一组功能。嗯,想想书签栏、标签页条、下载栏,对吧?有许多功能是由许多不同的团队添加的,这些功能是逐步构建起来的,因此它们之间经常会产生意想不到的交互。
Allow me to demonstrate. Imagine this is the codebase and each of these is a feature. [music] I want to make a change to the bookmarks bar. I should be able to make one small change. Things that seem unrelated [music] can be connected underneath. The goal of our team is to create modular components so that we can independently develop and test our features. This is something that would have taken years of time and therefore we've tried a lot of different models in attempt to kind of speed up some of this work.
请允许我演示一下。想象这是代码库,每个这些都是一个功能。我想对书签栏进行更改。我应该能够做一个小的更改。看起来不相关的东西在底层可能是相连的。我们团队的目标是创建模块化组件,以便我们能够独立开发和测试我们的功能。这将需要数年的时间,因此我们尝试了许多不同的模型,试图加快其中一些工作的速度。
[music]
[音乐]
But the Chromium repository is different because of its size and that's really hard for AI agents to navigate effectively. [music] Quite often the model would kind of go off rails. It would generate code that was not the level of quality that we were expecting. There was a lot of handholding involved. Gemini for Argon seems to have surpassed these limitations. [music] I just tell it, hey, we're trying to detangle this spaghetti.
但 Chromium 代码库因其规模而有所不同,这使得 AI 代理很难有效地进行导航。模型经常会偏离轨道。它会生成不符合我们预期质量水平的代码。这需要大量的指导。Gemini for Argon 似乎已经超越了这些限制。我只是告诉它,嘿,我们正试图解开这团乱麻。
No skills, no harness. Here's [music] a memory file for, you know, just how to work with some of the existing tools. And it spins up 20 changes at a time. We typically run a couple hundred thousand tests [music] on every change. Then we have two humans that review the changes. We then run a couple million tests on both new and old devices. Gemini 4 [music] can kind of stand up 20 of these changes at a time that pass all the tests.
无需技能,无需工具包。这是一个记忆文件,告诉你如何使用一些现有工具。它一次生成 20 个更改。我们通常对每次更改运行数十万次测试。然后我们有两个人来审查这些更改。接着我们在新旧设备上运行数百万次测试。Gemini 4 一次可以生成 20 个通过所有测试的此类更改。
That's kind of one of the clearest signs of the quality of the model itself. That a typical engineer might put out one change a day. [music] 20 changes is 20 days of work. We can now think about where do we want to take the Chromium repository. Historically, we were limited by our ability to do the [music] work. Now, we're only limited by our own imagination in terms of what we can accomplish and how we can improve [music] the experience for our users.
这是衡量模型本身质量最清晰的标志之一。一位典型的工程师可能每天只提交一次更改。[音乐] 20 次更改相当于 20 天的工作量。我们现在可以思考如何将 Chromium 仓库推向新的高度。历史上,我们受限于执行这些工作的能力。而现在,我们在能取得的成就以及能为用户改善体验方面,仅受限于我们的想象力。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力