713 points · by joemanaco · 4y ago · 815 comments
It feels morally wrong to me that I can spend thousands of hours working on projects on my own free will but then a company can sell the code I wrote to others in the form of snippet completion as a service. In fact they end up selling your code back to yourself if you plan to use the service.
If the answer is no, that moves the needle pretty far in the direction where I'd at least consider the idea of moving all of my repos to Gitlab. I don't care much about stars or popularity. I open source things that are interesting and useful to me and if other folks want to use it they can but I don't gain motivation from others using the projects I release. I like Github and its UI and it's no doubt "the spot" for open source but selling code written by others rubs me the wrong way a lot. It stinks because it also means no longer contributing to other code bases too. It's moving us in the opposite direction of what open source is about.
I for one welcome our new CEO (Copilot Engine Optimization) overlords.
Jokes aside that will likely cause GitHub to be filled with lots of low quality repos (even AI generated, oh the irony!), to trick Copilot into using their code.
Hasn't this already been the case since GitHub became a CV boost.
I think the bigger problem is that it will almost certainly lead to a proliferation of giant snippet spam repositories.
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."
Or something else ?
IMO, the only way to use Copilot's output in an ethically sound way is to only use the output it produces in AGPL licensed projects (assuming that Copilot has not been trained on any non-free software codebases which in itself is a strong assumption).
Even then, that is missing attribution which should really be the default for all code reuse and derivation even when you legally are allowed to omit it.
Also without attribution. The more permissive licenses allow corporations to profit from shared code, but most of them still require attribution.
And it's really not much to ask: when someone gives you free code, give them credit for their work.
I don’t buy that producing/synthesizing code snippets based off public repos is a problem.
There’s nothing proprietary or original about eg. the syntax of a for-loop, or the boilerplate of setting up some JS framework MVC.
Besides, it’s basically just a (semantic and contextual) search engine inlined within the IDE. Copyright infringement hasn’t taken place until the user activated the autocompletion and actually placed the code within their own and released their code containing the infringing code.
Of course there is something proprietary or original about that. Why else would they need such an enormous AI to suggest it. Auto completing simple boilerplate was already solved in a much simpler way.
> Copyright infringement hasn’t taken place until the user activated the autocompletion and actually placed the code within their own and released their code containing the infringing code.
Copyright infringement takes place as soon as some company publishes/sells material without explicit license or permission. So not the moment the users hits accept, but the moment just before that: when the tool shows it to the user.
After all, if showing a search result in the IDE is “publishing” (let alone “selling” (?)) why hasn’t Google been sued out of existence for showing search results (oops, “publishing” copies of original work, billions of times over), as well as selling related advertising?
https://en.wikipedia.org/wiki/Fair_use
> Examples of fair use in United States copyright law include commentary, search engines, criticism, parody, news reporting, research, and scholarship.
A repo setting that instructs Github not to use your code for Copilot, it could be a similar option as turning Discussions on / off.
If they really want to win developers over they would even have Copilot scanning disabled by default but that'll never happen.
They may be morally in the wrong, but I'm unsure they are legally in the wrong here. To boot, denying them the right to create this tool in your license is technically a violation of OSS principles and problematic
[1]: https://docs.github.com/en/site-policy/github-terms/github-t...
Wouldn't this be a violation?
Being a top CoPilot contributor should at least have value to signal on your resume.
I don't think there is a way to opt out if it is a public repo regardless of license, and Microsoft's copyright theory suggests that they wouldn't feel obligate to enxclude any code they got their hands on except under a specific NDA preventing such use; the use of public GitHub repos isn't based on legal constraints but practical convenience.
If you read free code yourself it’s fine, but if a machine does it for you it’s not? We overvalue humans.
No, it's not fine. Apparently, you missed SCO & Oracle vs. Google cases. Both of these cases argued that somebody looked to the code, and copied it. In SCO case it was not true, but the argument stretched the timeline rather successfully. In Oracle vs. Google, copying function signatures opened a big can of worms.
So, just by copying the function signature without filling it the very same code with the original, even for interoperability, you're getting into a huge gray area in a legal sense.
Similarly, no sane Wine developer will read leaked Microsoft source code, yet alone copy it. Again, no sane emulator developer will read leaked Nintendo code.
Reading the code "colors" your creativity, and if you're tried at court and enough similarity is found in your code with the leaked code, it's game over.
So, reading code and copying is not guaranteed to be legal, depending on its license. When this is done by a robot, it's still illegal (you're breaching licenses during the code generation process), and immoral and unethical on top of it.
So, we don't overvalue humans, but overvalue AI, which is just informed search, BTW.
Copyright and licensing are bad, actually. Stop getting worked up about the idea of using courts to punish theft. Stop getting into a frenzy of arousal about the police kicking down doors to drag Billy Gates to jail because 80 characters of fast square root is theft but 79 isn't.
Where on earth is the ambition and vision!? Knowledge is public domain. A commons of knowledge is a public good. The cost of code copying is zero.
Sure in our day job we have to pretend to care about this stuff. But when did the ideological scope of what can be achieved become rules lawyering over license text.
Copy my MIT licensed code without attribution? I don't give a shit, go ahead, I hope it helps, in fact I want a truly public domain license but copyright law is so hostage to corporate interests no such thing exists in many countries.
Free the code.
Yes but this copilot model takes that, adds value and doesn't itself join the public common good. Instead it takes it, and makes you pay to have it back in another form.
If copilot were open source and the model released for the public good, being built of public data (in your scenario) we would have a very different conversation.
And in reality 99.9% of the generated code has no long ngrams in common with the training set, it's already original. All they need to do is to enforce never to generate data identical to the training set, something that can be implemented with a bloom filter, then the generated code is impossible to attribute and should have no legal problems.
In the end what do models like Copilot do? They act like culture - absorbing and replicating memes. They free the knowledge and make it reusable. They can act like a general purpose NLP tool for information extraction, classification and text generation. You can implement your ideas faster with it, don't need to label much data.
It works even with just a prompt. Try OpenAi Codex to extract a receipt to see what I am talking about - it gives you the output in JSON. It's a new tool and a new interface to the computer. There are going to be plenty of open source implementations as well, some are already under training.
And offers nothing back to those authors in return.
I want every line of code I've ever written to be used as much as possible.
I find "intellectual property" to be dubious to the core. I'm not confident enough in my feelings to be a zealot, but if I had to pick sides then I know which side I would pick.
Other people use licenses that try to create a commons where if you want to use it you need to share your own code, as a counterpoint to the non-commons in which you can't use code at all. And if people use those licenses, they should be respected as well.
By all means, eliminate copyright, and let all code be copied freely. And until that happens, as long as proprietary code exists and doesn't let anyone copy it, respect copyleft licenses as well.
The value transfer is basically theft.
It isn't about the usefulness of the service, or even that something similar is a good thing ... it is about the execution and what it says about fairness for those that worked to create the data it depends on to produce value.
Every time we use courts to enforce IP we're strengthening the Walt Disneys and Nintendos of the world.
(I accept I am in a group of like 3 people with this goal but it's my view)
Edit: to expand slightly more on this. People should be able to decompile/reverse engineer whatever the hell they want. They shouldn't have to worry about armed goons kicking down their doors. Every time cases are used to strengthen the enforcement of IP/licensing, whether for the light (FSF) or dark (Micro$oft, Google, etc) the outcome is the same, we move further from that goal.
Completely agree with you. It's the 21st century, once data has been published there is no controlling it anymore and all attempts to do so lead to the destruction of computer freedom. No doubt people all over the world copy code every single day with nobody even finding out about it. I'd rather get rid of all these monopolists than limit the potential of computers to whatever reality enables them.
>I accept I am in a group of like 3 people with this goal but it's my view
Now we're four.
Can you actually point to substantial examples where Disney or Nintendo benefited significantly from a precedent set by an open source court case? Open source has been around for decades, so it should be trivial to find numerous clear-cut examples at this point... if your theory is actually correct.
If there would be no enforcement of IP/licensing or legal enforcement - M$, Google etc. would not be nice - they would just come over and kick your doors cut your head off because they could do so. With legal framework they at least have to ask someone else.
You just have to understand you don't stand a chance with your 3 buddies against 10 motivated attackers.
Writing about "accepting terms of dominant party" you clearly never had a robbery at your house - imagine now corporations doing the same when there would be no legal frameworks.
Read up on Dutch East India Company - or just Nestle - Microsoft or Google are still quite nice companies with Walt Disney and Nintendo.
I agree that people should be able to decompile/reverse engineer whatever the hell they want.
And if armed goons (whether goverment or if they are Microsoft or some company) kick down your doors, then they should be arrested for trespassing.
As long as copyright exists, copyleft should be respected.
Software Developers seem to be the most whining profession in the world and I despise this attitude (while being a developer myself)
$10/ month ... how much to you think this thing cost to build, and to maintain?
I consider the $10/m as a donation to the microsoft legal defense fund to allow free access to accumulated knowledge.
I'm all for a world where these tools help developers, but i'm not here for a system that isn't open. I want to own my tools.
Copilot is a bit like musicians paying a monthly fee for access to a loop library. Except all the loops are rip-offs of other peoples hard work and there's no effort to compensate them.
If I made an AI that resampled music into derivative tracks ... you can be damn sure i'd be sued until my ears bled.
Given Microsoft's record of persuing IP violations aggresively through the legal system, I'd say the whole thing is ironic.
Until that happens, and copyright protections are still used by larger entities, using the same system to protect yourself and (more importantly) your users isn't turning your back on your ideals, but instead simply adjusting your strategy to the current material conditions. Remember that Google v. Oracle (while ultimately a win versus what could have been) was a step back, with de minimis claims left on the table as not a valid defense. The play field is heavily slanted towards the big players and software freedom requires every tool it can put it's hands on at the moment.
As someone else asked, I would also want a citation, but I agree.
Actually, I want a license that you can do pretty much anything you want to do with it (including: lack of attribution, distribution without source codes, distribution with source codes (whether they are the original source codes or reconstructed), lack of copyright notices, reverse engineering, circumvention of your own copy and write reports about anything you want to do, to use or not use the software (and to modify or not modify) at your choice, etc), but that you are not allowed to add further legal restrictions to it (with a few exceptions dealing with trademarks (but not all) and allowing conversion to GNU (A)GPL 3 and CC-BY-SA 4.0 if you are able to satisfy the conditions of those licenses) or to derivative works, and that if someone will try to use legal processes against you relating to this, then anyone can countersue.
I think at its root the problem is copyleft is a mirror image of copyright. It relies on and replicates all the cultural and legal requirements and constraints of the copyright model and curtails an imagining of other possibilities. Every sentence or thought spent on copyleft is misdirected in my view.
Which is why I find Microsoft doing this (potential) en-masse license violation and then a bunch of GPL folks getting mad pretty funny overall. I just find the high and mighty tone annoying, like sure, they've (allegedly) screwed you, but they're going to (theoretically) get away with it because they're rich and powerful, sorry that didn't turn out how you wanted.
That is the (only)point of copyleft. If it weren't for copyright it wouldn't exist. Fight fire with fire, that sort of thing.
Do you have a citation? I was under the impression he defended copyright because copyleft depends on it.
This is my feeling as well. I don't build stuff in the open so that I can get bent out of shape at someone not properly licensing it. It's in a public repository, FFS... I assume that if anyone even notices my repo, that they may copy/paste a few lines out of my solution if it helps them.
This isn't just an issue of code. You can write a program that combines songs, or combines novels creating a different work that has sections that are essentially the original protected work. I don't think the authors of those novels are going to be OK with you selling or giving away a version of their work just because an AI edited it or combined it somehow.
The mechanised license ignorance and the way original authors are not compensated is the issue.
If you had a repo you'd worked really hard on, and offered a commercial license or GPL depending on the use (so you can be funded to work on it) ... do you think it is fair that copilot ingests that code and allows others to benefit from your work and knowledge without the commercial license as you intended?
Note how Microsoft always throws out the capitalism "rules of engagement" when it benefits them and undermines everything else. The fact we are even trusting the situation Microsoft are creating is dire, and speaks to the short memory of our industry.
If an AI takes a copyright work and makes its own version-- say combining two novels by popular authors in a way that is unique but keeps large parts of the text intact, can I sell that? I think if I were the authors I would be unhappy.
Also, how hard would it be for copilot to include a comment saying "// I got this line from x repo" when you are copying from a new repo? I am guessing not hard at all. Then at least the user would be aware of where their code was coming from and could be expected to make a judgement. If the line is "let a = b" then probably no worries. But if it is hundreds of lines of a simulation, all from the same repo with no changes, then I think some attribution is good for both parties.
Me too. I also find three iterations of the same subject not enough discourse. We need to take this matter more seriously.
> But it has made me realize why I instinctively dislike Free Software as a movement.
On the other hand, this whole discourse reminds me why I absolutely love Free Software as a movement.
> Copyright and licensing are bad, actually.
This is why we have "Copyleft".
> Stop getting into a frenzy of arousal about the police kicking down doors to drag Billy Gates to jail because 80 characters of fast square root is theft but 79 isn't.
And, stop getting into frenzy of arousal about being able to use any and every code piece you see elsewhere in any project regardless of its license.
> Where on earth is the ambition and vision!? Knowledge is public domain. A commons of knowledge is a public good. The cost of code copying is zero.
This is why GPL is important. It forces knowledge to evolve in the open, stay in the public domain and help it actually makes public good. It also doesn't hinder ambition and vision by not taking it to private domain, and keeping it open to everyone.
> Sure in our day job we have to pretend to care about this stuff. But when did the ideological scope of what can be achieved become rules lawyering over license text.
You might be pretending to care about this in your daily job, but we really care. Some of the projects I take part can't ever include GPL code (because the projects are MIT licensed). These texts are court-tested licenses, so they're as proper and serious agreements as the EULAs of "particular" software companies.
> Copy my MIT licensed code without attribution? I don't give a shit, go ahead, I hope it helps, in fact I want a truly public domain license but copyright law is so hostage to corporate interests no such thing exists in many countries.
If I want my code to be copied and possibly closed, I'll license it with MIT or BSD-0 and forget about it, but if I'm licensing my code with GPL3, it means I want that code to stay open. As a license, I expect anyone using that code to respect that license.
> Free the code.
Yes, and respect the license the author selected for his/her code.
> This is why we have "Copyleft".
This. Exactly. It's suprising how many developers have strong anti-copyleft/anti-GPL opinions while being completely uninformed on what they're talking about (but hey, I guess "uninformed but strongly opinionated" is HN in a nutshell). The purpose of GPL and other copyleft licenses is exactly to combat the insanity of intellectual slavery.
And I can't because there are a bunch of, for want of a better word, dweebs who care about this stuff. I don't give a single solitary frick about the finer points of MIT vs GPL vs BSD 3 clause vs CC-BY-NC or whatever-the-hell. But y'all are forcing me to care by making the legal frameworks for software ever more strict and confusing.
I take a maximalist view, don't want the code copied, sliced up, re-used in any form whatsoever with no credit? Don't post it on a code sharing site. Like I say in the OP, in my job I obviously have to follow the rules, but on an ideological level I'll ignore them where I can get away with it outside of work.
If you don't want the code to be used, don't post it online,
I don't think users owe me anything at all. If people want to PR back that's cool but if not that's cool too.
I think this sentence contradicts itself.
A "license" implies that there is a copyright holder who allows usage of the work under the terms of said license.
While "Public domain" implies that there is no copyright holder (e.g. because the copyright expired, was explicitly waived, or is for some other reason not applicable).
If you want to put your work in the public domain, you can do so; simply include a note saying that you dedicate it to the public domain.
I just want people to be able to take my code and do whatever the hell they want with it (including commercially) and optionally contribute to it. Having a license currently makes that easier but every time the Free Software lot going zooming off into the weeds of GPL v3 versus GPL v2 versus LGPL my eyes roll back into my head and I internally start screaming "get a life!".
I think if there were an option to add a machine learning clause and ask individual creators if they wanted it applied in that context, we would see a considerable amount of uptake. It's just that we couldn't forsee this progress happening so soon, and the issue is still not visible enough. I think it's only a matter of time before the culture catches up and new creative works in the coming years are excluded from training sets by their authors with clear and direct language.
By that point there would be no way to argue "but they shouldn't care, they licensed it like this, so I'm assuming it's fine for ML use."
If copyright is not enough to stop another entity from using a person's data for training, then some other protection should be invented that does.
Copyleft exists for a reason and without the ongoing fight for the commons we lose it all.
That seems totally inconsistent with decades of people clamouring for more openness/liberty when it comes to IP rights.
If you're a company which executes Embrace Extend Extinguish on any technology you like yet don't own, you'll get quadruple amounts of pushback. That's normal too.
Microsoft isn't saint, and copilot is breaking a lot of legal, ethical and moral rules. It's doubly-natural to give reaction to this.
I think at a fundamental level this abandons any vision of a true commons since as copilot discussions reveal the well is now polluted (to mix metaphors) and though in some frames the code is more free you certainly won't be if you fail to pay the penalty levied in a civil case for misusing it.
> public domain
These are incompatible concepts. RMS's vision of 'free-as-in-freedom' software doesn't let people do whatever they want. It forces those who distribute binaries to also distribute source. This is not possible with a public domain work.
I was sweating nervously before I started using Copilot awhile ago but I've stopped since because A - it really doesn't replace me, tried really hard; B - I don't sweat nervously for IntelliSense either.
There's also C, where being of an entrepreneurial mindset, I'd love the opportunity to hand over the software to an AI dev and just direct the implementation to my desire until I have a working product. I bet I could secure a higher room in the castle if instead of coding for 8 hours per day I could work on n products with capable AI Software Engineers. We're not there yet though.
(You're correct on not being part of the capitalist class, though)
You have completely misunderstood who the moat-building wizards are. That's proprietary software. Heard of it? I ask because a lot of young people nowadays don't seem to understand how dominant it used to be and the threat that it represented. (Plus a few older folks who never knew, forgot, or deny reality for other reasons.) We've been trying to throw the wizards out for decades, by making code available to everyone and making sure it stays that way via licensing. Code without a license is subject to re-enclosure as important enhancements - even necessary ones, such as security - are made behind locked doors. The open version becomes out of date, the proprietary one wins, we're back to wizards and moats. What Microsoft is doing is the same thing for code that was supposed to have legal protection so it could remain open and avoid that fate. It's taking magic back from the people and making it exclusive to the "capitalist class" (eye roll) again.
I'm curious - what are the legal implications of this going forward? I've so many questions.
1. Will Microsoft ever face lawsuits for these license violations?
2. If so, who/how? Class-action?
3. Will copilot be forced to open-source in the future? Under which license? Some open source licenses are incompatible with others, but copilot uses code from probably every OSS license conceived.
4. If Microsoft faces no justice, will we start seeing more OSS license violations? Will Google start using AGPL-licensed code?
[1] https://news.ycombinator.com/item?id=27710287 | Copilot regurgitating Quake code
"jethrodaniel" does not appear to have the copyright to offer that license, but it's hard for Github to determine that in general, so I doubt they would be liable for the error.
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Replicating it without complying with those terms is still infringement.
And from Microsoft no less, once outcast for mass poisoning.
Please insert that meme, "That's not how that works. That's not how any of this works!"
The legal system is permission based, not forgiveness or "I didn't know" based.
Since it’s a tort I don’t think you have to prove they should have know it would return copyrighted code, the fact that it does is enough to have liability.
On youtube, video uploads are a cost center, whereas on github, code is a profit center
But even ignoring that, everybody uploading code to GitHub has given GitHub the right to analyze that code as per the GitHub ToS. This is the same mechanism by which you can't upload code to GitHub with a license that says "nobody is allowed to display this code on the internet" and then sue GitHub.
> According to Downing, the answer depends to a certain extent on where that code is hosted. If it’s on GitHub, there very clearly would not be copyright infringement.
> “If you look at the GitHub Terms of Service, no matter what license you use, you give GitHub the right to host your code and to use your code to improve their products and features,” Downing says. “So with respect to code that’s already on GitHub, I think the answer to the question of copyright infringement is fairly straightforward.”
Downing cautions that copilot output of large chunks of code complete with comments are more questionable to use, but that for the most part it looks above board.
https://fossa.com/blog/analyzing-legal-implications-github-c...
Here's an English lawyer on the same topic...
> The licence is broadly worded, and I'm confident that there is scope for argument, but if it turns out that Github does not require a licence for its activities then, in respect of the code hosted on Github, I suspect it could make a reasonable case that the mandatory licence grant in its terms covers this as against the uploader.
https://decoded.legal/blog/2021/06/github-copilot-initial-th...
5. Even if it is illegal, is it actually bad? No one can possibly sell code snippets, the transaction costs are many orders of magnitude greater than any reasonable price. In my opinion, at least in this case the benefits massively outweigh the costs and the law should not apply here.
I've not installed or used it for the same reason (don't want to use AGPL or GPLd code by accident, and don't want my closed source code to be used accidentally as well), but the thought of Copilot being "killed" due to litigation/copyright/licensing issues is sad.
For me, It's kind of like when MP3 first appeared: Sharing music in Napster or downloading Mp3s from Geocities was just amazing. The idea of having such things at your fingertips. Even though I understood the issue the authors had with the unpaid distribution of their music... still, the idea of "what could be..." made it amazing.
I guess Microsoft could be a bit forward thinking, and implement the "Spotify" model in code: Pay OpenSource developers (whoever owns the repo, or whoever made a commit?) a small amount whenever their code gets used through Copilot.
I'm super excited by how "Copilot" related services will look like in 10 years. And I really really hope that the technology/idea doesn't get killed by litigation.
By all means allow repos to opt in, although if it’s licensed under something like GPL there’s no way to convert it to non gpl without permission from every contributor. I for one am not interested in Microsoft or anyone else paying me to close my code.
Allowing people to pay $xxx to copy my copyrighted work without my agreement is simple piracy.
Either they international agreement to drop copyright as a concept, or obey the law.
Is it really? From a consequentialist utilitarian perspective?
A world with copiloted snippets seems like a better one to live in than a world without.
There seems to be. Google 'windows nt source code leak github':
https://www.google.com/search?q=windows+nt+source+code+leak+...
First search results:
Windows NT 4.0:
> https://github.com/lianthony/NT4.0
> https://github.com/ZoloZiak/WinNT4
Windows XP:
My question is, if it isn't a copyright infringement issue to use copilot in its current form right now, why not just claim copilot was used whenever accused of copyright infringement hence forth?
Without speaking to the particulars of copilot, this situation where laws seem toothless because of the ease of plausible deniability is actually fairly common. And in many such cases, the law is not as toothless as it seems, because
1. Getting multiple people to stick to a script under oath is difficult and dangerous.
2. Criminals frequently send each other messages like
A: "lol I just crimed, hope nobody figures it out."
B: "lol just say you used copilot".
A: "lolol yeah fuck the law"
Obviously this only gets the worst criminals, but there seems to be lots and lots of them.
That same Quake example from last year is repeated every single time.
Aside from the fact that GitHub has since added a protection for this, that this example gets repeated time and time again instead of a *list of examples leads me to believe this is (and was not) a common occurrence.
2) TBD
3) Not likely. Worst case a judgement will go against them, they'll effectively pay a fine and then they'll retrain it on a more restricted set of source code.
4) OSS has a pretty tragic history re: enforcement. It wins nearly every skirmish but has no interest in the war so from a big picture standpoint, it loses due to apathy.
I trust MSFT to screw everyone over.
https://en.wikipedia.org/wiki/List_of_mergers_and_acquisitio...
B) MIT still requires attribution to not infringe.
If you are using it to write whole complex functions thatare the same as other people's, I guess that is copying.
But if you do the second thing you are not a great dev, and would have probably ended up copy pasting it anyway.
I think the first use case is far more common, and creating boilerplate that is so generic you could never really attribute it anyway.
If you do that on your own, it's your (legal) responsibility. If Copilot does it for you, it's GitHub's/Microsoft's responsibility.
Is this true? It hasn't been tried yet I assume?
GitHub/Microsoft says that it's still your responsibility.
>You should take the same precautions as you would with any code you write that uses material you did not independently originate. These include rigorous testing, IP scanning, and checking for security vulnerabilities. You should make sure your IDE or editor does not automatically compile or run generated code before you review it.
I'm not really sure how am I supposed to go about validating that I can in fact use this code that the magical black box barfed into my IDE using a bunch of different weights.
If Copilot is fair use, and has no restrictive license, than how is it anyone's responsibility?
If Copilot isn't fair use, it's Microsoft's responsibility.
(For copyright; for patent that's another issue, but you can violate patents by similarity without exposure or copying, anyway.)
Give us your money but you are responsible for the code that OUR tool generates.
If I use grammarly, are they responsible for what am I aiming to write?
At the same time when fast fashion companies sell T-shirts made with slave labour, its not the company's responsebility to check what their suppliers are doing.
And if tesla autopilot kills you and your family its not their fault either.
Neoliberal morality - companies are never accountable for anything, it's heresy to suggest they should do their job properly.
This whole thing would be fine if GitHub hadn't just used all public code on their platform, ignoring all involved licenses.
It's like saying GPT-3 created text is copyright infringement, because some author used the same sentence in a book before.
I could ask you the same thing.
> But if you do the second thing you are not a great dev, and would have probably ended up copy pasting it anyway.
How would I know that the boiler plate I ask copilot to write for me is copied verbertim from a codebase, that neither I nor Microsoft has licensed to use?
Well, that's already the case with Stack Overflow copypasta enterprise code. If anything, use of Copilot would be an improvement...
I feel this is more a meme, rather than reality. I do check StackOverflow, but never have I took an answer verbatim. I try to see if it's the same problem and what was the approach in deconstructing it, which I find more useful in the long run.
"One out of every four users who visits a Stack Overflow question copies something within five minutes of hitting the page."
https://stackoverflow.blog/2021/12/30/how-often-do-people-ac...
At least for me, that's most of the copies I do, followed by the ones that basically are 'call these functions in order', then paste it as a comment and use it as cheat sheet, and only very rarely I copy a 'creative' snippet almost verbatim, like a regexp matching email addresses, a to-hex or a crc calculation. And perhaps that's actually tricky.
All the time.
I've certainly copied a sort anonymous function from SO, it was one-liner. Is that copy/paste? or is it only copy/paste if it's X lines?
Otherwise I agree, usually I just get hints and go my own way.
(Where nobody is a stand-in term, to mean "less than 1% of those do")
If you mean that if you make a "random mashup of existing, copyrighted, hegerogenously licensed" works of art (audio/video), it also applies that you might be sued for it, then yes.
But that's not much of an issue with Copilot if you're using it for enteprise code that's already a mashup of copypaste "existing, copyrighted, hegerogenously licensed" and that you wont release and nobody will see anyway.
Whereas audio/video you generally want to release.
If you make them for your own consumption, then it's my response that rather applies: since nobody will see it, and you don't release/sell/circulate it, you can go ahead and mix Michael Jackson, Disney and Star Wars material - nothing will happen to you.
What do you mean, Copilot regularly pastes stuff directly from SO. One of those automatic doc generators was able to point me to the exact answer where one of them was from.
Copilot is not writing your code any more that Google search is writing your code. You are writing your code, and Copilot is just making suggestions.
US constitution secures limited copyright to "To promote the progress of science and useful arts". Copilot is just that, get over it!
The amount copied from any particular source might be small, but an aggregate strip-mining of many copyrighted sources is an interesting twist. Another might be, as you suggest, it might be a machine that itself does not violate copyright, but has the effect of causing users (who accept the suggestions) to violate copyright.
No, of course not. Joyce's literature was influenced by Ibsen, Mozart looked up to Haydn, Newton was humble enough that he openly professed he stood on the shoulders of his predecessors, Perelman refused the Millennium prize because it wasn't also offered to his colleague Hamilton.
All human innovation is iterative, and derivative. https://www.youtube.com/watch?v=jcvd5JZkUXY
Our skill doesn't grow in vacuums, without outside mentorship and guidance. There are areas where I am upset about the application of AI, but this is not one of them. Consider copilot a gentle guiding hand for those without access to a second pair of eyes nearby to give you reminders on what you may otherwise have on the tip of your tongue.
But in the way that Led Zeppelin refused to recognize how heavily their music was influenced by delta blues artist was unbecoming, I can accept the argument that it is perhaps douchey of Github to sit on Copilot as squarely their creation.
I like the idea of having the bot automatically update a attribution file if it detects it’s used licensed code. Seems like it would be fairly trivial. Also a robots.txt for repo owners to control automated use.
Also, they should totally pay back a portion of revenue to the community and support the repos used to train. That seems like it would be a good PR move if nothing else.
The idea of auto-attribution if copilot surfaces licensed code is best because then it keeps the copilot user honest where the code is coming from and honor the original license.
I’m genuinely disturbed to see how many people in this thread think that casual plagiarism is the norm for “usual devs”.
Devs often look at code to see basic syntax, understand algorithms, etc. There is absolutely nothing wrong with this. One should draw a line somewhere, but to say I need to attribute […somevar] every time I use it because I happened to see it one time on a blog post is silly.
A thought experiment may help: Scrape Github for all unique strings longer than X and store in a file with a timestamp and owner. How large does X have to be before attribution is required? If not length, then how do you determine whether attribution is required?
I'm disturbed it is likely the reality.
None of the code I work on is public, so attribution is pointless in the first place.
Aren’t they already doubling all Github sponsorship money?
Of course, if you provide already a copyrighted prefix, and it has seen that code, the chances are high that it would complete the copyrighted code (because that is what you actually would also expect).
So, for real use cases in the wild, where you write some own real novel code, how often would it suggest some copyrighted code? And how often would a human?
I have used Copilot the last months and I have never ever seen such a case (I can be pretty sure because all the identifier names are really unique, and the code was very custom).
However, I assume that I myself might have produced copyrighted code unknowingly because if you write common patterns (e.g. some tree or graph search, or some sort function, implement LSTM or Transformer, whatever), the chances are not so low.
Does anyone even know? Can we even check? What if 1 in a thousand, or one in a million outputs is (very close to) something existing? I find this especially relevant when generating faces.
Then there are cases where it amazes me completely, it wrote 10 lines of C++ code for rendering a monochrome glyphs with bits using Freetype library. It though had odd subtle bug, the glyphs came reversed and it worked with only certain font size which it seemed to pick up from different file all together.
No book, painting, codebase, sonnet, design is theft-less.
The art is the space reduction, otherwise we’d just bruteforce away.
The Magnificent Seven for instance was a reworking of Seven Samurai, but stands on its own as an original creation. Going into a cinema and filming a picture to later put on a torrent site is not artistic reworking.
The hard discussion is about what is acceptable, we all know prior art exists.
What if we just say "both"? Libraries were a thing for millenia and writers still wrote books. There are costs to IP laws and the benefits aren't obvious.
This seems to be missing a word, could you clarify?
Also: since you mentioned theft: this actually comes down to the discussion whether you can own thought and/or digital artifacts which can be replicated without taking anything away from the "owner".
Given the absolute choice I'd rather pick complete freedom than restriction. I suspect that anyone's opinion on this follows what they value higher: creation or exploitation.
If that happens, the big copyright/IP conglomerates will immediately jump on that and make sure that laws are adjusted and they get their cut of every single word and line anyone puts near their smartphones ;)
That applies to everything, its even a basic law of physics, and there's absolutely nothing wrong with it. Any layperson already knows what a remix is anyway so not sure what you think will change
This intrinsic motivation is more normally "farmed" by investors who capitalize and capture the IP value for themselves. This actually has a detrimental effect on innovation.
Doing away with or watering down intellectual property protections will just take big meaty chunks out of the stock market and partly equalize wealth distribution.
It'll probably spur innovation too - historically it usually has, but preserving the existing social order takes precedence over that which is why a lot is invested in persisting the myth that it aids rather than hinders innovation.
Citation needed. Speaking personally, I spend most of my creative energy on a project which is open source and permissively licensed to the point where I’m fine with anyone stealing it. I expect to earn negative money from it at the limit.
Why do I do it? I dunno it’s fun. Can’t that be enough?
Would you describe a parody, or a critique/review, as equally without original merit?
And I'm sure I couldn't disagree with you more. Or are 'influence' and 'theft' the same now?
They have been the same for most of history. People could openly copy titles, plots, parts, phrases, etc from prior work. Same for mechanical designs. The only thing preventing them was obscurity (e.g. the inventor trying to make it hidden) not any law or ethical idea that it's bad (there wasn't any). That's how things from math to gears to tunes got better (or changed over time, in the case of art, as better/worse is subjective there).
E.g. globally and historically folk music has been basically taking whatever you want from tunes and songs where everybody does the same with no "permission" asked or needed to be given.
Like 4 verses but want to add a fifth or change some part? Go ahead. Want to play it exactly like you've heard it? Go ahead again.
The idea of "theft" in that regard came in the last 2 or so centuries, and was enforced with artificial legal barriers and new "ethical" concepts that are neither "natural", not present for the vast majority of history (including golden ages of art production).
Your example of folk music is an odd one, for exactly that reason - it largely repurposes existing art. For example, Wagner wrote extensively about why we shouldn't respect folk music for this reason. I mostly disagree with him, but his comparison at least illuminates that this isn't so black and white. And that's really just scratching the surface of a complex topic.
I sense that if someone came along 2400 years ago with the exact play that Sophocles had just produced and claimed they had just composed it themselves, immediately after a public performance, someone would claim that theft had occurred. Do you disagree?
This is true for other forms of property as well, like land ownership.
I don't think it will any time soon though.
Way too often I burn half an hour needlessly during review in one of two ways:
* trying to figure out how the heck someone figured out some "magic" code that achieves something by invoking a bunch of poorly documented library or framework internals, and trying to reverse engineer WTF all the magic does by diving into the framework's source... only to eventually think to google the whole snippet rather than each individual method call, and discover it's copied from a Stack Overflow answer
* trying to figure out why something was written in an unidiomatic or overcomplicated way rather than a more obvious approach, and commenting at length on how I'd simplify it... only to eventually realise it was copied from a Stack Overflow answer
Attribution isn't just about making sure the right person gets credit, or about license compliance; reviewers and maintainers frequently need to be able to see where stuff was copied and pasted from in order to do their jobs effectively, even for snippets of just a few lines.
Basically, the project was to package Cordova + Backbone + Marionette, plus a couple of tools, under their own commercial name. Then they'd go around potential clients presenting it as the perfect solution to build hybrid applications for web/mobile/smartTV/whatever.
A certain Monday, the "architect" arrived boasting. He did that often, but this time he was more boastful. He explained that he had spent the whole weekend coding. He had written an incredible tool that would create a skeleton for a project from zero. You would type something like `tool create` and it would create the whole project with all the scripts and some example views and whatnot.
It was Yeoman's yo CLI tool, of course. He had just changed the copyright in the comments, removed most of the comments, he had deleted any mention to yeoman or the original creators, changed the name of the executable script and that's it.
The whole thing was OS code picked up from various repos and packaged as their own. The company used it to sell development projects. The so-called-architect used it to sell himself inside the company and then jump away into a startup as CTO.
Is this common or is it just anecdata? I don't know. It's clearly not the only time I've seen something like this and I do know that in certain companies around here it isn't exactly uncommon. But I can't say how common or uncommon it is.
Would I call this "selling other people's code"? Yes, I would.
If the solution was copied from an OSS project without proper attribution? Yes. Absolutely. And they'd have words with a senior dev and maybe even legal if the code they copied made its way into production without attribution.
Many copyleft OSS licenses require attribution and distribution of derivative works that we wouldn't allow.
I’d also expect for any stack overflow code to include a comment with a link to the stack overflow page.
I think one of the key points is to make sure any code taken from another source is cited appropriately. If it isn’t, or the junior dev is passing it off as their own work, then we have problems.
This isn't derived from principled reasoning, but I think of it as similar to community norms. Not the best example, but you wouldn't mind someone subletting their homes to Airbnb, but if all of your apartment complex does it, it invites regulation. A product like copilot enables copying code (even if inspired, and not verbatim) at a scale that individual developers can't. So respecting software licenses needs to be codified (legally?) while previously it was left unmonitored.
We can take as self-evident that a human is capable of reading about something, conceptualising it, and then writing something completely new with the knowledge they have gained.
I think it's also pretty uncontroversial that the primitive "AI" we currently have is nowhere near the level of even an average human at these things, and thus we can't just blindly assume it is conceptualising rather than copying. Copilot regularly produces verbatim copies of existing code when working on non-trivial things.
Forget about the "AI" label: Copilot is just a complex computer program, that takes code from other people and inserts various permutations of it into your editor, whilst ignoring the license of that code.
I suppose it should also generate appropriate copyright notices to satisfy many open licenses. I'd be surprised if copilot could actually link back to the original code like that, though.
String getName() {
return name;
}
Let us also assume that this snippet, unsurprisingly, has been in several copyrighted repos that didn't grant Github the right to share this code.So I start tying "getName" and copilot suggests the exact snippet above. If I use this snippet, is it plagiarism? Even though the above code is the most "obvious" way to write this getter and I would have written it this way even without copilot's suggestion? Or does the "uniqueness" or "non-trivial quantity" of the suggestions have any bearing in determining copyright violation? How/where do we draw the line?
There's already a way to quickly solve the boring parts in development - libraries which were built and licensed around that purpose. But Copilot passes you code of unknown origin, with unknown license terms and no information about how close it is to an existing codebase. It's like a person trying to sell you Macbooks for a hundred bucks per unit but you don't know where they came from and who made the holiday photos stored on the harddrive.
No matter how interesting your problem is, translating it into code is going to involve a lot of grunt work. This isn’t just boilerplate, but also the large portion of your code which is going to be gluing things together.
The time you spend working through those menial parts of your code is time when the context of the interesting part of the problem fades. Once you get the mechanical stuff out of the way, you have to load the interesting stuff back into your brain.
This is where AI coding tools really shine. They dramatically reduce the intervals between when you can think about the actual problem you’re solving by letting you get the boring mechanics out of the way more quickly.
This is an implementation of a 1991 paper on polygon triangulation into Go. So the deepest thinking about how to solve the problem was obviously already done for me, but there were a number of edge cases that I had to invent my own solutions to, and the translation itself involved keeping a lot of context in my head.
I can’t tell you in precise detail what Copilot did, and what I wrote by hand. I wasn’t taking notes or recording my screen. But there’s a reason you don’t see a lot of blocks in there where I forgot to comment anything, because my entire process for this was “type what I want to do in English, and see if Copilot will generate the next snippet, or something close”. I didn’t do this out of bloodyminded dedication to the AI cause, but because it continued to be an extremely effective way to get the code written quickly.
I can give a few specifics:
- My linear algebra is rusty, and Copilot was extremely helpful here. I would often just type the basic thing I was trying to do in pretty vague linear algebra terms, and it would generate the formula.
- I wrote a lot of tests like this https://github.com/osuushi/triangulate/blob/main/internal/sp.... This is a minor thing, but those aren’t copy-pasted. Instead, I would write the first test, and for the most part, I could just type something like `func TestConvertToMonotones_SquareWithHole`, and it would figure out how to adapt the previous test automatically.
- It generates exactly the error strings I want based on context an enormous percentage of the time.
I want to stress that I’m just giving a few examples of things that I specifically remember because I talked about them at the time, not characterizing the majority of the experience of using Copilot. The majority of the experience of using Copilot is that you write comments, and then the things you were about to type appear on the screen before you have to type them.
- respect attribution
- respect copyleft
- respect proprietary licences
- give the user appropriate hints about the above
Or does it just copy code without doing any of this?
Is it like that?
You could think of the evolution of practical problem solving in software engineering like this:
1. I have to invent a solution (because nobody else in the world has a computer) 2. I have to know of a solution (education, word of mouth...) 3. I have to look up a solution in the books I have (commoditized knowledge) 4. I can look up solutions on the internet <-- (we are here) 5. The computer suggests something and I accept (some are here too)
From 1 to 4 the amount of cleverness required to solve small problems drops a bit, but your productivity and exposure to knowledge probably goes up.
I'm not quite sure what happens from 4 to 5. Personally I'm actually more interested in the context solutions are presented in than just the solution. In fact, I rarely copy and paste code from the Internet, but I often look at multiple suggestions/solutions and then borrow ideas or combine ideas from several sources.
I’m not sure that a language or library can ever understand the context of code without following an ML approach.
Languages and libraries will always allow for more than the immediate task at hand. The innovation is that this tool understands which specific language or library features are probably going to be needed next!
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.
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.
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?
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.
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.
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.
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.
So what? Selling code other people wrote is the foundation of the free software movement. It is the entire business model of countless companies, and it is a good thing. Among them are most major linux distro vendors like Red Hat and Canonical.
The value added by Copilot is that they sell you the lines "code other people wrote" you want out of billions.
I still think it is derivative work, and that they should only process code under permissive licenses, or, if they want to include GPL code, make a GPL-only version, usable only for GPL projects. I thought it is what they did, there is so much code under permissive licenses that is should be enough to train their model, but apparently, they don't care, as long as it is public, it is included. For me, they are shooting themselves in the foot, several companies have already banned Copilot due to the potential issues with copyright.
I can't speak to the legal side, but I just don't understand the moral outrage over very occasionally copying such short snippets of code. The key innovations and the actual value that licenses are intended to protect aren't in these short snippets.
And what does copilot bring to the community? Free use by students, free use by open source maintainers, and a huge boost in productivity for a modest fee for professional devs, for a service that no doubt costs a lot to run, even on the margin.
Someone creates content for free, and companies monetize it.
Or we as a community need to create a better bsd, a cc0 for everything.
Almost everything is nontrivial, and almost everything is copyrighted, at least with the pressure to name the original author (BSD, GPL, other major permissive licenses).
Say you want to use a library, then you check for examples in the documentation, now you have to denote somewhere that the example is from the documentation (best if you put it in the source code, so you don't lure other people to copy what you copied and refer you as the author).
It is a major PITA at least for me.
Now, I'm not entirely sure how necessary this was from a legal perspective. But introducing an AI into the mix will bring up a lot of uncertainty when it comes to how much change is required for something to no longer be considered a copy/derivative.
The music industry has struggled with this for a long time. When is a song derivative, when a copy, when is it "inspired by"...
p = mmap(
null,
size,
PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS,
-1,
0,
);> Every snippet found that wasn't posted with a clear license by the author was challenged and we rewrote it
How is the license not clear?
One might argue copilot puts into software an algorithm that humans are already doing. Software like that is usually inevitable.
Still, it sucks there's no benefit for the contributors.
The most ethical thing I can think of is some kinda 'Spotify-like' revenue sharing model, based on how often their code is used by others. Not that they'd ever implement that if they can get away with it!
That argument only works if you think what Copilot is doing is meaningfully similar to what humans are doing. The debate about how these models relate to human thought might have legal implications.
As I understand it (IANAL) copyright doesn't protect ideas and concepts. It protects the content itself. In theory, if I read some copyrighted work, understand some idea in it and then create a new work using that idea, without copying that original work, then that is not a derivative work. (I think this is at least how it's supposed to work - would love to be corrected if that's wrong.)
So if I took a copyright work and rot-13ed it before distributing copies, I think that would be clear copyright violation, but if I made my own works using concepts I gleaned from reading it, it wouldn't be.
So should Copilot be treated like the rot13 algorithm or like me understanding concepts and generating new works using them? That sounds like a fascinating legal debate to be had.
When following the license terms, preserving the original copyright, etc, sure.
However, honest, ethical people (including programmers) do not plagiarize.
Copying and pasting code without attribution is plagiarism. Doing it without following the licensing terms is a copyright violation.
You need to either attribute the source, or rewrite it in entirely your own words — just like when writing a paper.
Confirming to the license is also required; iirc, SO requires attribution under the CC-SA license.
Based on my understanding of how NNs work, I'm not sure its even possible to implement something like that.
Its more of a licensing issue to me. As far as I can tell it was train on a blend of licenses which to me makes it inherently non-compliant. At least some of it is going to be copyleft and find its way into closed source.
It is putting a new spin on some traditional Open Source Lessons (https://en.wikipedia.org/wiki/The_Cathedral_and_the_Bazaar#L...).
People share and reuse snippets of unattributed snippets of MIT-licensed and GPL-licensed code on the internet all the time, StackOverflow, etc.
StackOverflow is profiting from that activity indirectly by facilitating it. They profit passively through ad revenue, and actively through the Teams subscription offering.
But nobody seem too upset about that.
How is an AI which facilitates the same code sharing fundamentally any different? Because it’s scraping it itself, rather than humans contributing it?
Seems like a tenuous argument at best.
https://huggingface.co/spaces/mullikine/ilambda
Language models are able to 'steal' the linguistic meaning-making 'essence' of the software, by modelling:
- How the software is used (mimicing its function) - external meaning
- How functions are 'inspired' - internal meaning (reflection)
https://github.com/semiosis/imaginary-programming-thesis
The models themselves should be clear about where the data came from. However, this is only possible in a fair world which we do not live in. Compromise must be made to protect national interests.
Generative models are license blind and there's very little that could be done to prevent progress. Like what the invention of the camera has done for art.
Large language models including Codex are a transformative technology.
Bi-directional fair-use is probably the best result we can hope for.
So long as Microsoft and OpenAI are not selling back usage of the model to the open-source community, I think it's OK, though it's the bare minimum obligation.
> the right to store, archive, parse, and display Your Content, and make incidental copies, as necessary to provide the Service, including improving the Service over time
It's insane how vague this is. Is Copilot a "Service"? Sure, by its definition:
> The “Service” refers to the applications, software, products, and services provided by GitHub, including any Beta Previews.
And since much of the code was published before Copilot's inception, this means Github can just arbitrarily add more "services" and milk the code for whatever it wants. Automatically service-ify any public repository? Sure, pay us for quotas. It's like a legal loophole to let Github just bypass any license restrictions you put on it.
2. Copy&Pasting Code by manual search exists.
3. This is just a smart tool so you don't have to figure out yourself what to copy&paste (in the best case) and save a lot of time.
Sometimes I truly wonder how people can genuinely be upset about things like this. What is broken are copyright and patent laws in the 21st century.
I guess Copilot could address this by checking the licenses of the projects it uses. Even when combining code, it could pull in the required attribution or avoid GPL licensed code (unless enabled) for example.
Tell me you regularly plagiarize without telling me you regularly plagiarize.
Code Plagiarism is taken very seriously by every company I have worked with. Multiple companies have been sued for violating the GPL. The SFC is currently fighting Vizio in court for example. While not commonplace, to say it's "almost impossible" is a stretch. Every large company complies with code copyright obligations for a reason. My company publishes changes to GCC and a dozen other GPL projects. Entire products like Protocode and BlackDuck exist to ensure code compliance. Even small code snippets are flagged.
Over the past few years the source code for Windows, SQL server, Bing and Cortana have all been leaked. If someone built a product using that code, how long do you think it would take Microsoft to sue? CoPilot is one rule for mega-corps and another for everyone else.
Of course it is. Plagiarism is “the practice of taking someone else's work or ideas and passing them off as one's own.”
It’s unethical and it will get you fired at any reputable company.
Now you might say, what about GPL code you don't own. You are allowed to redistribute it (upload to github). But because you are not the owner you can't license it to Github under new terms (that allow them to use it for ML training). But the question still is, is there anything in the GPL that forbids it's code being used for ML training? Even if the generated model is proprietary, has no attributions, etc?
If not, then it's kinda stupid to argue the point about the lack of knowledge, since lack or not lack of knowledge clearly doesn't matter. Github will happily continue using confidential code even from trigger happy companies like Qualcomm for copilot.
Are you saying that I would need all the original authors consent to upload a repo to github even if I include all the original attribution and licenses? Because what you are implying is that when uploading I'm granting github a license far outside the bounds of the license included, which only all the contributors can do. For example, would the linux project need to contact each and every contributor ever to upload a mirror to github, since their contributions were under GPL but you are implying that the license given to github is much, much broader?
This would make any project not originally started on github and with a few contributors basically impossible to host there.
> 2. Copy&Pasting Code by manual search exists.
The question is who is doing the infringement here. Github copilot is obfuscating the copying and telling it's users that the code is theirs to use, own, etc. as they please but is also taking large chunks of code it does not have the right to redistribute, even less grant licenses to.
90% of Twitter is just inventing new ways to whine about things
Humans make original patterns, but since Copilot cannot think, then Copilot does not. It squashes together a bunch of small individual patterns, each under their own license, but at no stage does it do anything more than pick a line from here, and a line from there.
It doesn’t think, and it doesn’t create new IP.
It is like making a picture out of small snippets of a thousand other pictures, and then selling it.. clearly not OK. You still ripped off the original artists.
Or like plagiarising 100 of your class mates’ assignments. Are you less guilty because you went to the effort to steal just a few sentences from each?
A criminal who steals a cent from every account at the bank is a more sophisticated thief than someone who holds up a petrol servo.
If Copilot doesn’t create new IP (it doesn’t; we established this), then it uses existing IP. And in that case it is no different to any of the three analogies above.
If you have ideas, code, music or art which you wish for noone to partake in, do your best to keep them secret. Certainly, breaking into secret areas should be illegal, but once the cat gets out of that bag it gets out of the bag.
The creative people behind these ideas I believe will be able to find good compensation nonetheless in society, IP-laws nowadays only serve to protect megacorporations to the detriment of creativity and ideas.
There's going to be some big cases here. It's going to end up in the Supreme Court sooner or later, and if it were to go there today I think I know what they'd say.
Source: https://twitter.com/mitsuhiko/status/1410886329924194309
> For example, it would probably not be a fair use to copy the opening guitar riff and the words “I can’t get no satisfaction” from the song “Satisfaction.”
I wonder how this could be integrated into the system?
[1] https://fairuse.stanford.edu/overview/fair-use/four-factors/...
https://felixreda.eu/2021/07/github-copilot-is-not-infringin...
There's a good argument that demanding copyright protections on scraped datasets and short snippets is a double-edged sword. It could harm search engines, distribution of news, and non-commercial ML research too.
It seems akin to trying to copyright a certain drum pattern or chord progression.
Also, the history of the GPL, MIT, commercializing lisp machines, Symbolic, infighting, etc… seems a very different context than Copilot so I am having difficulty seeing the systemic problems that tools like this encourage.
There is of course a surface level similarity in that a corporation is profiting from IP in the public domain but the devil is in the details.
I highly recommend everyone read it.
So even without using someone else code, just the pattern understanding and the production of simple boiler plate code is great.
I think it much more likely that they count on everyone liking it way too much to give a shit about their MIT code not being attributed correctly.
I certainly don’t. MIT just seems like the most convenient license for people that need licenses (corporations?), so that is what I use.
I don't think that's bad though. Code sharing is good for overall productivity.
But as far as I understand, GitHub trained Copilot on any public repository on GitHub, meaning even if it doesn't have a license specified (so the user publishing it still has the copyright to it), then I don't see how it can be OK.
> I checked if it had code I had written at my previous employer that has a license allowing its use only for free games and requiring attaching the license. yeah it does
It'd be much more interesting if he setup a function that was doing a similar thing but with different parameter types and names, and a different order of parameters (ie, like a real problem).
Hence why I agree with another comment somewhere that Microsoft is banking on software developers not litigating about use of their open source code in closed source projects.
Now, where the threshold is for substantial derivative work in order to require attribution is an interesting question.
But that would mean Microsoft acknowledging license violations.
'I don't agree with having an AI trained on/with my data.'
IMHO, all other problems with copilot stem from this.
Who is on the side of open source? Where are the big, powerful institutions and companies that deeply care about authors and communities providing free software that so many of us rely on?
...the above was generated by GPT-3 (text-davinci-002). Prompt: Write an argument for why using open-source code to train an AI and then sell the code generating service (without open-sourcing it) is ethical.
The main argument against this is that it takes away from the open-source community that contributed to the development of the code in the first place. By selling a code-generating service without open-sourcing it, the company is profiting from the work of others without contributing back. This is unfair and takes away from the overall open-source ecosystem.
Added two characters to the prompt :P
It's SO frustrating that even on HN people still fall for this naive and incorrect analysis. Pasting bits I've said before on this topic:
Language models do not work like this. They can copy content but usually that's for something like the GPL language text.
Generally they work on a character by character basis predicting what is the most likely character to appear next.
This very rarely results in copying text, and almost never rare text.
Mechanically it has learnt both syntax of language and how concepts relate. So when it starts generating it makes sentence that are syntactically valid but also make sense in terms of concepts.
That's really different to just combining bits of sentences, and it gives rise to abilities you wouldn't expect in something just cutting and pasting bits of sentences. For example, few shot learning is mostly driven by its conceptual understanding and can't be done by something with no way to relate concepts.
And that doesn't follow at all.
If they are comfortable training it on code that isn't licensed for unrestricted copy/paste, I don't personally understand why they can't train it on their own code that's also not licensed for that.
Edit: They even added 'q rsqrt,' to their banned word list to squelch an example of long verbatim code passages.
Basically, it's not that I don't understand your explanation. It's that it does emit long passages of unchanged code in practice, for whatever real-world reason.
If yes, how do they mitigate the risk of exposing private data when something is quoted verbatim?
If not, then why are repos with non permissive licenses ok?
Copilot is limited to public code now, but it may easily be trained on non-public code - albeit this probably won't be for sale to the public.
My code is on Github so that people can read it, reuse it and learn from it. "The freedom to study how the program works", as the FSF says. If some of the people reading it are machines, why would that matter?
[1] http://steve-yegge.blogspot.com/2010/07/wikileaks-to-leak-50...
Maybe this goes back to that debunked paper that claimed that transformers were only remixing input samples?
Absolute nonsense.
Wild.
(I'm actually not being sarcastic, I think there needs to be some sort of pipeline for compensating the artists who are used to train these models
So it should be as simple as if you're using other people's content for your own profit you should properly compensate them.
Or we could just abolish copyright law and assume that everything humans create emanates from culture so its always collectively built and everything should be open source.
Or we just do the same we've been doing. Create even more complex laws trying to define this fuzzy line in a way that companies can keep profiting from it a lot more than individuals.
:)
We all Duck/Google for code anyway. Why not admit and make it easier?
https://www.gnu.org/licenses/license-list.en.html for a quick intro
Also, are you okay with other people selling *your* work and *you* getting nothing out of it? Many people are not.
I do not see Copilot as useful anyway.
I honestly don't understand the general outrage at this fair seeming deal to me.
I don't use github. Can someone explain what the author means?
Edit: in detail
GitGub Copilot is an advanced autocomplete / code generation system, based on a machine learning model. The code used for training the model is taken from projects hosted on GitHub. These projects were published under different licenses.
The main questions are:
Some of the licenses need something from you if you create a derivative work. Does the Copilot training itself count as creating a derivative work?
Sometimes the autocomplete basically quotes the original code. Does the original license then apply to the autocompleted / generated code too? How much of verbatim code quoting does it need for the result to be considered a derivative work?
Your question seemed to lack this kind of work and was probably therefore downvoted.
I don't think that's so much about "asshole culture" but more like time management, as not everything can be explained to everybody in every topic.
The whole thing is just bizarre when the vast majority of developers constantly look at OSS code daily and lift ideas/patterns/snippets from there regularly without once looking at whatever license is attached.
why so?
> The whole thing is just bizarre when the vast majority of developers constantly look at OSS code daily and lift ideas/patterns/snippets from there regularly without once looking at whatever license is attached.
well, yes, copying an idea or pattern is generally.. accepted, to be kosher. copy-pasting too, in small amounts (a function, a type). that said, i would (and have) attribute even a notional similarity when writing something open source.
i don’t think co-pilot even allows the user to find where the code came from.
Perhaps in your circles, but that's certainly not something I've encountered over a 25 year carreer.
If you're googling solutions around you're already not taking intellectual property seriously enough to care about what happens after you lift ideas around.
Yes, I’m not a plagiarist.
If you’re literally copying and pasting code snippets without attribution, you’re plagiarizing.
You’re also probably violating the OSS project’s license.
It’s no different than copying and pasting someone else’s sentence or paragraph into a written paper.
[0] https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America,_...
One could argue that the information density in chord progressions, bass lines and beats is extremely small. And that any recognizable part of a musical idea that has been "borrowed" would necessarily make up a larger percentage of the complete work than would be the case for a typical application with borrowed snippets.
That's not a bad argument, but it is unsatisfactory because it means that at some point someone has to make a judgement on how much you can borrow.