News for hackers. Stuff that matters.
Re:NetBSD Bans AI-Generated Code from Commits by jack_riminton on Saturday May 18, 2024 @07:46AM (#40398194)
How is this enforceable?
Re:NetBSD Bans AI-Generated Code from Commits by throw78311 on Saturday May 18, 2024 @08:22AM (#40398410)
This stance is CYA. There's no way to enforce it but by stating explicitly like this, they save themselves possible legal pain.
Re:NetBSD Bans AI-Generated Code from Commits by stusmall on Saturday May 18, 2024 @08:02AM (#40398277)
In the same way a lot of the other rules on that list are. How are they going to know you are familiar with the code you are committing? How are they going to know it is tested?

Sometimes rules are established to set up a common community base line. You are trusted to follow them in good faith. If over time, through code review, questioning or testing, it shows you aren't following the rules then you can't claim you didn't know it wasn't okay.

Re:NetBSD Bans AI-Generated Code from Commits by squarefoot on Saturday May 18, 2024 @07:56AM (#40398239)
Seems impossible to me, although it seems more of some sort of protection in case of legal problems should someone add AI-generated code that turns out to contain copyrighted code by someone else. They must show they're doing something against that, even if that something turns out to be probably useless.
Re:NetBSD Bans AI-Generated Code from Commits by nicklecompte on Saturday May 18, 2024 @08:07AM (#40398316)
The headline of this HN post is misleading, it isn't really a "ban" as such and doesn't have to be "enforceable." These are guidelines whose target audience is good-faith developers who want to make positive contributions to NetBSD.

The comments saying "heh, those stoopid NetBSD maintainers would never know if I slipped a bit of AI into their codebase" are missing the point. The point of the guideline is to say that people who use Copilot/etc for NetBSD development are dumb assholes, so don't be a dumb asshole.

Re:NetBSD Bans AI-Generated Code from Commits by ekianjo on Saturday May 18, 2024 @08:09AM (#40398326)
its not about enforceability its simply about covering their ass
Re:NetBSD Bans AI-Generated Code from Commits by johnisgood on Saturday May 18, 2024 @08:16AM (#40398371)
[delayed]
Re:NetBSD Bans AI-Generated Code from Commits by Madmallard on Saturday May 18, 2024 @07:48AM (#40398206)
yeah doesn't make any sense lol

if you remove comments and shift it to your own style then it's not going to be distinguishable except for sufficiently complex code where your own codebase's unique idioms may show through and the AI doesn't use them

Re:NetBSD Bans AI-Generated Code from Commits by Smaug123 on Saturday May 18, 2024 @07:54AM (#40398228)
Come now, you can have guidelines that aren't enforceable but which you expect people to adhere to. After all, you asked them to adhere to them, and they're (hopefully) not arseholes.
Re:NetBSD Bans AI-Generated Code from Commits by mlinhares on Saturday May 18, 2024 @08:13AM (#40398355)
I doubt the people that think it’s fine to not respect NetBSD ethos are even capable of contributing anything to it so I’d say the project is fine.
Re:NetBSD Bans AI-Generated Code from Commits by Almondsetat on Saturday May 18, 2024 @07:51AM (#40398217)
Sufficiently complex code is the one most susceptible to coming from a proprietary solution
Re:NetBSD Bans AI-Generated Code from Commits by speedgoose on Saturday May 18, 2024 @07:54AM (#40398231)
But are coding large language models in the wild trained on proprietary code bases?
Re:NetBSD Bans AI-Generated Code from Commits by Almondsetat on Saturday May 18, 2024 @08:16AM (#40398373)
If you don't know, it's a yes
Re:NetBSD Bans AI-Generated Code from Commits by speedgoose on Saturday May 18, 2024 @10:09AM (#40399207)
I don’t believe in unicorns, but maybe they exist.
Re:NetBSD Bans AI-Generated Code from Commits by simion314 on Saturday May 18, 2024 @09:51AM (#40399080)
>But are coding large language models in the wild trained on proprietary code bases?

There are source availleble projects on GitHub but BSD license is not compatible with GPL and for sure there is ton of GPL code in the LLMs.

The only solution I can think of is too train LLMs on BSD compatible code to be used on BSD projects, GPL compatible code to be used on GPL projects etc.

See below link were copilot was caught stealing code and prove that it is memorizing and reproducing rather then learning concepts and then generating original code.

https://news.ycombinator.com/item?id=27710287