6 ms·
Still no way to opt your code out of this. Disgusting.
by snvzz 5y ago
Still no way to opt your code out of this.
Disgusting.
- sergiomattei 5y agoDon't open source your code then.
- bogwog 5y agoMicrosoft: 1 Open Source: 0
- drran 5y agoFind a torrent with sources of M$ Windows and copilot them: M$: 1, Open Source: 1.
- kadoban 5y agoOpen Source has licenses that must be followed. Copilot strips those off and ignores them.
- IshKebab 5y agoWhat if I - a human - read your code, learn from it, and then use that knowledge to write my own code? Am I stripping your license off and ignoring it? Clearly it's not as simple as you imagine.
- ghoward 5y agoIt is. Machines are running algorithms, which, by definition, are not creative. Of course, people may argue that people are not creative, but considering that for a recent court case, it was decided that AI cannot be an inventor, it does matter to that court at least.
- anigbrowl 5y agoIt's not. The legal system doesn't have the consistency or dependability of code. A lot of legal 'results' (judicial decisions) are somewhat arbitrary, balancing abstractions with practicality and so on, but get attention because they include clear explanations of the basic issues. Other lawyers then treat those decisions as 'legal facts' by echoing the language and (basically) challenging other lawyers to come up with a more impressive explanation than the decision that they are citing. Look into a famous recent copyright case, Cariou v Prince. Cariou is a photographer, who made a series of photographs of people in Jamaica an dpublished them in a book. Prince, an artist, liked them, and then treated them as raw material, basically printing them up large, adjusting them, and slapping some paint on top, and declaring it original art - indeed, he called it 'appropriation art' saying 'this is mine now.' Cariou was upset (very understandably) and sued. The judge found for Cariou, said that Prince was a bullshit rather than a visual artist, and ordered the infringing work to be collected and set fire. Prince appealed, and his appeal succeeded, with the 2nd circuit saying it was "transformative" from the point of view of a "reasonable observer" and therefore fair use, because Prince had added a different aesthetic by turning the portrait photos into oversize graffiti-collage mashups. Cariou gave up at that point as he didn't have the resources or will to fight the case further, and eventually the two artists settled. Look up the art and see for yourself. I think Prince does have his own aesthetic, but it's a very shallow one that just surfs on other people's work, not very different from drawing glasses and a mustache on top of an existing portrait and saying you made an original work. In many ways, what he's selling is his taste, and the modifications he makes to the picture are just a sort of signature that's semantically equivalent to saying 'I, Richard Prince, approve of this image' - the artist as curator-critic of others' work, if you like. Back in the computing context, this decision substantially loosens the boundaries of copyright. Found some code you wish you had written and want to put out your own thing, but feel stymied by the license? Just refactor it, add a bunch of sassy comments, and make the interface (whether, CUI, CLI, or API) aggressively different - not necessarily better, just distinctive. If it's fun and whimsical, make it corporate and bog-like. If it's scientific and functional, make it silly and juvenile. Just futz with it a bit until you can plausibly say you either made it better or easier to read or more accessible/intercompatible in some way. Hell, slow it down a bit and say your code smells better because it cooks the JSON longer, and generates a bunch of 'useful' statistics that might seem superfluous to the original designers but are essentially interesting to you. You'll probably get away with it.
- kadoban 5y agoIt depends how much you "learn from it" and then write your own code vs how much you copy/paste. Copilot is pretty commonly just copy/pasting. You can get it to spit out exact copied code, including comments. p.s. "it's not as simple as you imagine" is pretty dickish. Why include that?
- IshKebab 5y ago> It depends how much you "learn from it" and then write your own code vs how much you copy/paste. I think this is the crux. It doesn't matter that they used GPL code for training. It only matters if someone uses CoPilot to make a close copy of that code. Fortunately Copilot is actually not commonly just copy/pasting. They did a study on that if you search for it (admittedly not an independent study but it's the only one we have). > Why include that? Because so many people are making the assumption that the law agrees with their overly simple interpretation before it's even been decided. It's a bit tedious.
- rectang 5y agoLegally, it needs to be opt-in in order to protect downstream consumers of code written by Copilot. Copilot sometimes reproduces code verbatim. You can't use open source code except under the terms of the license. Authors whose code may be reproduced by Copilot need to grant a license to downstream consumers, and republishers of Copilot-generated code need to adhere to the terms of that license. Copilot is inserting ticking time-bombs into its users' codebases.
- miohtama 5y agoOnly if the threshold of originality is passed. I feel many of Copilot snippets are so tiny that this threshold is not reached. But not a judge here. https://en.wikipedia.org/wiki/Threshold_of_originality https://en.wikipedia.org/wiki/Threshold_of_originality
- rectang 5y agoThe threshold of originality is clearly being reached some of the time: > Copilot regurgitating Quake code, including sweary comments (twitter.com/mitsuhiko) https://news.ycombinator.com/item?id=27710287 https://news.ycombinator.com/item?id=27710287
- dragonwriter 5y agoIf it is relevant at all, the threshold of originality applies to the allegedly-copyrighted source consumed by Copilot (as regards bare infringement, not wilfull infringement). If that doesn't meet the threshold, it is not copyrightable. If it is, unauthorized copying not within a copyright exception (e.g., fair use) is infringement. I can't see any case where originality of the snippet presented by Copilit matters (if Copilot were a person, it would matter to determining if the snippet on its own was copyrightable by Copilot, but still wouldn't be relevant to whether to original copyright was violated.)
- meetups323 5y agoNope. Copilot users are inserting "ticking time-bombs" into their own codebases. The buck stops with the user, when they use code from any source at all, whether it's their head, the internet, some internal library, lecture notes, a coworker, a random dude of the street, or who knows what else, it their own responsibility to ensure the code they're using has been released under a license they can use. They don't get to go back and point fingers just because they didn't do their own due-diligence. The exception would be if a vendor provides code under a legal contract providing liability and an agreed license, that has not happened in this case so there's no reason to expect any legal protections.
- baby 5y agoThis reaction is why we can’t have nice things :( after trying copilot I’m convinced that this kind of feature is going to bring the world to a next phase. Open source was part 1, this is part 2.
- snvzz 5y agoI understand a lot of people are ok with this and that's fine. There's still no good reason I cannot opt my code out of it.
- rectang 5y agoI would seriously consider opting in so long as my authorship was acknowledged and my license was upheld. FWIW I tend to release things under permissive licenses (although I think if I was copyleft-inclined I might feel the same way: just match my license). But stripping my copyright, copying my work without my permission and presenting it to users on terms I did not agree to, all of that is unacceptable.
- baby 5y agoAnother comment said "don't open source your code", which I would agree with. If you don't want people reusing your code, just don't open source it. What's the point otherwise?
- snvzz 5y agoIt's not black and white. Letting people see the code doesn't mean they can ignore the license and do whatever the hell they want with it. I am quite reasonable. I favor the MIT license. I still do not want my code in Copilot, which pretty much dismisses my rights entirely.
- baby 5y agoI’m not sure I understand that point of view though. Copilot just suggests relatively short snippets, it’s not copying large chunks of your library or products. If you truly have an innovative algorithm and you don’t want people to use it like that, you’ll have to go the patent route
- belter 5y agoA friend of a friend, told me he is furiously adding code to Github, with subtle security bugs. He can't wait for it to show up in the proper places...Courtesy of Copilot ;-)
- moyix 5y agoThis attack has been studied! https://arxiv.org/abs/2007.02220 https://arxiv.org/abs/2007.02220 Although our own work shows Copilot is pretty good at adding security flaws on its own: https://arxiv.org/abs/2108.09293 https://arxiv.org/abs/2108.09293
- threatofrain 5y agoBut people already naturally exhibit subtle bugs in the course of ordinary programming. Your acquaintance will just be another drop in the ocean.
- jmnicolas 5y agoExcept he knows what to look for and how to exploit it. Could lead to easy bug bounty money.
- benburleson 5y agoSeems like an exceptionally risky attempt to make money using programming skills. Why not directly add value to the software world?
- jmnicolas 5y agoI'm not endorsing it. FWIW I won't use Copilot and won't add (voluntarily that is ;) bugs in my code to sabotage it.
- jeroenhd 5y agoI wonder if that could be a nice money maker. Introduce a lot of generic functions with common names, add security bugs. Maybe add a README entry telling people to not trust the code because you're using it to demonstrate what insecure code looks like, and then wait for some big company with a bug bounty to introduce it to their code base. License your code proprietary of AGPL to make sure the company is the one who gets in trouble if they admit the code comes from you. With enough nearly-working functions spread across multiple projects in every language known to man, you could practically automate your way into a steady stream of hacker bounties. People would probably call it unethical, but if Copilot's massive IP violations are okay then who cares. As long as the project's security flaws are recognisable by humans it doesn't matter IMO.
- WillPostForFood 5y agoYes there is, make your repo private.