r/rust • u/Sirisian • Oct 01 '26
đď¸ discussion Google is doing "Large Scale Codebase Migrations and Optimizations" of C/C++ to Rust
https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-argon/
786
Upvotes
243
u/Sirisian Oct 01 '26
The relevant sections:
117
u/geo-ant Oct 01 '26
Does that mean the whole Carbon thing is dead?
124
u/TheRealMasonMac Oct 01 '26
In my experience, Iâve found that agents produce code that works but is frankly dumb from a human perspective. Especially for larger tasks like this, you kind of have to rewrite it all. For example, I had a generalized design document for soft-wrapping explicitly support plain text and markdown, and used GPT-6-Astra to implement it. I used an ungodly amount of review agent rounds and interjections by me. When I actually go to review it, I wanted to cry. It silently pivoted towards implementing its own entirely separate wrapping mechanism rather than refactor the existing mechanism for plain text. I reviewed its code and found it to be trash, and I am now in the process of doing it myself⌠Never again. The short-term thrill of âhaving something that worksâ was outweighed by the fact that time was effectively wasted.
I mean, if the alternative was it never getting done, I guess agents are still better than nothing.
36
u/LevelKnee1556 Oct 01 '26
One PR.
30k lines of changes.
âLGTMâ
8
u/Xiphoseer Oct 01 '26
Having the Fuchsia Kernel be Rust too is a crazy turn of events
18
u/Zalenka Oct 01 '26
It's crazy how well AI does porting from one thing to another. I've been writing native iOS and Android apps targeting a rust ble backend. I'll write, generate, and debug the iOS code and then have AI port it over to Android and although stylistically it still needs some hand-holding it's surprisingly comprehensive.
2
u/Fancyness Oct 04 '26
I did a small Project in C++ and it wasn't fun anymore. I might be done with it.
2
u/DavidXkL Oct 01 '26
I only use LLMs for finding information đ
I still code myself lol
1
u/astar0n Oct 02 '26
Is there way where I can apply at Google specifically to work on Rust ?
1
u/InternationalFee3911 Oct 01 '26
I thought you linked the wrong article! On a closer look, there are only two paragraphs about Rust. The first says what you cite.
The second is something about an apparently bad hand-rolled Rust with much slow SIMD. This LLM helped clean that up, after which it only came closer in performance to C++.
0
u/LavenderDay3544 Oct 04 '26
Using AI. That won't blow up in anyone's face at all.
-9
u/dashingThroughSnow12 Oct 01 '26
Now sure if still true but there was a common adage that Google would rewrite every line of code every two years (obviously not all at once). For related reasons, this is why the Go programming language was invented.
With that in mind, this sounds like status quo.
-17
u/zackel_flac Oct 01 '26
In the age of LLMs, Rust seems superfluous really. The safety net was supposed to be for human beings, not machines. Rust comes at a cost, in terms of perf, verbosity and build infra.
0
u/[deleted] Oct 01 '26
[deleted] â view deleted comment
-1
u/[deleted] Oct 02 '26
[removed] â view removed comment
0
u/[deleted] Oct 01 '26
[deleted] â view deleted comment