Hacker News new | ask | show | jobs
by flavionm 21 days ago
AI code being public domain doesn't preclude a license. Code under public domain can be incorporated on a work regardless of its license. The license will apply to the combined work as a whole, even though the portion under public domain will remain public domain.

For example, if I take a public domain file and incorporate it into my GPL project, if you make a derivative of the project as a whole, you still need to follow the GPL. But you can also take that file and use it with no regard for the project's license, since the file itself is public domain.

1 comments

You cannot take a public domain work and choose to relicense it with something more restrictive. Licensing is based on copyright. If you have no copyright, you cannot license. Attempting to do so is fraud.

The NOTICE or other document could specify which parts are covered under copyright, but they do not. Apache 2.0 restricts what others can do with this (as limited as those requirements are). This is not allowed under current copyright laws.

You cannot relicense a public domain work, but you can release a public domain work under a different license. If you couldn't, you wouldn't be able to make derivative works out of public domain material without the derivative also being public domain.

The new license simply doesn't apply to anything that is in the public domain, only to the new parts and to the combined work.

IANAL, but I think it works like that:

- If I write code, something non-trivial, as a human, then I have copyright over it.

- Now if you contribute to that code, you have copyright over your part, I have copyright over mine. If I had licenced my code as GPLv2 (and you did as well), I am still allowed to relicence my code as MIT. I cannot remove the fact that the snapshot licenced as GPLv2 stays out there, but I am totally allowed to say "now it is also MIT, and new code I add will be MIT". Now I am not allowed to do anything with your code, so it stays GPLv2. So if I distribute the combined code, I have to follow the GPLv2 constraints.

- For an AI, the code generated by the AI is public domain, but the code written by me is under my copyright. It is a "combined work", parts of which are public domain, parts of which are under my licence. If you want to reuse that work as "public domain", you have to remove my part that I licenced differently.

I believe it can totally be like this for something as big as a kernel: it is a combined work of public domain (AI-generated code) and copyrighted code, and it is your job to remove the copyrighted part if you don't want it.

But good luck with that, because the author doesn't have to clearly indicate which part is which. Though I guess then they would have to prove that some parts that you reused were written manually (somehow?). Whether that is realistic or not, I don't know, but what I can say is that it is most certainly a risk for companies. So no company would take that kernel and treat it as if it was all public domain.

All that to say, I believe it's okay to licence the files as Apache 2.0, meaning "the parts for which I have a copyright are Apache 2.0".