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/
628 Upvotes

132 comments sorted by

View all comments

Show parent comment

139

u/chucker23n Aug 05 '26

those who don’t want to use or interact with LLMs are not required to do so in order to continue contributing to the project.

Yes and no — you'll still have to deal with a codebase that is increasingly not written by humans.

85

u/Raknarg Aug 05 '26

already dealing with this at work, 6 month old project already experiencing the cruft of dealing with dogshit code written by AI I was not there to prevent

49

u/vips7L Aug 05 '26

Got dumped a 100k line pure slop project a few months ago. No one knows how anything works and any change you need to make its 50+ files. Pure dogshit.

36

u/EsIsstWasEsIst Aug 05 '26

I feel like you can´t blame all of that on AI alone.

38

u/Ythio Aug 05 '26

Who accepted to put that in production lmao

14

u/Ozymandias0023 Aug 06 '26

These managers are out her merging all sorts of shit. I keep having to go through their vibe projects and make them actually work, and it gets harder and harder because they keep trying to do more in one go.

Yes, you generated 100k lines of code with your thumb up your ass but it's all written like a college student's first wrben app. Congrats.

16

u/vips7L Aug 05 '26

Not in prod yet, it's not even capable of doing that yet. My job is apparently to get it there. I'm actively looking for a new role.

12

u/MostCredibleDude Aug 05 '26

Vibe coded projects should live in that world exclusively. You want to fix a vibe project? Spend more tokens and pray, don't waste experienced dev time on something where time could be better spent rewriting it manually.

3

u/vips7L Aug 05 '26

Of course, my organization is ran by the incompetent who have no technical abilities.

3

u/ghillerd Aug 08 '26

I'm very much an LLM skeptic, I do use LLMs at work, and I find this comment very funny because 10 years ago people were making the exact same complaint.

53

u/Shoddy-Childhood-511 Aug 05 '26

Not quite.

LLM work must be disclosed. Reviewers send suspected non-disclosed LLM code to moderation, who finds evidence, closes the PR, and could ban them.

Disclosed LLM users need approval, which should requires they do a better job than humans. At least one of the major rustc contributors loves using LLMs, but he writes high quality code, so he'll have no problem here. And he seemingly mentors some other LLM contributors.

Unlike Zig, Rust wants the LLM bug reports, especially for soundness, but they want them rewritten, minimised, and somewhat deduplicated by humans, not just slop reports.

30

u/chucker23n Aug 05 '26

That wasn’t my point.

If you move forward five years, some — disclosed, sure — code will be LLM-written. The further down you go that path, the higher the likelihood that whatever PR a new author is working on interacts with LLM-written code, regardless of how the author feels about it.

10

u/Shoddy-Childhood-511 Aug 05 '26

Alright but your point remains ambiguous:

Yes. It depends upon why someone avoids LLMs. Rust's statement looks useless if you avoid LLMs for labour rights reasons or copyright reasons for example.

Rust claims a middle ground between the Zig and Linux positions, but it's really more like Linux, so yes the FTFY goal reads:

those who don’t want to use or interact with LLMs AI slop and/or code no human understands are not required to do so in order to continue contributing to the project.

Linus might claim this goal for Linux too.

You maybe claiming they'll fail at one or both of these sub goals, but your statement is ambiguous.

It's clear some projects who set forth such a goal shall fail, ultimately drowning in AI slop.

It's not clear rustc or linux will fail here. It's unclear if they'll even have more code that no reachable human understands, because they have that problem already, and the AIs might help the read relevant parts faster. I donno..

As an aside, rust's std shall succeed at this goal, but std is kinda a triviality next to rustc, and thousands of humans read std.

-22

u/ThinkRedstone Aug 05 '26

You talk about LLM like 60s developers talked about FORTRAN. The fact that we can use linear algebra to write good code quicker is a feature, not a bug. If some authors might dislike compiled languages, that doesn't mean the rust compiler should be written in assembly. If the code is good, then for all I care it could come to you as a divine revelation.

→ More replies (2)

1

u/EfOpenSource Aug 07 '26

I mean. If you’re pushing actually quality stuff, zig team would never know. 

They’re probably a bit strict on “no llms for finding bugs”. 

Rusts is written more reasonably. A zig team member would never know if your contributions follows rusts guidelines. 

10

u/drakythe Aug 05 '26

Good point, in the long term that will happen. I think what remains to be seen is if the % of the codebase that is not well understood will also increase. After all, I use the Drupal CMS day in and day out, write custom modules for it, and trouble shoot issues. I didn't write the vast majority of the code in it. But I understand it when I look. I think it is possible for people to use LLMs to generate well understood and understandable code, especially if they take the time to carefully read and review the code.

The issue, of course, is that LLMs just make it easier to generate seemingly coherent code (which is what seemed to force this official policy stance to begin with). While I don't like LLMs, I'm not inherently opposed to code that wasn't written by a human being. But if the code wasn't written by a human, or reviewed by a human, or understood by a human, then we definitely have a problem, and now that is actually possible. Which is a big problem.

15

u/chucker23n Aug 05 '26

I think what remains to be seen is if the % of the codebase that is not well understood will also increase.

Yep. Depends in part on

  • how good is the LLM-produced code? (Where "good" also includes: fits the existing code base's styles, patterns, etc.)
  • how little do developers' skills atrophy if they stop writing code?

7

u/Raknarg Aug 05 '26

already dealing with this at work, 6 month old project already experiencing the cruft of dealing with dogshit code written by AI I was not there to prevent

8

u/Squigglificated Aug 05 '26

Fight back with ai! I use AI to analyze and untangle convoluted code written by humans in a project I inherited. We used to have a lot of weird code before ai too.

I made a disgruntled skeptical naysayer architect reviewer agent to check our codebase for antipatterns and general wtfs, and he finds gold. If you tell Claude the code is made by Gemini it gets really salty, frequently accusing Gemini of hallucinating when it actually isn't.

2

u/matthieum Aug 05 '26

You may have missed the actual policy:

It's fine to use LLMs to answer questions, analyze, distill, refine, check, suggest, review. But not to create.

15

u/chucker23n Aug 05 '26

https://old.reddit.com/r/programming/comments/1vg555b/the_rust_programming_language_is_adopting_a_new/p1uhkeu/

Pre-arranged, non-critical, high-quality, well-tested, and well-reviewed code changes that are originally created by an LLM are allowed, with disclosure.

7

u/matthieum Aug 05 '26

Yes? No?

There's a lot of load-bearing (:p) words in there, so it's very unclear to me what concretely may or may not be accepted.

In particular, what's non-critical? Is this determined depending on the area of the codebase you're in? On whether the code ships to users or it's just documentation? Or in some other ways?

And do all the following words result in text that's indistinguishable from text written by humans?

At the moment it's way too abstract for me to judge whether any AI-generated PR is likely to be accepted, and I wonder if this "backdoor" is really intended to be used...

7

u/oursland Aug 06 '26

These policies are always like this. They're written and reviewed by humans, which are infallible as we all know.