News for hackers. Stuff that matters.
Re:All AI-generated code should be Open Source by waximabbax on Sunday November 15, 2026 @10:54AM (#50507867)
By this logic, shouldn't any code using an open-source framework or language also be open source? Even before AI, devs learned from Stack Overflow and plenty of open source code.

You're confusing writing code with software engineering. Devs never just wrote code, they took ownership of the outcome. Business owners put their money on the line for product decisions.

To say that just because devs or founders use AI to write code, the code is no longer their intellectual property is ridiculous. Humans take responsibility for the outcome and are willing to accept the losses. AI can't do that. AI doesn't have any stakes in the output it generates, humans do.

Re:All AI-generated code should be Open Source by Arubis on Sunday November 15, 2026 @11:00AM (#50507933)
A fair number of FOSS licenses were interpreted this way. The popular migration away from GPLv3 (might’ve been v4?) towards MIT, LGPL, etc had more than one cause (a huge one was the rapid sectoral commercialization; the decline of RMS’s reputation may have contributed, etc), but a big one was the potential interpretation of new GPL as being overly viral and “license-infecting” only slightly related software assets rather than wholly derivative ones.
Re:All AI-generated code should be Open Source by adwn on Sunday November 15, 2026 @11:16AM (#50508081)
For me, it's the latter: the GPL feels overbearing and patronizing, and I don't want some dependency to dictate under which terms I can release my own software. I pay the community back by using MIT whenever I open-source something. This feels more "free" than RMS's view of freedom.

I know that many people would disagree with me on this, but thankfully I'm free to choose what license I consider "free".

Re:All AI-generated code should be Open Source by jasonlotito on Sunday November 15, 2026 @02:06PM (#50509666)
> I don't want some dependency to dictate under which terms I can release my own software.

Then you shouldn't release it under the MIT license, which has restrictions and requirements on speech. You have to release it to the public domain. Pretending MIT doesn't dictate terms under which you can release your own software is just a fantasy.

Re:All AI-generated code should be Open Source by maxhille on Sunday November 15, 2026 @02:11PM (#50509724)
From the developer's perspective the difference between those licenses isn't that big when you open source your stuff anyway.

But please don't forget about the users. Only the copyleft licenses guarantee (legally) that the user gets to enjoy the freedoms, too.

Re:All AI-generated code should be Open Source by corysama on Sunday November 15, 2026 @02:22PM (#50509803)
RMS’s view of freedom is that devs should restrict themselves for the sake of the freedom of the users. AFAIK, that’s the explicit goal of the GPL.
Re:All AI-generated code should be Open Source by coldstreamflowi on Sunday November 15, 2026 @08:15PM (#50512830)
Yep, power for the masses not the few.
Re:All AI-generated code should be Open Source by palata on Sunday November 15, 2026 @03:04PM (#50510166)
Genuinely interested: why MIT and not, e.g. MPLv2?

MPLv2 is copyleft, but not "viral": so you can use an MPLv2 dependency just like if it was MIT, but if you modify it, you have to distribute the changes.

Re:All AI-generated code should be Open Source by solatic on Sunday November 15, 2026 @04:03PM (#50510729)
MPLv2 effectively prevents large companies from vendoring dependencies, since if you privately patch the vendored MPLv2 dependency, you are no longer compliant. Instead the large company would need to have an open-source fork of the MPLv2 dependency, with the patches applied in the open. In many large companies, getting any kind of public repository is practically impossible, so MPLv2 is unusable in those places.

Especially in a modern day and age where agents are more powerful when they can quickly privately vendor a dependency, patch it, and move on, with zero political ceremony or fuss, MPLv2 feels like an anachronism.

> except if they want to benefit from patching code they didn't write without contributing back. But I don't think we should encourage that.

The spirit of free, open-source software is that you are free to do as you like with the software, no matter who you are. It somewhat boggles my mind that people will hold up licenses like GPL that do not forbid military use, it's totally fine if you deploy GPL software in war, because we wouldn't dare tell you what you may or may not do with the software.... unless you want to make changes to the software, in which case, see you in court!

Re:All AI-generated code should be Open Source by palata on Sunday November 15, 2026 @04:53PM (#50511230)
> In many large companies, getting any kind of public repository is practically impossible, so MPLv2 is unusable in those places.

If you don't modify it, it behaves exactly like MIT. If you want to modify it but not maintain a fork, you can contribute upstream. Or you distribute the sources, which does not require a public repository.

But mostly, why would I care about companies making profit by using my code privately? As an individual, what I care about is being able to fix the devices I own. And copyleft helps with that.

> unless you want to make changes to the software, in which case, see you in court!

Right. So you don't really understand how GPL works, do you? GPL requires you to distribute the sources to the users. It does NOT, at all, require you to make the changes publicly available. So GPL works really well for the military: if you sell a product to the military that contains GPL code, you just have to distribute the sources to them. It's actually better for the military as well! It's better for all the users.

Re:All AI-generated code should be Open Source by stateoff on Sunday November 15, 2026 @05:43PM (#50511667)
However: from my understanding the users are free to publish the source code and any NDA that would prevent this is not compatible with GPL. Probably not an issue with the military but may still affect the businesses that write the code.

Also you can not mix propriety code that you don't own with GPL which is also a showstopper in many cases.

Re:All AI-generated code should be Open Source by palata on Sunday November 15, 2026 @07:09PM (#50512345)
> from my understanding the users are free to publish the source code

Yes that's correct. Which makes GPL viral, but not MPLv2. My point was that while I understand how GPL may be too much for companies, I don't think MPLv2 would be.

I have been in big companies that were fine with using (properly) LGPL and MPLv2, by the way.

> Also you can not mix propriety code that you don't own with GPL which is also a showstopper in many cases.

I am not sure I understand that. You can mix proprietary code with GPL, the licence has nothing against that. What you cannot do, though, is distribute proprietary code you don't own and don't have a right to distribute. But that's independent from GPL.

Re:All AI-generated code should be Open Source by pcthrowaway on Monday November 16, 2026 @12:03AM (#50514242)
I'll argue the case for permissive code not requiring users to redistribute changes.

Say you use some software to provide data you host to end-users. Say that software relies on some system package or architecture that isn't available on your server, so you make minor changes and rebuild it to run.

Now if you wanted to make a proper change to the software to accommodate different target architectures/packages, you'd do things very differently; you'd write some check and delegate to the provided apis based on that.

But you didn't do that, you did a find and replace.

This has no value to anyone else, and it also reveals internal information about your system that you may not want to reveal.

Re:All AI-generated code should be Open Source by Aurornis on Sunday November 15, 2026 @03:00PM (#50510136)
> towards MIT, LGPL, etc had more than one cause (a huge one was the rapid sectoral commercialization; the decline of RMS’s reputation may have contributed, etc)

This conversation has come up a lot, and I’m always amazed at how hard it is for people to accept that maybe the MIT license (and other permissive license) people actually want the MIT license terms and there’s no more complex reason behind it.

I’ve read so many rationalizations that frame it like GPL was the default or right choice and then something happened that made people defect away from it. Blaming RMS is common.

I think the more honest read is that people and groups decided that MIT matched their goals and decided to use it. Not that they defaulted to GPL and then found reasons to leave it.

Re:All AI-generated code should be Open Source by exe34 on Sunday November 15, 2026 @11:01AM (#50507940)
> Devs never just wrote code, they took ownership of the outcome. Business owners put their money on the line for product decisions.

Does the same thing apply to Mickey Mouse? Would you say it's fine to use Disney characters in my own creations, as long as I take ownership of the outcome and put my money on the line for product decisions?

Re:All AI-generated code should be Open Source by waximabbax on Sunday November 15, 2026 @11:12AM (#50508039)
I am not saying that taking responsibility gives you the license to violate copyrights.

My point is that devs have always learned from open-source code and the internet, then used that knowledge to write their own proprietary software. Why should it be any different when AI learns from the same sources and produces new code?

Re:All AI-generated code should be Open Source by moritzwarhier on Sunday November 15, 2026 @11:04AM (#50507968)
[delayed]
Re:All AI-generated code should be Open Source by 127 on Sunday November 15, 2026 @11:05AM (#50507982)
Whether if using ML models as a form of IP laundering, is legal or not, still seems to be an open question. It's not ridiculous at all. If I lossy-compress Harry Potter, then unzip it in a way that mixes some words, is that fair use? Should I be financially rewarded for my "work"? Is this work now mine? If it is legal, why not just go through every book in this kind of automated fashion and start selling them as my own?
Re:All AI-generated code should be Open Source by waximabbax on Sunday November 15, 2026 @11:17AM (#50508084)
My question is still the same. Human devs have learned from open-source projects, books and code on the internet then used opensource frameworks to create proprietary software logic.

Now just because same devs use AI to create code doesn't mean they should be banned from creating or owning a proprietary software.

Re:All AI-generated code should be Open Source by 127 on Sunday November 15, 2026 @11:22AM (#50508134)
Given how agents are already able to easily decompile software, this could be an entirely moot point.
Re:All AI-generated code should be Open Source by done_lurking on Sunday November 15, 2026 @02:08PM (#50509690)
I haven't heard of this. When did this happen?
Re:All AI-generated code should be Open Source by Tomte on Sunday November 15, 2026 @03:20PM (#50510301)
Over the last months, see Reverse Engineer Anything and similar p5ojefts.

The LLMs don‘t really reverse software though, instead they have gotten good at driving Ghidra and other tools, which has the same effect.

Re:All AI-generated code should be Open Source by davemp on Sunday November 15, 2026 @11:52AM (#50508409)
I don’t see why a person who did not use their own creativity to produce code should be given copyright for it.

In fact, current US law says AI output cannot be copyrighted.

Re:All AI-generated code should be Open Source by scott_w on Sunday November 15, 2026 @12:08PM (#50508561)
This needs to be addressed as separate issues.

Open source code: reproducing and publishing the code without following the license is a copyright violation. Instruction a computer programme to do the same thing should still be a copyright violation. Since this is the internet, I need to state the obvious: trivial code (defined on a case-by-case basis) is not copyrighted.

Books: the author expects you to reproduce their work, as long as it’s not another book. You wouldn’t get many sales if you sued someone for using the things you taught them.

The internet: actually the same as open source code. StackOverflow enforces a specific licensing clause to allow people to use code you provide. People who write posts that say “use this code to fix this problem,” are implicitly providing a license, too.

I don’t think using an LLM to generate code should remove its copyright but it also doesn’t remove the responsibility to not violate copyright.

Re:All AI-generated code should be Open Source by deniska on Sunday November 15, 2026 @12:26PM (#50508750)
The difference is the scale. Yeah, some mice and small birds are eaten by bigger predators. Doesn't mean that introducing cats to that ecosystem won't be disastrous.

Same with the ecosystem of creative work. Will some humans be inspired by my code or other artifacts? Sure. Does it mean it's fine to introduce an automated 1000 times more effective plagiarism machine to that ecosystem? Probably not. Certainly not if avoiding destroying the ecosystem is your consideration.

Re:All AI-generated code should be Open Source by carllerche on Sunday November 15, 2026 @11:23AM (#50508138)
What is transformative enough to be legal is fuzzy. At the end of the day, it only matters how the courts rule. I do know that the amount of actual mechanical change has less bearing on determining if the work was transformative. There are cases where you can copy 90% of a code base verbatim legally, and there are cases where no code is copied verbatim and it is a copyright violation. What you are describing most likely would not fly in court.
Re:All AI-generated code should be Open Source by throawayonthe on Sunday November 15, 2026 @11:27AM (#50508167)
more like

By this logic, shouldn't any code using a copyleft framework or language also be copyleft?

and yes duh

Re:All AI-generated code should be Open Source by g-b-r on Sunday November 15, 2026 @12:00PM (#50508485)
> By this logic, shouldn't any code using an open-source framework or language also be open source? Even before AI, devs learned from Stack Overflow and plenty of open source code.

No, that's not how copyright works.

And I won't comment the rest.

Re:All AI-generated code should be Open Source by goodpoint on Sunday November 15, 2026 @04:37PM (#50511063)
> shouldn't any code using an open-source framework or language also be open source

Yes.

Re:All AI-generated code should be Open Source by jimbokun on Sunday November 15, 2026 @05:51PM (#50511744)
Those are not the criteria judges use to determine copyright decisions.