Hacker News new | ask | show | jobs
by beatboxchad 50 days ago
Afaik LLM-generated code cannot be copyrighted in the USA, and therefore cannot be licensed. It's automatically public domain. This makes it incompatible with most OSS licenses. Several of my personal favorite projects have already prohibited LLM-generated code. That doesn't mean the frequency and quality of contributions won't still increase. I use my LLM harness for all kinds of grunt work that would have sucked up hours. Git surgery, code exploration, PM. But we don't need a whole new paradigm for a brave new world. I've heard that'd boil the sky and poison the water anyway. Too expensive.
2 comments

This is not true... many prominent OSS projects based in the US currently use LLM-generated code, including the Linux kernel, many distros, BSDs etc.

Remember that if there is a complaint such as copyright infringement, that still must go through the normal court process. Only the copyright holder can sue, and not everyone chooses to do so.

They must prove how/why the code is infringing, and then a judge/jury makes a subjective determination on things like fair use, transformation etc. to determine just how similar/different the code is, how obvious it is, if a human is likely to have come up with the same code independently, if there are any monetary damages to collect/etc.

There is no blanket law that says LLM-generated code cannot be copyrighted. And how the model got the code in the first place is largely irrelevant here.

The context around copyright of LLM code, at least in the US, is currently more complicated than clear. See for example [0] and the comments on the article it's responding to.

[0]https://news.ycombinator.com/item?id=49354482