r/programming • • Aug 05 '26

The rust programming language is adopting a new contributing policy

https://blog.rust-lang.org/inside-rust/2026/08/05/rust-langrust-is-adopting-an-llm-policy/
634 Upvotes

132 comments sorted by

View all comments

Show parent comment

10

u/hoodieweather- Aug 05 '26

I thought this a year or so back, but honestly, these days, with proper guidance I'm getting LLMs to produce code that's pretty close to what I would have written by hand. I definitely don't see us reaching the point of "just give it a vague issue to fix and let it ship when done" any time soon, but if you have the bot use practices like TDD and self review, coupled with well-scoped specs for implementation, you can easily cut your time to a PR in half and still end up with a solid change set.

I'm doing this at work with a near decade-old codebase, and as long as I put it on the proper rails, I'm honestly (and surprisingly) impressed with the results. The real question I have is, at what point does the current subsidized pricing model fall apart and this becomes unsustainable.

13

u/ComplianceAuditor Aug 05 '26

Pretty soon. It will switch to entirely usage based billing and it will get super expensive across the board.

6

u/hoodieweather- Aug 05 '26

Agreed, this has been my bigger concern, along with figuring out at what point the time savings (if any) are no longer worth the cost.

3

u/21Rollie Aug 07 '26

My company already crossed their budget and restricted us. But I mean, they told us to go wild….

4

u/ComplianceAuditor Aug 08 '26

Send them an email saying that you are blocked from going wild and want clarification if they still want you to go wild.

12

u/remy_porter Aug 05 '26

Ive gotten it to generate good code for stuff I don’t want to keep. Disposable code. None of the output I’ve gotten is anything I’d consider production ready. It remains unable to write anything truly modular.

And since a) reading code is harder than writing code, and b) I’m going to read all the AI generated code, it’s just more work overall.

6

u/hoodieweather- Aug 05 '26

Have you experimented much with how you prompt things, or using the various agent modes/skills like Claude's planning or the Superpowers skill set?

I fully believe that it hasn't produced anything production-ready for you, I'm not discounting that, I'm just curious because I have gotten code that I was comfortable shipping. Fully tested, fits the existing architecture of the codebase, handles edge cases and is easy to read and maintain.

I also primarily work with web tech, though, which I imagine it has by and large the best training for. I've found that when I need to dig into something like C++, it's a lot more hit or miss.

Edit: I also fully agree with your points about reading code, it's very difficult for me to just "trust" the LLM output. I've been trying to find reliable ways to do that (only reviewing tests, having verification points in the loop, etc.) but the reality is that LLMs, by nature, cannot be reliable, so it's tough.

5

u/remy_porter Aug 05 '26

I’ve dabbled. I think it’s very good at implementing features, but I’m of the mind that a good program is a domain specific language living atop the syntax of your implementation languages. So while it’s not bad at churning out a feature, I’ve never gotten it to build a vocabulary I’d want to use to extend the software.

0

u/hoodieweather- Aug 05 '26

I have definitely had to give it specific naming conventions and terms to use, because it'll pick things that just aren't clear or are too cute and clever.

Fortunately I've also had decent results with correcting it and having it apply the new guidance well, but that does also mean you have to have a good understanding of what it's actually producing, which goes back to the issue of needing to thoroughly read the code.

6

u/remy_porter Aug 05 '26

Naming conventions nothing. I’m talking the way it composes modules and passes data between subsystems. It tends to generate a lot of very large functions and classes with no real sense of composability outside of the feature being implemented right now.