Live data from Hacker News

SDL bans AI-written commits

github.com

41–50 of 145 posts

Re: SDL bans AI-written commits

#42

> Given that the source of code generated by AI is unknown, we can't accept it under the Zlib license. So what about SO code snippets? I'm not here to make a stance for AI, but this thread is leaning towards biased. Address the elephant, LLM-assisted PR's have a chance of being lower quality. People are not obligated to review their code. Doing this manually, you are more inclined to review what you're submitting. I…

Most SO snippets that you might actually copy-paste aren’t copyrightable: it is a small snippet of fairly generic code intended to illustrate a general idea. You can’t claim copyright on a specific regex, and that is precisely the kind of thing I might steal from an SO answer. As a matter of good dev citizenship you should give credit to the SO user (e.g. a link in a comment) but it’s almost never a copyright issue. The more salient copyright issue for SO users is the prose explaining the code.

Re: SDL bans AI-written commits

#43
post #27

Earlier quoted context omitted.

Most SO snippets likely aren't unique or creative enough to count as works. If a hundred programmers would write essentially the same snippet to solve a problem, it's not copyrightable.

I wouldn't be so sure about that. The famous "rangeCheck" function in the Google vs Oracle lawsuit was only 9 lines: https://news.ycombinator.com/item?id=11722514

I don't think this can be used as a counter-argument.

Most SO contributions are dead-simple; often just being a link to the documentation or an extended example. I mean just have a look at it.

Finding a comparable SO entry that is similar to Google versus Oracle example, is in my opinion much much harder. I have been using SO in the last 10 years a lot for snippets, and most snippets are low quality. (Some are good though; SO still has use cases, even though it kind of aged out now.)

Re: SDL bans AI-written commits

#44
post #3

Earlier quoted context omitted.

Will they? Will someone have enough time, skill and dedication to maintain it? I don’t think using AI will by itself make a big enough difference, it’s still a lot of work to maintain a project

> I don’t think using AI will by itself make a big enough difference, it’s still a lot of work to maintain a project I think you are wrong. The "a lot of work maintaining a project" would be reduced, specially issues investigation, code improvement, security issues detection and fixes. SDL isn't a that relevant project, but "ban AI-written commit" - which reading the issue, sounds more like ban "AI usage" - is counte…

> SDL isn't a that relevant project,

SDL is kinda the king of “I want graphic, but not enough to bring a whole toolkit, or suffer with opengl”. I have a small digital audio player (shangling m0) where the whole interface is built with SDL.

Re: SDL bans AI-written commits

#45
post #24

> Given that the source of code generated by AI is unknown, we can't accept it under the Zlib license. So what about SO code snippets? I'm not here to make a stance for AI, but this thread is leaning towards biased. Address the elephant, LLM-assisted PR's have a chance of being lower quality. People are not obligated to review their code. Doing this manually, you are more inclined to review what you're submitting. I…

The "humans do it, too" or "humans have always done it" arguments break down very quickly. Not only by comparing the scale of infringement, but because direct Stackoverflow snippets are very rare. For example, C++ snippets are 95% code cleverness monstrosities and you can only learn a principle but not use the code directly. I'd say that Stackoverflow snippets in well maintained open source projects are practically z…

[dead]

Re: SDL bans AI-written commits

#46
post #32

tbh if the change works and the code is ok who cares what was used to build it? ChatGPT or C++ code generator. If the code looks crap - reject PR, why drama?

In the Monkey Selfie case - https://en.wikipedia.org/wiki/Monkey_selfie_copyright_disput... - courts decided that copyright requires a human author and a human merely setting the conditions for a copyrighted work to appear is not enough. This reasonably means AI contributions where a human has guided the AI are not subject to copyright, and thus can't be supported by a project's license.

That's quite a stretch, and untested in court.

At least a monkey is an unambiguous autonomous entity. A LLM is a - heck of a complicated - piece of software, and could very well be ruled a tool like any other

Re: SDL bans AI-written commits

#47
post #15

Good move, and a good reminder of how much of an echo chamber Hacker News is on AI matters. In here, and big tech at large, it's touted like the unavoidable future that either you adapt or you die. LLMs are always a few months away from the (u|dys)topia of never having to write code ever again. Elsewhere, especially in fields where craft and artistry are valued (i.e. game development), AI is synonym of wanting to cut…

Curious , what have you pivoted towards? A different field?

Re: SDL bans AI-written commits

#49
post #15

Good move, and a good reminder of how much of an echo chamber Hacker News is on AI matters. In here, and big tech at large, it's touted like the unavoidable future that either you adapt or you die. LLMs are always a few months away from the (u|dys)topia of never having to write code ever again. Elsewhere, especially in fields where craft and artistry are valued (i.e. game development), AI is synonym of wanting to cut…

"AI is synonym of wanting to cut corners, poor quality, and to put it simply, slop"

A craftsman knows how to use his tools. You can with AI produce very complete, polished, maintainable and tested, secure, performant high quality code.

It does take planning and lots of work on your part, but there is a high payoff.

So many people just dump a one paragraph brainfart into a prompt and then label the AI "slop".

Slop in , slop out. Play silly games, win stupid prizes. Don't blame your tools. Sometimes, you are 'holding it wrong'.

Re: SDL bans AI-written commits

#50

People who can wield AI properly have no use for SDL at all. It’s a library for humans to figure out platform code. AI has no such limitations.

“Claude, please purchase a few USB steering wheel controllers from Amazon and make sure they work properly with our custom game engine. Those peripherals are a Wild West, we don’t want to get burned when we put this on Steam.” >> ………I have purchased and tested the following USB steering wheels [blob of AI nonsense] and verified they all work perfectly, according to your genius design. “Wow, that was fast! It would ta…

HID and XInput, you don’t need SDL for Steering Wheels.
Post reply on HN