News for hackers. Stuff that matters.
Re:Copilot regurgitating Quake code, including sweary comments by croes on Friday July 02, 2021 @09:26AM (#27711212)
Good luck checking every code line for license violations
Re:Copilot regurgitating Quake code, including sweary comments by dr_kiszonka on Friday July 02, 2021 @12:32PM (#27713688)
There will be a VSCode extension for that.
Re:Copilot regurgitating Quake code, including sweary comments by TheDong on Friday July 02, 2021 @05:13PM (#27716944)
It's impossible to automate checking for code license violations.

If you and I write the exact same 10 lines of code, we both have independent and valid copyrights to it. Unlike patents, independent derivation of the same code _is_ a defense for copyright.

If I write 10 lines of code, publish it as GPL (but don't sign a CLA / am not assigning it to an employer), and then re-use it in an MIT codebase, I can do that because I retained copyright, and as the copyright holder I can offer the code under multiple incompatible licenses.

There's no way for a machine to detect independent derivation vs copying, no way for the machine to know who the original copyright holder was in all cases, and whether I have permission from them to use it under another license (i.e. if I email the copyright holder and they say 'yeah, sure, use it under non-gpl', it suddenly becomes legal again)...

It's not a problem computers can solve 100% correctly.

Re:Copilot regurgitating Quake code, including sweary comments by dr_kiszonka on Friday July 02, 2021 @09:03PM (#27718506)
I should have added /s to highlight that I was being sarcastic. Sorry.
Re:Copilot regurgitating Quake code, including sweary comments by croes on Friday July 02, 2021 @12:50PM (#27713914)
Same trust issue
Re:Copilot regurgitating Quake code, including sweary comments by atatatat on Friday July 02, 2021 @01:38PM (#27714432)
It's people for your lawyers to blame, all the way down!

/s

Re:Copilot regurgitating Quake code, including sweary comments by croes on Friday July 02, 2021 @03:27PM (#27715751)
It's the same problem s with self driving cars, you gets sued. The company that provides the service/car or the the programmer/driver? I think the latter.
Re:Copilot regurgitating Quake code, including sweary comments by duckmysick on Friday July 02, 2021 @02:02PM (#27714686)
SaaS idea: code linter, but for licenses.
Re:Copilot regurgitating Quake code, including sweary comments by SahAssar on Friday July 02, 2021 @02:27PM (#27714998)
That's one of blackduck's offerings: https://www.synopsys.com/software-integrity/open-source-soft...

At a previous job we had a audit from them, it seemed to not be too accurate but probably good enough for companies to cover their asses legally.

Re:Copilot regurgitating Quake code, including sweary comments by adrianN on Friday July 02, 2021 @02:21PM (#27714926)
Extend Fossology: https://www.fossology.org/