A code migration with a measurable finish line

Google says Gemini 4 Argon helped rewrite roughly 32,000 lines of libgav1, the company’s AV1 video decoder, from C++ into safe Rust. The rewritten implementation produced identical video output in Google’s tests and ran 2.7 times faster than an existing Rust port. The comparison is specifically against that port, not against every C++ implementation or every software migration.

The task is interesting because it combines code translation with a strict correctness requirement. A video decoder must preserve exact behavior across a large set of inputs; a program that compiles but changes output is not a successful rewrite.

Why this is more than code completion

Large migrations are difficult to supervise because a developer must manage many files, preserve interfaces and catch subtle behavioral changes. Google’s example shows a model working through a substantial codebase task and validating output equivalence, instead of merely suggesting a function in an editor.

Google describes Gemini 4 Argon as a long-context frontier model and says the release is rolling out to selected users and trusted testers. That limited availability matters: this is a company example of what the system can do, not a generally available benchmark anyone can reproduce today.

The useful question for developers

A 32,000-line migration is impressive only if the checks match the job. In this case, identical decoder output gives the team a concrete comparison target, while the speed number compares against a Rust port. The example points toward work where AI can take on a bounded but large engineering task and leave a testable result.

The source article also describes the model’s context and release plan. For engineering teams, the follow-up is not “can it write code?” but “can it preserve behavior across a migration, and can the review evidence make mistakes visible?”

Explore the original source ↗

Source published September 30, 2026. Coverage is based on the maker’s announcement and demonstration.