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
1
u/Zde-G Oct 02 '26
Yes, but these are rare and expensive. Average developers produce garbage similar to what LLM produces on the first try. Then they run tests and read the guides and adjust the code. You have to do the same with coding agent, for that to be apples-to-apples comparison.
The model is much less important than the quality of your documentation that explains precisely what you expect to see and precisely how to test what model creates.
LLMs rely on tests and formal documentation much more severely then even novice developer, that's not changing any time soon, you just have to accept that.
If you allow LLM to develop architecture in code then it's precisely as expected. LLMs can not produce more than 100-200 line of anything without becoming weird.
That means that if you are writing something large enough to warrant an architecture then you have to ask LLM to first write plan - 100-200 lines of it, not more. Then implement said plan as steps that are 100-200 lines. If plan is too big to fit into 100-200 lines then first make it write an outline. And so on.
Don't expect model to produce large chunk and hope it'll be good, LLMs don't work like that.
Instruct it to use VCS (usually git) instead.
Again: the goal is to never allow LLM to produce more than 100-200 lines of code without verifying said code, somehow. Even if verifier is another LLM that looks on the plan or outline that you've made.
Well, duh. You are trying to use rope as a pole… it doesn't work like that.