logoalt Hacker News

Rust-lang/rust is adopting an LLM policy

55 pointsby afdbcreidtoday at 5:52 AM32 commentsview on HN

Comments

welitoday at 8:23 AM

I really dislike every kind of rule that says something along the lines "if it's LLM generated you must self-disclose otherwise it is against the rules". Because this quickly leads to witch hunting and easy persecution of IC's under the pretense "it looks generated by an LLM" or they just investigate you and put you on cooldown from being able to contribute while they check for signs of "LLM-generated code". It's no different than laws giving any officer the right to violate your rights based on flaky probable cause "you have slurred speech therefore I will search your car to see any open containers". This can lead to a soft coup by anti-llm individuals which will make communities slowly drift towards a group of elitists that gatekeep any newcomer.

show 5 replies
matheusmoreiratoday at 7:48 AM

The exact rules on LLM generated code submission live here:

https://forge.rust-lang.org/policies/llm-usage.html

https://rustc-dev-guide.rust-lang.org/llm-guidance/writing.h...

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

They clearly put a lot of thought into this and it shows. Huge respect.

> New contributors cannot create a PR using an LLM unless they first talk with a reviewer.

New contributors do not have community connections. I don't know any rust-lang/rust reviewer.

What is the correct procedure for this?

> Harassment is not allowed.

> You may not harass people for using an LLM, regardless of whether or not their use is banned by the policy.

Refreshing take. Not a fan of heavy handed moderation, but I'm still very happy to see that they have this stance given the racism-tier insults I've gotten on forums without it.

I especially like this rule:

> Don’t try to be the police for whether someone has used an LLM. You are not required to “actively look” for whether an LLM was involved.

show 3 replies
minimaxirtoday at 6:01 AM

> Harassment is not allowed. You may not harass people for using an LLM, regardless of whether or not their use is banned by the policy. You must follow the Code of Conduct at all times when interacting with the Rust project.

This policy I like.

show 1 reply
andsoitistoday at 5:59 AM

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

show 4 replies
satvikpendemtoday at 7:35 AM

Good rules but Rust already has AI code in its codebase now.

show 1 reply
piokochtoday at 7:50 AM

The question is: is such policy even enforceable? If someone is "clever" enough to drop em-dashes and some bold highlights how one would know if something is AI generated or not?

show 1 reply