News for hackers. Stuff that matters.
Re:GitHub Copilot emits GPL code by bryanrasmussen on Friday April 21, 2023 @04:20PM (#35659507)
>We know that isn't the case because we can see code being reproduced even with comments

If the comment is something like

//check fromIndex is greater than toIndex

then that is not any more individualistic or different than the actual function. Sadly, many people comment like this, on the other hand if it reproduced a comment with typos or something more complicated like

/* this hack is because Firefox's implementation of SVG z-indexing does not match how Chrome or Safari does it - please read this article ...url...*/

then yeah, then you would have something

Re:GitHub Copilot emits GPL code by marginalia_nu on Friday April 21, 2023 @04:23PM (#35659545)
Well yeah, we've already seen exactly this:

https://twitter.com/StefanKarpinski/status/14109710611816816...

Re:GitHub Copilot emits GPL code by theRealMe on Friday April 21, 2023 @05:02PM (#35660092)
In almost any other scenario this would be evidence. But Fast Inverse Square Root isn’t some tightly held secret. That exact code, with those specific comments included, is found in the Wikipedia page for that algo:

https://en.m.wikipedia.org/wiki/Fast_inverse_square_root

Re:GitHub Copilot emits GPL code by marginalia_nu on Friday April 21, 2023 @05:02PM (#35660102)
Yeah, it's still GPL though.
Re:GitHub Copilot emits GPL code by theRealMe on Friday April 21, 2023 @05:15PM (#35660295)
True.
Re:GitHub Copilot emits GPL code by nextaccountic on Saturday April 22, 2023 @12:24AM (#35663318)
The usage in Wikipedia is probably fair use, but it's still copyrighted, even without being a secret
Re:GitHub Copilot emits GPL code by bryanrasmussen on Friday April 21, 2023 @05:25PM (#35660419)
OK that tracks as more than just lazy comments lookalikes.
Re:GitHub Copilot emits GPL code by rvba on Friday April 21, 2023 @06:24PM (#35661045)
Did you read the article you are commenting on? It has examples.