by HumanReadable · 4y ago · 0 comments
Any time someone invents something new and incredible, there's always a crowd of negative nancies eager to discredit and explain why the invention is nothing new and a detrement to society.
I don't understand why someone would willingly share their code on github where it is publicly available just to complain when others make use of that knowledge.
'co-pilot just sells code other people wrote' is such a ridiculous understatement of what co-pilot does. Instead of marvelling at the human ingenuity that went into creating it, they sneer at the audacity of openAI to do something without first asking their permission.
Just because you’ve made something cool doesn’t give you the right to harm others in the process.
If MS or OpenAI don’t think this is the case then they should have also included their private repositories.
Is fair use on a massive scale still fair use? Courts generally think so, otherwise Google would have been out of business a long time ago.
On the other hand, if you copy from private repositories, it quickly gets into the territory of stealing trade secrets.
Also, the open source community has far less leverage to apply pressure to Google than it does to GitHub. We may be able to do something about this.
The whole point of fair use is that the license doesn't matter. You can have a license that says I'm not allowed to use what you wrote for any purpose ever and I can still use it under fair use.
It's just automating the copying and pasting (and slight reworking) of boilerplate code that would normally take me much longer to do, especially when I am working with a language I'm less familiar with but is necessary for my stack. I've literally never seen it suggest code that is more or less almost exactly what I would have come up with given a lot more time. In essence, it eliminates tedium- exactly the point of all of programming: Work elimination.
I have two questions:
1. Why have licenses, then?
2. What if I just use leaked sources of closed source software and call it fair use?
The default under copyright law is that any substantial copy is infringement.
A license is a legal document that grants someone permission to use a work that they otherwise would not have had.
However the law also gives its own permissions to use a work - it defines what is unlawful infringement and what is lawful fair use.
The code snippets that copilot generates look more like fair use than infringement. They are small, adapted to the destination context, and usually not direct copies of one source but more of an average of many different sources. And usually the programmer does not keep the suggestion that copilot suggests unmodified - the programmer does their own editing of the snippet afterwards to further tune it to the surrounding context.
2. What if I just use leaked sources of closed source software and call it fair use?
As pointed out upthread, if it the source code is leaked then there may be trade secret protections. The GPL specifically allows the code to be posted online, so by design it is not secret.
I do think there are ethical questions around whether it's right for google to digitise physical books without the permission of the authors, and keep them on their servers and make money from them without recompensing the authors. That's something an individual would not get away with doing, so it seems wrong that it's OK for google.
The SCO vs IBM lawsuit was over only a few lines of code, after all.
I cant use a derivative of Mickey Mouse in my product, even if I change his colour and give him a hat, even if these changes were made by an AI. Why would it be different for code? I cab only use Mickey Mouse as fair use if its done for a specific barrow set of proposes (satire, news reporting etc).
I don't think that will happen but it might be interesting if it did.
I would like to point you to this: https://twitter.com/mitsuhiko/status/1410886329924194309 HN Comments at the time: https://news.ycombinator.com/item?id=27710287
This is the end of Microsoft's actual calculation.
All they could do is filter by the LICENSE file in the repo.
Unfortunately for them, by law copyright and license are determined by the authors and merely represented by a LICENSE file, which could be lying about both.
The court isn't going to accept that excuse when this goes to trial.
It's hard enough for us human to find our way in this mess, I've little hope for an AI.
But maybe it's just the first step. The final step being able to sell an AI that understands Copyright management. I'm sure there is a big market for that.
Permissive or not doesn't matter. Public Domain or not is what matters. Permissive licenses still require you to propagate the copyright notice, which Copilot strips.
https://jtip.law.northwestern.edu/2021/05/28/copyright-issue...
However, even if infringement occurs during machine learning, training AI with copyrighted works would likely be excused by the ‘fair use’ doctrine.[ii] For example, in Authors Guild v. Google, Inc.[iii], Google had scanned digital copies of books and established a publicly available search function. The plaintiffs alleged that this constituted infringement of copyrights. The Second Circuit held that Google’s works were non-infringing fair uses because the purpose of the copying was highly transformative, the public display of text was limited, and the revelations did not provide a significant market substitute for the protected aspects of the originals.
Lots of companies do not put their code in public repositories, granted I understand the perspective of violating a license, but the point is if you don’t want your code used by someone else (even with the risk of not getting credit, don’t know why that matters) then don’t make your repo public period.
To that point, what’s to stop GitHub from making a policy that states: “All public repositories will be utilized in AI training”?
The point is that it’s not respecting the license, not just that it’s not giving “credit”. If I release code under a GPL license, I damn well don’t want someone using that code under a license that’s not GPL-compatible, no matter how it got there.
def average(*numbers):
return sum(numbers)/len(numbers)
if not is it because it is too small? what’s the minimum line number that ownership kicks into? what if I change the function name and the variable names?That's as simple as that.
Isn’t there already precedent in other forms of IP, such as chord progressions in music, sentence length in literature, etc?
There are no rules about the form of the code itself that governs whether or not someone owns it. Common sense applies. Sure you could "steal" very small, common, code snippets and get away with it; but that doesnt make it less wrong.
When a commercial entity explicitly does it, however, some times we can catch them. Like if they do it through algorithms that we more or less know how they work - i.e. the algorithm is using advanced control flow logic to copy and paste from it's training data set and copyrighted material is in that data set
OSS knights: THE LICENSE.
MS: Aight, I guess we have a few lines of hq src to help out with…
Github: Same.
Other OSS people: We really don't care one way or the other.
As long as the word of the lincense was upheld for another 2 weeks before it ceased to matter for the rest of all time.
Jesus fucking christ. People. I get that oss licensing is dear to the collective hn heart – but, at best, it's completely irrelevant in regards to where this will inevitably lead, regardless of current questions/issues with license violations. You can (if all the repos of MS and Github are not enough to train this thing on, which is a laughable idea) even fucking buy additional source code if that's what it takes to strengthen Copilots legal foundation. The cost is insignificant. People will be happy to sell for super cheap. It's a non issue.
Why do you wilfully choose to be distracted instead of facing and thinking about the future together?
Something being cool doesn't exempt it from discussion of its ethics and certainly doesn't exempt it from legal consequences. Often what people call "disruption" is often just exploiting resources/people/their work in unsustainable ways until oversight is introduced.
If CoPilot is copy/pasting large amount of code with unknown licenses, that is a large and real risk for users aside from violating open source projects licenses.
Even including something banal like Linux is already problematic since it's GNU licensed, which by extension makes your entire project GNU licensed and you can't keep the exclusive rights to it.
> since it's GNU licensed, which by extension makes your entire project GNU licensed and you can't keep the exclusive rights to it
This is incorrect. Including GPL code in your product cannot automatically relicense your code. It’s just a copyright violation if your product’s license isn’t GPL-compatible and you don’t abide by the GPL.
Indeed. The heist in Ocean's Eleven was cool, but it was still theft.
Because they shared the code under a license, and they have the right to complain if people use that code but don't follow the license.
For example, what happens if Github Copilot spits a copy of some copyrighted code verbatim? Is laundering open source code through a machine learning model a loophole for not having to follow the license?
Often following the license is as simple as giving credit to the original author.
There are tools that will analyze a codebase and identify where chunks of varying size seem to come from. Mostly to determine if the code is encumbered by problematic licenses, but also to detect where the programmers may have borrowed code from.
If memory serves, some of these companies also have closed source codebases in their database, enabling them to detect if unpublished code has been re-used.
The times I've used this in due diligence it has rarely been a deal-breaker when we do find large chunks of code that may be problematic. For instance due to licensing terms that are not acceptable. You just make a note of it and have them rewrite the code before the transaction can take place. (Or you figure out if you can accomodate the license terms).
It's as if Microsoft were banking on the fact that most violations will be unnoticed
People don’t have a problem that AI is being used in some form to provide the service.
The complaint is pretty clearly that code is being lifted from repositories without attribution or compensation, and being redistributed into other applications.
How impressive the work behind copilot is or is not really isn’t relevant.
If I modify them I know what I have to do, but Co-pilot is somewhere in-between the two, it's abstracting knowledge from these codebases. We don't yet know how to deal with it properly, but this will change with time, that's why having these conversations are important.
I think that AI models will gain a new legal state, whatever they learn will be considered original work if it's not repeating non-trivial work 1:1.
But that's basically all copilot does? It's just a fancy compression system with a search function.
This is where some modest taxation comes in. To reallocate a slice of the output of value creation to its actual source in a rough kind of way wherever more direct compensation isn't feasible.
You clearly don't know how copyright around sampling works. Yes rappers are paying shitloads to previous generation musicians for samples they use.
I was with you until this statement. The vast majority of society consumes, but doesn't create something new in the process. I'm bewildered as to why you think taxation is a solution rather than a disincentive towards creating. As far as compensating the giants upon whose shoulders most stand, there are plenty of vehicles for that: royalties, patents, copyrights, pensions, awards and prizes, paid fellowships, etc. These are relatively easy to calculate and write a contract for.
No, I won't, because Disney has fancy lawyers, the average open source developer hasn't. What you are saying is: Screw little people, let M$ make their money.
Either copyright is for everyone, or for no one. I prefer the latter, but this is not the world we live in.
It should not be different, or if anything, it should be worse to punish people with less resources. But here we are.
I once heard this quote, "English justice is open to all, in the same way that The Ritz [very expensive hotel] is open to all."
That’s all I ask — if you use my code, give me credit.
Stealing my code to train your bot — which will replicate portions verbatim! — is no different whatsoever than the casual plagiarist that copies and pastes a novel snippet manually.
Its absolutely my legal and ethical prerogative to complain about people stealing my code by failing to respect the license under which it was freely provided.
Reselling other people's content like this without attribution (which, is a pretty mild form of payment) is not nice. But at least you now have one more reason in the list of reasons why Microsoft acquired Github: to be able to launder their open source contributions and resell them.
There are real, serious, and genuinely interesting issues to be discussed regarding Copilot. It is neither "just selling code that other people wrote", nor is it something that we should applaud merely because it demonstrates "human ingenuity".
The comments here regarding this are honestly a total dumpster fire. It's mostly a bunch of paper-thin hot takes, either:
- The blatantly stupid "you willingly shared your code so why are you complaining that one of the world's biggest companies is now hoovering up code from your carefully-selected open-source license and reselling it as a service!!!"
- The blatantly lying "I have literally never looked at any other computer software while developing any obviously anybody who has ever seen other source code is a plagarist"
It's dumb because there is an actual interesting discussion here but I guess we're not going to bother having it.
I actually didn't intend for my comment to be an argument in favour or against, and I am a bit surprised it is the most upvoted of the section.
I agree that there's a pretty interesting discussion to fair-use and the limits of copyright, and that my original comment was not conducive to having that discussion. In my defense, neither was the tweet this thread is about!
Demanding that the law of a country should be followed by another is totally no sense. They can agree, make agreements about it, and even take legal action to the Highest court, so it could be evaluated, but using your nationality as an argument of what you can do, it's just plain wrong.
I always find it weird how people respond to my comments. Why didn't you check what the US law is like for source code? A lot of places have similar laws around source code, primarily in the West because of efforts to normalise laws across countries, driven by US efforts. And other countries? Well, it's the same for any kind of IP. Either the country has strong IP law and you have the resources to pursue an issue or not and you can't do anything about it.
This is nuts. How can anbody be expected to both know that you’re German and German law when you post on an international website?
Or is this a German law that exists to prevent other Germans from doing things but that the rest of the world scoffs at?
This is the legal expectation in general, not just for software - you can't just come across a design for a neat widget somewhere and start using it in your product, there's probably both copyright and patent on it. Software isn't special. Not everything in Github can be copied into your code verbatim.
I put a fucking license on it so that it doesn't get abused by some fucking corporation. Jesus Christ, it's not hard to understand.
I don't make Free software so that Microsoft can sell it to people for use in proprietary projects.
But the world we actually live in is one where corporations have copyright, and individuals don't.
That's what irks people, I think rightly.
People like you should understand that publicly available code doesn't mean "do whatever you want" code.
The majority of publicly available code hosted on Github as a license that tells you what you can and what you cannot do with that code.
If someone uses this code without respecting the license, authors have the right to complain and even legally enforce the license if they want.
Now, you should know that there's nothing "cool" to take other people's work without permission.
That's likely the crux of the issue. If you do it right, you can steal from other people and get rich. Meanwhile, those same people (whose work was stolen) may be left out in the cold no matter how original, creative, hardworking etc they are.
because it's not unconditional, there are often licence terms of usage, and copilot is potentially laundering those.
For other individuals to collaborate, to make the software available to other people, etc. Certainly not for github's profit and much less for the benefit of github's customers who will have access to open code that violates license agreements.
It’s a product by a business. Why is that not open to criticism?
Quake's source code is GPL.
There are plenty more if you're willing to look.
If I, as a human, go to a public repository on Github and copy/paste a non-trivial 200 line code snippet into my proprietary code base I have to abide by the license of that original code, even if I slightly modify it. I don't see how this cannot be true for Copilot. I'm sure the legal folks at Github have thought of a response though, you could e.g. argue that the snippets produced by Copilot are not affected by the copyright of the original author as they do not reach the required treshold of originality. Seems rather shaky for me though.
It is not true. Whenever there is something really useful, everybody is happy, and while of course they always are some nansayers, they're very few.
However, when you do something controversial, you can expect to hear criticism. You are of course free to dismiss that criticism, but when a lot of people are telling you what you are doing is unethical, maybe it's time to stop and think about it.
One big reason I support it is because it grants me the right and ability to change things I need/want to change.
Moreover it is possible to BOTH marvel at the human ingenuity that went into making copilot AND disagree with their methods. Some things can be marvelous and wrong at the same time.
Sorry for the unproductive tone of this comment, but there's something about the attitude of this tweet that really grinds my gears. Any time someone invents something new and incredible, there's always a crowd of negative nancies eager to discredit and explain why the invention is nothing new and a detrement to society. I don't understand why someone would willingly share their code on github where it is publicly available just to complain when others make use of that knowledge. 'co-pilot just sells code other people wrote' is such a ridiculous understatement of what co-pilot does. Instead of marvelling at the human ingenuity that went into creating it, they sneer at the audacity of openAI to do something without first asking their permission.
— This comment brought to you by HN-Comment-AI ©
Although I have to say the use of the phrase 'negative nancies' shows that even the best machine-learning algorithm still comes up with unlikely to occur in real life text.
We fought this battle over a couple of decades with remix culture (“you stole that line/beat out of my song!”) and the world is better because the over-clingers lost.
There is no shortage of reasons not to like copilot, but I don’t consider this one of them.
Think about how Napster was treated back in the day, or torrent websites. You pay to access some copyrighted content. Is it legal ?
Not bad for everyday use - I like "nattering nabobs of negativism" (as scripted by William Safire), but it is really a bit over the top.
Copilot is NOT SELLING coed other people wrote, it is simply acting as a curator to show you all the solutions people HAVE WRITTEN for free.
Copilot does NOT write entire programs, it's simply an assistant. And there is not much copyright you CAN apply to 3-4 lines of generally understandable code.
I've used Copilot and am actively paying for and I have not seen many cases where it's generating bad code. It's only there to remove boilerplate and common problems, not there to write entire applications.
Why are people getting so salty?
Github knows better, can do better and should.