Hacker News

Favorites Setup
Comment by scott_w | original | All AI-generated code should be Open Source
[−]scott_w · 2026-11-15 Sun 17:08 UTC · link
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.