News for hackers. Stuff that matters.
Re:Copilot sells code other people wrote by nickjj on Thursday June 23, 2022 @12:44PM (#31851701)
This might be overreacting but is there a way to opt-out of Copilot using your code in open source repos?

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.

Re:Copilot sells code other people wrote by kemiller on Thursday June 23, 2022 @02:23PM (#31853200)
This is a really good point that I hadn't considered before. It's facebook all over again — selling your own content back to you. Repo owners should be at least compensated when their code gets used. That would be an incredible market.
Re:Copilot sells code other people wrote by selcuka on Thursday June 23, 2022 @08:13PM (#31856597)
> That would be an incredible market

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.

Re:Copilot sells code other people wrote by account42 on Friday June 24, 2022 @07:32AM (#31860247)
> Jokes aside that will likely cause GitHub to be filled with lots of low quality repos

Hasn't this already been the case since GitHub became a CV boost.

Re:Copilot sells code other people wrote by leereeves on Thursday June 23, 2022 @08:21PM (#31856632)
I don't think that would be possible. One of the big limitations of neural networks is that they don't cite their sources.
Re:Copilot sells code other people wrote by radus on Thursday June 23, 2022 @09:07PM (#31856853)
Calculate a rough semantic similarity score across all your snippets, and pay out a fractional reward to all originating codebases.

I think the bigger problem is that it will almost certainly lead to a proliferation of giant snippet spam repositories.

Re:Copilot sells code other people wrote by nemonemo on Friday June 24, 2022 @07:42PM (#31870920)
It is like the search engines vs. SEO arms race. The hope could be that such proliferation can be managed by disincentivizing such abuses. The reality might be vastly different with codes that have more regularity and better chance for AI's emulating humans than the natural language texts.
Re:Copilot sells code other people wrote by woleium on Saturday June 25, 2022 @01:14PM (#31876938)
Then they need to negotiate a non-attributed contract with you before using your code to train (not sure abiut testing though).
Re:Copilot sells code other people wrote by PaulKeeble on Thursday June 23, 2022 @01:29PM (#31852417)
It should be automatic based on license. GPL code definitely shouldn't be included but MIT could be. They already have this information in most repositories and if its missing they have no right to use it at all. We don't need extra options the licenses already restrict the use and derivative work.
Re:Copilot sells code other people wrote by davesque on Thursday June 23, 2022 @02:07PM (#31852956)
Not without the text of the license. I, as a developer, cannot just poach open source code under MIT without including the copyright and terms from the original project. From the license:

"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."

Re:Copilot sells code other people wrote by meshaneian on Thursday June 23, 2022 @03:25PM (#31854040)
They might argue that a snippet isn't a "substantial portion" of "the Software", and they're only charging for the service not the content - regardless, I don't like it, this is exactly what certain licenses attempt to prevent.
Re:Copilot sells code other people wrote by leereeves on Thursday June 23, 2022 @05:06PM (#31855161)
I would argue that substantial shouldn't be measured in lines of code, it should be measured in importance. Something like the fast inverse square root is substantial even though it's short.
Re:Copilot sells code other people wrote by williamcotton on Thursday June 23, 2022 @07:38PM (#31856402)
The fast inverse square makes for a poor example when it comes to notions of intellectual property and copyright because there is prior art. The Wikipedia page has a history.

And imagine if Microsoft had been able to copyright the fast inverse square function before Carmack sat down to write Quake!

Re:Copilot sells code other people wrote by leereeves on Thursday June 23, 2022 @08:06PM (#31856554)
Prior art matters for patents, not copyrights. Carmack's code is still protected by copyright even if he didn't invent the algorithm.

And copyright doesn't prevent someone else from implementing the same algorithm, only from copying the code. If Microsoft had been able to copyright the fast inverse square root function, Carmack could still have written his own version and even copyrighted that version himself.

Re:Copilot sells code other people wrote by williamcotton on Thursday June 23, 2022 @09:51PM (#31857052)
Prior art has been used for copyright in plenty of court cases, and increasingly so!

Here’s an example: https://scholar.google.com/scholar_case?case=728470765881077...

It seems particularly apt to consider prior art for use in software IP if only for the similarities with the patentable invention of mechanical parts.

Re:Copilot sells code other people wrote by imtringued on Friday June 24, 2022 @02:48AM (#31858506)
What? You are free to reverse engineer any non patented object and reproduce an almost identical object. Prior art for copyright is meaningless unless it is about authorship. You can still do a clean room implementation and ignore prior art.
Re:Copilot sells code other people wrote by williamcotton on Friday June 24, 2022 @06:25AM (#31859808)
But the current interpretation is that you cannot claim authorship over things that were already in the public domain. Feel free to read the case notes and follow some of the links in there for more info. Am I not interpreting the court rulings correctly?

——

Considering de novo the evidence before the district court, we hold that the district court did not err in granting summary judgment. Johannsongs failed to offer admissible evidence to rebut Ferrara's analysis, so there is no genuine dispute of material fact as to his conclusions that Söknuður and You Raise Me Up are not substantially similar and most of their similarities are attributable to prior art. Based on these conclusions, Johannsongs has failed to satisfy the extrinsic test and Defendants are entitled to judgment as a matter of law.

Re:Copilot sells code other people wrote by woleium on Saturday June 25, 2022 @01:16PM (#31876949)
but they used all your code to train. that's pretty substantial..
Re:Copilot sells code other people wrote by typetheorist on Thursday June 23, 2022 @03:25PM (#31854042)
I too have reservations about Copilot, but does the MIT license define a "substantial portion"? I doubt a snippet would fall under either "copies" or "substantial portions"
Re:Copilot sells code other people wrote by davesque on Thursday June 23, 2022 @07:23PM (#31856316)
I doubt many licenses define that kind of terminology. That's left to precedents established by actual cases. My point was just that you're not free to use code from an MIT-licensed project without following the terms of the license. The other details get worked out when legal actions are taken.
Re:Copilot sells code other people wrote by ellyagg on Thursday June 23, 2022 @03:36PM (#31854174)
Well, I hope your viewpoint doesn't win the day, because making code as freely shareable and remixable as possible is a huge boon for humanity.
Re:Copilot sells code other people wrote by celeritascelery on Thursday June 23, 2022 @03:50PM (#31854309)
Code being freely shareable and remixable is great. Selling that open source code for profit is not.
Re:Copilot sells code other people wrote by WisNorCan on Thursday June 23, 2022 @04:37PM (#31854815)
Is your take that Microsoft should offer this for free? Or if they are not willing to do it for free, Microsoft should cancel this service and we should wait for Apache or someone else to offer the service?

Or something else ?

Re:Copilot sells code other people wrote by gfrff on Thursday June 23, 2022 @04:45PM (#31854922)
Microsoft should make this service free for open source (not just thought leaders), and compensate people otherwise. I should have a 0.01% equity in Open AI if they're using my stuff like this.

Or they should do opt in.

Re:Copilot sells code other people wrote by throwaheyy on Friday June 24, 2022 @05:20AM (#31859434)
Half serious/flippant, we need MS to create a cryptocurrency so that developers can be credited with micropayments each time their code gets “quoted” in the IDE.

<ducks>

Re:Copilot sells code other people wrote by earnesti on Thursday June 23, 2022 @04:39PM (#31854843)
What is wrong with someone making a little dough. It is just numbers in database.
Re:Copilot sells code other people wrote by jdbernard on Thursday June 23, 2022 @05:10PM (#31855193)
Yeah, but those numbers translate to food on the table for my kids, a roof over their heads, better education, etc. Come on, this is a tired response. Nothing is wrong with people making money. There is a lot wrong with people making money off of the hard work of others without any consideration or remuneration.
Re:Copilot sells code other people wrote by gopiandcode on Friday June 24, 2022 @02:55AM (#31858539)
I feel like you're missing the forest for the trees here - making code freely shareable and remixable is exactly the purpose of GPL and other free-software licenses, but you can bet that the proprietary codebases Copilot will be used in will go out of their way to prevent any such uses of _their_ particular code snippets.

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).

Re:Copilot sells code other people wrote by account42 on Friday June 24, 2022 @07:39AM (#31860304)
> 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

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.

Re:Copilot sells code other people wrote by rpd9803 on Friday July 01, 2022 @11:25PM (#31955900)
Based on this comment, you may not understand what the GPL's purpose actually is, because it is NOT simply for the promoting sharing and remixing. The GPL is for ensuring that code, and its derivatives, are all able to be shared and remixed in perpetuity. the biggest (imo) difference between GPL and MIT/BSD licenses is that you CAN NOT use GPL'd code in a non-GPL* codebase. (*or GPL-compatible license)
Re:Copilot sells code other people wrote by jnsie on Thursday June 23, 2022 @03:54PM (#31854362)
It's just as shareable on Gitlab, no? And the issue isn't that code is not shareable - it's that a huge corporation is profiting from this code without consent from the developer.
Re:Copilot sells code other people wrote by leereeves on Thursday June 23, 2022 @05:00PM (#31855105)
> a huge corporation is profiting from this code without consent from the developer

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.

Re:Copilot sells code other people wrote by bayindirh on Friday June 24, 2022 @02:17AM (#31858338)
Well, I hope your viewpoint doesn't win the day, because breaching GPL left and right to make some developers life easier opens huge cans of worms.
Re:Copilot sells code other people wrote by throwaheyy on Thursday June 23, 2022 @07:44PM (#31856437)
The Twitter thread’s title seems unnecessarily incendiary and clickbaity.

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.

Re:Copilot sells code other people wrote by DJHenk on Friday June 24, 2022 @02:42AM (#31858470)
> There’s nothing proprietary or original about eg. the syntax of a for-loop, or the boilerplate of setting up some JS framework MVC.

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.

Re:Copilot sells code other people wrote by throwaheyy on Friday June 24, 2022 @05:09AM (#31859355)
Applying your logic, is any search engine infringing on copyright because it contains a snippet of the source page?

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.

Re:Copilot sells code other people wrote by tremon on Saturday June 25, 2022 @09:58AM (#31875348)
is any search engine infringing on copyright because it contains a snippet of the source page?

In some jurisdictions, it is. And in other jurisdictions, it is only allowed as long as it shows a link to the source page, which Copilot also doesn't do.

Re:Copilot sells code other people wrote by lbhdc on Thursday June 23, 2022 @01:33PM (#31852470)
I stopped publishing open source after all this started coming out because I was so uncomfortable with it.
Re:Copilot sells code other people wrote by jaywalk on Thursday June 23, 2022 @01:11PM (#31852135)
If your code is using a license that allows it, how could you possibly opt-out aside from using a different license?
Re:Copilot sells code other people wrote by sammax on Thursday June 23, 2022 @02:11PM (#31853023)
Don’t most licenses require at least attribution? I don’t believe GitHub is restricting themselves to only licenses that don’t. In fact the only software licenses I can think of that don’t require attribution are 0BSD, WTFPL, CC0, MIT-0 and Unlicense, and they all aren’t super popular. Also in some countries creators have inalienable moral rights which can be enforced regardless of the license. For example in Germany it is impossible to relinquish certain rights you have as the creator of a work, including the right to attribution.
Re:Copilot sells code other people wrote by TAForObvReasons on Thursday June 23, 2022 @02:17PM (#31853108)
This is an important and overlooked point. Even common permissive licenses (ISC / MIT / Apache-2.0) require attribution
Re:Copilot sells code other people wrote by jazzyjackson on Thursday June 23, 2022 @02:31PM (#31853315)
Just as a mind experiment: couldn't CoPilot just publish a list of every github user and attribute the work to all of them?
Re:Copilot sells code other people wrote by TAForObvReasons on Thursday June 23, 2022 @02:46PM (#31853508)
CoPilot is a black box at the moment. Microsoft claims they used the public corpus on GitHub. There are plenty of GPL, AGPL, and "source available" projects in the public corpus. So what exactly is the licensing?

The argument may make sense if they limited themselves to public-domain (CC0) works, but that is not what happened here. If CoPilot attributed something to an AGPL project, does it mean the "virality" applies to all projects that use code from CoPilot?

Re:Copilot sells code other people wrote by ntoskrnl on Thursday June 23, 2022 @03:27PM (#31854059)
There's also a good amount of commercial and leaked source code on GitHub, including MS's own leaked Windows XP source. I haven't played around with Copilot yet, but if I ever do I plan on copy/pasting some win32 API definitions to see if I can get it to spit out any of the leaked source.
Re:Copilot sells code other people wrote by yellowapple on Thursday June 23, 2022 @07:48PM (#31856463)
> if I ever do I plan on copy/pasting some win32 API definitions to see if I can get it to spit out any of the leaked source.

If that works, then I can't wait for that to be a boon for Wine and ReactOS: "Microsoft itself provided this code and allowed us to use it, so therefore it's totally legal. Neener neener."

Re:Copilot sells code other people wrote by rpd9803 on Friday July 01, 2022 @11:29PM (#31955925)
Some trivia: CC0 is a public domain declaration.. at least in the US. There is no process by which an author can make their works public domain, CC0 is just a (weak) promise that the copyright holder will treat the work as if it were public domain.
Re:Copilot sells code other people wrote by whoisthemachine on Thursday June 23, 2022 @03:14PM (#31853883)
This feels like a tool that can easily be destroyed by a lawsuit, I can't imagine a TOS can force you to give away your copy rights (especially if they allow and encourage you to post your own copyright).
Re:Copilot sells code other people wrote by kragen on Thursday June 23, 2022 @04:30PM (#31854750)
If it can't then Wikipedia is doomed; its entire licensing status rests on the notion that editors grant such a license as part of their clickwrap ToS.
Re:Copilot sells code other people wrote by bouke on Thursday June 23, 2022 @02:00PM (#31852863)
Does GitHub verify that the code that is in my repository is actually in accordance to the license that I’ve added? I could just upload any proprietary code with an incorrect license, and GitHub would just use that to feed their AI. Like any other dependency that you incorporate into your application, GitHub should verify/audit whether the license allows them to do so.
Re:Copilot sells code other people wrote by nickjj on Thursday June 23, 2022 @01:17PM (#31852228)
> If your code is using a license that allows it, how could you possibly opt-out aside from using a different license?

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.

Re:Copilot sells code other people wrote by quietbritishjim on Thursday June 23, 2022 @01:30PM (#31852436)
Even if Github did provide that setting, as a courtesy, someone could clone / fork the code to another repo (if you use any licence that allows it) and not enable that setting.
Re:Copilot sells code other people wrote by Inityx on Thursday June 23, 2022 @02:05PM (#31852933)
Sure that's possible, but there's a huuuge difference between Possible and Default Behavior.
Re:Copilot sells code other people wrote by TAForObvReasons on Thursday June 23, 2022 @02:58PM (#31853655)
In a case like this, GitHub itself could set up a bot account that forks all projects as soon as you make the switch. The company in fact would be incentivized to do so.
Re:Copilot sells code other people wrote by jonny_eh on Thursday June 23, 2022 @01:22PM (#31852316)
Sounds like you want a new license that just prohibits use by one company for one purpose.
Re:Copilot sells code other people wrote by thamer on Thursday June 23, 2022 @01:47PM (#31852682)
There are other AI-based code completion systems than Copilot, at least Tabnine[1] and Kite[2] come to mind, I'm sure there are more.

[1] https://www.tabnine.com/

[2] https://www.kite.com/

Re:Copilot sells code other people wrote by belter on Thursday June 23, 2022 @03:08PM (#31853803)
As of today there is a new one...

"Now in Preview – Amazon CodeWhisperer"

https://aws.amazon.com/blogs/aws/now-in-preview-amazon-codew...

Re:Copilot sells code other people wrote by widjit on Thursday June 23, 2022 @03:54PM (#31854368)
is there something wrong with that?
Re:Copilot sells code other people wrote by jonny_eh on Thursday June 23, 2022 @04:12PM (#31854561)
Not at all, you can put any license on your code that you want.
Re:Copilot sells code other people wrote by igneo676 on Thursday June 23, 2022 @03:08PM (#31853804)
I'm not sure using a different license actually opts you out. By merely hosting your code on GitHub you grant them the right to analyze your code on their servers[1]

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...

Re:Copilot sells code other people wrote by typetheorist on Thursday June 23, 2022 @03:28PM (#31854082)
> This license does not grant GitHub the right to sell Your Content. It also does not grant GitHub the right to otherwise distribute or use Your Content outside of our provision of the Service, except that as part of the right to archive Your Content, GitHub may permit our partners to store and archive Your Content in public repositories in connection with the GitHub Arctic Code Vault and GitHub Archive Program.

Wouldn't this be a violation?

Re:Copilot sells code other people wrote by okasaki on Thursday June 23, 2022 @01:15PM (#31852199)
Microsoft could provide an opt-out for projects or even contributors, regardless of licence.
Re:Copilot sells code other people wrote by ghostbrainalpha on Thursday June 23, 2022 @03:32PM (#31854136)
It would be kind of cool if Github could show some stat that code you wrote has been used 50,000 times for 12,000 people.

Being a top CoPilot contributor should at least have value to signal on your resume.

Re:Copilot sells code other people wrote by dragonwriter on Saturday June 25, 2022 @01:19PM (#31876985)
> This might be overreacting but is there a way to opt-out of Copilot using your code in open source repos?

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.

Re:Copilot sells code other people wrote by invig on Friday June 24, 2022 @05:36PM (#31869666)
They’re not selling you code. They’re selling you an engine that helps you find the right free code at the right time.

If you read free code yourself it’s fine, but if a machine does it for you it’s not? We overvalue humans.

Re:Copilot sells code other people wrote by bayindirh on Friday June 24, 2022 @06:50PM (#31870500)
> 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.

Re:Copilot sells code other people wrote by invig on Wednesday June 29, 2022 @09:03PM (#31927598)
I suppose you learned to code without reading any code?
Re:Copilot sells code other people wrote by bayindirh on Thursday June 30, 2022 @04:15AM (#31929926)
No, I didn't and don't read other people's code to understand how something works. I use books and official language/library documentation for that.

On the other hand, this is irrelevant to the issue at hand.

GitHub copilot is not a tool for education. It's tool for auto-completing code, which can be put to production, where licenses and other stuff come into play.

The issue is not code sharing per se. It's more of a legal problem, and an important one at that. In the software copyright sense, even reading code you can't import to a project (let it be leaked, not compatibly licensed or for any reason), puts you at risk of legal troubles. This is why we have methodologies like "clean room development".

In Copilot's case, you're possibly deriving a code from a source which contains many licenses, and some of them are not compatible with that you're doing. As a result, you're in direct breach of the license which is not compatible with your code.

On a more higher level, you're also breaching the ethics code and morality by using a code or its derivation with an incompatible license to your code, and disregarding other peoples desires codified as a case-tested and valid license.

As a result, if you think that using a derivative of a GPL licensed code in your closed source application is OK on every front, then the vice versa is true. I can disassemble and reverse every part of your code and re-implement it as GPL bug for bug and open it.

Because if you can breach my license, and expect no consequences, I can breach your license without consequences, as well. It's a two way street.