News for hackers. Stuff that matters.
Re:Microsoft sued for open-source piracy through GitHub Copilot by zarzavat on Saturday November 05, 2022 @07:48PM (#33487176)
I read these kinds of comments on HN and I wonder if the people complaining about copilot have actually used the thing for more than 5 minutes?

Most of the time copilot is giving you one-line completions that are heavily adapted to the surrounding code. It’s not “writing a book by quoting choice paragraphs from other books”. It’s fancy autocomplete.

You can direct copilot to give you anything you ask it for. If you ask it for an entire function, and you don’t give it any context, then you are more likely to get a snippet from inside its memory. But even when this happens you are unlikely to keep the entire snippet unmodified because the chance that it is what you were looking for is low.

Re:Microsoft sued for open-source piracy through GitHub Copilot by esperent on Saturday November 05, 2022 @08:11PM (#33487317)
> you are unlikely to keep the entire snippet unmodified

Does that matter? It's not the end users who are being accused of copyright violation, it's the tool itself.

Re:Microsoft sued for open-source piracy through GitHub Copilot by zarzavat on Saturday November 05, 2022 @08:42PM (#33487512)
If the argument is that the tool is facilitating copyright infringement by users then it matters whether or not the users actually keep the supposedly infringing code, yes. If the code gets deleted immediately afterwards by the user then the claim of infringement by the user is farcical.

If the argument is that copilot is infringing because it merely displays an allegedly copyrighted snippet for a few moments, even if the user does not accept the completion, or accepts it but then deletes it, then that is a completely different argument because there is very little identifiable damage to the authors, which bolsters an argument of fair use.

Re:Microsoft sued for open-source piracy through GitHub Copilot by vorpalhex on Saturday November 05, 2022 @11:16PM (#33488523)
The tool itself is infringing copyright. It possesses and reproduces copyrighted code without it's attribution. Full stop.

If I steal your television, it doesn't matter how much I get for it at the pawn shop.

Re:Microsoft sued for open-source piracy through GitHub Copilot by nl on Sunday November 06, 2022 @12:47AM (#33489080)
You can Google and find GPL'ed code. That doesn't mean Google is facilitating license violation even though the Google search index posses and reproduces GPL'ed code.

> It possesses and reproduces copyrighted code without it's attribution.

To be clear - attribution does not fix GPL license violation.

Re:Microsoft sued for open-source piracy through GitHub Copilot by Beldin on Sunday November 06, 2022 @03:37AM (#33490488)
You can Google and find GPL'ed code.

Emphasis mine.

This is different from asking Google and getting code directly from Google without the license - that is, without any indication that this code was taken from somewhere that has a license on all parts of it, not just the parts that Google didn't bother to show you.

Re:Microsoft sued for open-source piracy through GitHub Copilot by xyzzy_plugh on Saturday November 05, 2022 @11:19PM (#33488541)
> it matters whether or not the users actually keep the supposedly infringing code

That's not how this works.

If I give you a blob of uniformly random bits and then give you a passphrase you can use with a tool to turn that into a Hollywood movie, and you do so, and then you delete it, that isn't not copyright infringement.

Re:Microsoft sued for open-source piracy through GitHub Copilot by drran on Sunday November 06, 2022 @03:57AM (#33490585)
> If I give you a ... Hollywood movie, ... that isn't not copyright infringement.

It is.

Re:Microsoft sued for open-source piracy through GitHub Copilot by wizzwizz4 on Sunday November 06, 2022 @04:57AM (#33490923)
I'm no lawyer, but judging how people reacted to DeCSS (09F9 1102 9D74 E35B D841 56C5 6356 88C0, anyone?)… why do you say this isn't copyright infringement?
Re:Microsoft sued for open-source piracy through GitHub Copilot by Retric on Sunday November 06, 2022 @12:48AM (#33489097)
Copyright doesn’t go away simply because you edit what was copied, deleting it may work assuming you don’t recreate to much of the original work.

There is a concept in copyright law of derivative work which means simply editing Harry Potter isn’t enough to publish it without paying for the rights to do so. Even highly transformative fanficfion can run into this issue when much of the original work’s characters and setting remain.

Disney gets away with this stuff by copying public domain works, copilot and it’s users don’t have that defense.

Re:Microsoft sued for open-source piracy through GitHub Copilot by zarzavat on Sunday November 06, 2022 @01:28AM (#33489379)
The key word is fan fiction. Almost every single word in fiction is a creative expression and thus copyrightable.

But works of non-fictional literature (of which source code is an example) have to work harder to justify their copyright.

Many of the snippets of code generated by copilot contain zero creative expression. They are just mechanical implementations of an algorithm.

You mentioned setting and plot. The source code equivalent is architecture. Copilot generated snippets are usually too short and too algorithmic to have their own architecture.

What makes a derivative work derivative is that it copies creative expressions from the parent work. If you edit them out, then it’s not a derivative work anymore.

Re:Microsoft sued for open-source piracy through GitHub Copilot by hakre on Sunday November 06, 2022 @04:46AM (#33490850)
But what if not has the algorithm be designed for to extract that creative expression from the original work.

The use is only helping developing the algorithm by adding more value to the product in improving extracting the creative expression.

Copilot is a loose/loose game for developers, regardless on which end they are.

Re:Microsoft sued for open-source piracy through GitHub Copilot by Retric on Sunday November 06, 2022 @06:50AM (#33491606)
Variable names are just as subject to copyright as character names, and specific implications of algorithms can vary quite a bit. Just look at the homework assignments of any introductory programming course.

Which is why even very short snippets of code have been an issue.

Re:Microsoft sued for open-source piracy through GitHub Copilot by Taniwha on Sunday November 06, 2022 @01:27AM (#33489374)
Pretty much as if you buy a bike and it turns out it was stolen it's still not your bike someone who blindly accepts what turns out to be a chunk of someone else's code can still be unknowingly guilty of copyright violation.
Re:Microsoft sued for open-source piracy through GitHub Copilot by NullPrefix on Saturday November 05, 2022 @08:28PM (#33487426)
>Most of the time copilot is giving you one-line completions that are heavily adapted to the surrounding code.

Keyword being "Most of the time"

Re:Microsoft sued for open-source piracy through GitHub Copilot by heavyset_go on Saturday November 05, 2022 @08:43PM (#33487520)
There are countless examples of people just letting Copilot's "autocomplete" run wild and it ends up reproducing many lines of code, often verbatim, and not just single lines of code.
Re:Microsoft sued for open-source piracy through GitHub Copilot by nopenopenopeno on Sunday November 06, 2022 @01:49AM (#33489541)
A lot of people seem to think changing the variable names makes it new code.
Re:Microsoft sued for open-source piracy through GitHub Copilot by dymk on Sunday November 06, 2022 @03:32AM (#33490459)
The count is like 5
Re:Microsoft sued for open-source piracy through GitHub Copilot by wizzwizz4 on Sunday November 06, 2022 @04:54AM (#33490906)
Considering how easy it is to generate additional examples, I think it's higher than 5. Five big, popular blog posts, maybe; but there are way more than 5 examples just on Twitter.
Re:Microsoft sued for open-source piracy through GitHub Copilot by Kiro on Sunday November 06, 2022 @04:51AM (#33490884)
You need to bait Copilot really hard to make it output that. To the point where it would be much easier to locate and copy-paste the code directly from the source yourself. It doesn't happen accidentally and it's not how you normally use Copilot.
Re:Microsoft sued for open-source piracy through GitHub Copilot by lokar on Saturday November 05, 2022 @08:48PM (#33487550)
Most of the time I enter a bank I don’t rob it
Re:Microsoft sued for open-source piracy through GitHub Copilot by dleslie on Saturday November 05, 2022 @10:06PM (#33488103)
Sure. I used it for about twenty minutes before I turned it off because it seemed clear to me that it wasn't much different than copying code from open source repositories.
Re:Microsoft sued for open-source piracy through GitHub Copilot by fooster on Saturday November 05, 2022 @11:59PM (#33488787)
That is absolutely not my experience at all and wish people would stop with the hysterical hyperbole. The tool typically produces code that would only make sense in my codebase because it uses internal types which only make sense in my code base. That is not and cannot be copyright infringement.
Re:Microsoft sued for open-source piracy through GitHub Copilot by dleslie on Sunday November 06, 2022 @12:17AM (#33488928)
Sure, it's clever enough to swap identifiers correctly, but the shape of the code and techniques it uses were familiar to me from elsewhere, at times.

It's not unlike copying code from stack overflow and swapping the identifiers around.

Re:Microsoft sued for open-source piracy through GitHub Copilot by nl on Sunday November 06, 2022 @12:48AM (#33489090)
> the shape of the code and techniques it uses were familiar to me from elsewhere.

Isn't this exactly what you'd expect an AI coder to do?

Re:Microsoft sued for open-source piracy through GitHub Copilot by dleslie on Sunday November 06, 2022 @12:51AM (#33489113)
That's precisely the problem with it. AI, as it is, can be considered a lossy compression technique with multiple document recovery, convolution and interpolation ability.
Re:Microsoft sued for open-source piracy through GitHub Copilot by nl on Monday November 07, 2022 @06:13PM (#33513865)
Can't humans be considered a lossy compression technique with multiple document recovery, convolution and interpolation ability?

What is the specific difference?

Re:Microsoft sued for open-source piracy through GitHub Copilot by rolisz on Sunday November 06, 2022 @02:26AM (#33490091)
How did you learn the shape of the code and techniques that you recognized? By looking at other code? Are you violating copyright when you are writing similar code yourself?
Re:Microsoft sued for open-source piracy through GitHub Copilot by hakre on Sunday November 06, 2022 @04:52AM (#33490891)
> By looking at other code? Are you violating copyright when you are writing similar code yourself?

In that order likely a violation, but it depends on the concrete case, always.

Re:Microsoft sued for open-source piracy through GitHub Copilot by dleslie on Sunday November 06, 2022 @07:49AM (#33492015)
From decades of looking at interesting code.

I take care to attempt to not duplicate code; it's why don't use copilot.

Re:Microsoft sued for open-source piracy through GitHub Copilot by int_19h on Sunday November 06, 2022 @09:49PM (#33500520)
> By looking at other code? Are you violating copyright when you are writing similar code yourself?

It's certainly possible. Back when Phoenix reverse-engineered the IBM BIOS using published sources with a restrictive license, they did it by having one team read the sources and write a very detailed specification of everything that happens there, and then another team used that spec to write new code from scratch. They did it that way because if the first team were to write the code themselves, it is quite likely that the result would be legally considered derived work.

Re:Microsoft sued for open-source piracy through GitHub Copilot by veilrap on Sunday November 06, 2022 @12:10AM (#33488879)
100% agree. This matches my actual usage of github copilot. All the drama around it seems to just be mostly for headlines to fuel the outrage machine.
Re:Microsoft sued for open-source piracy through GitHub Copilot by woah on Sunday November 06, 2022 @10:05AM (#33493345)
The authors of these comments have never used it. Their understanding of the issue comes from having seen a tweet where someone coaxed CoPilot into almost-reproducing a piece of code that thousands of people have copy and pasted into their GitHub repos over the years, such as the quake square root code or that matrix multiplication code.

They also usually have a Luddite axe to grind.

If they succeed in getting CoPilot outlawed (obviously they won’t), then I will rent $50 worth of GPU time and train my own, like some kind of cyberpunk outlaw.