Hacker News new | ask | show | jobs
by anvic 1364 days ago
If you don't want people training models on your code then do not make it public.
1 comments

You can make code public and still legally restrict its use (see: GPL).
GPL doesn’t restrict you from using it as input to a model. It’s just that as the model is a derivative work, it also has to be released under the GPL.
I know this is the main question, but is it a derivative work? Does all the code I write need to be under the GPL because I once read some GPL code and learned from it?

Or does copilot not work like other ML projects and actually copies sections of code?

FWIW GPL was an example, I honestly don’t know whether it applies to the particular case.
Yeah, that'll work lol