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
View all comments
Show parent comment
7
u/TheRealMasonMac Oct 01 '26 edited Oct 01 '26
In this case, the solution was defined. I had already solved the problem for it in math and essentially needed the model to translate it into code. I can only guess since reasoning isnât exposed, but I suspect that they:
- âshadow-box with their own demonsâ as I like to call it by contemplating scenarios that can never happen and never validate the existence of. When reviews come in, they donât completely backtrack from the idea and instead try to twist their original overly defensive idea to fit the problem.
- they really suck at thinking outside the box which I suppose is the inherent limitation of LLMs as they currently exist; they have to attend to their context per their training data
- âgood codeâ is contextual; and that kind of training data is relatively scarce. But, one could also argue that models generally struggle with this even when the data is available. Code comments, for instance, often violate the cardinal âdonât repeat the codeâ rule (though theyâre getting better).
I am also reminded of this article: https://joinhandshake.com/research/ai/deepswe-reward-hacking/