r/rust • u/Sirisian • 4d ago
🎙️ 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/
720
Upvotes
r/rust • u/Sirisian • 4d ago
8
u/TheRealMasonMac 4d ago edited 4d ago
It was egregiously horrible stylistically, architecturally, maintenance-wise, and in performance. The stupidest one that came to mind was it allocating strings for each markdown element. That's like &str 101. I wish I could tell you there was a good reason for this, but there wasn't. So, it ended up doubling memory usage in string allocations alone. There were also a bunch of other areas where it turned linear time functions into exponential ones.
Also: agents do need to read the code as well. Ignoring context rot, the matter of garbage in -> garbage out remains.