News for hackers. Stuff that matters.
Re:The GPL is a License, Not a Contract by hughw on Monday January 24, 2011 @08:04PM (#2137507)
I think, a lot. Here's a nifty little FFT code. Hey FFT's are kind of generic, right? This one's only 40 lines of C. I'll just copy and paste this one little function. Nobody'll ever know.

Or maybe nothing so complex as an FFT. Maybe it's a little code for charting. Who knows. Developer picks it up a snippet off the net somewhere, and it appears in your code base.

Then there's "derived works". Developer uses some working code snippet as a starting point, transforms it, specializes it, does a lot of work to it, but it's still derived work. I don't think developers think of it as plagiarism. Just "freedom". ;) But developers don't always protect the best interests of the company.

Re:The GPL is a License, Not a Contract by burgerbrain on Monday January 24, 2011 @10:46PM (#2137899)
Copying code is never an accident. It is always on purpose, whether done in ignorance or not.
Re:The GPL is a License, Not a Contract by rbanffy on Tuesday January 25, 2011 @07:55AM (#2138863)
Labeling C and V with "copy" and "paste" may have made such accidents easier...
Re:The GPL is a License, Not a Contract by rbanffy on Monday January 24, 2011 @08:48PM (#2137637)
There is no excuse to simply copy someone else's code without some kind of permission, be it a charting tool, be it a CFD library. If the code is under a BSD-ish license, it's fine to use it. If it's GPL-ish, the developer wants me to honor his conditions and, so, that's what I'll do.

Developers should care about freedom, but also for respecting the will of the developers that built their materials.

Re:The GPL is a License, Not a Contract by protomyth on Monday January 24, 2011 @08:58PM (#2137664)
If it's BSD the developer also still wants you to follow the license and abide by it's terms. The BSD still has terms that need to be followed.
Re:The GPL is a License, Not a Contract by X-Istence on Tuesday January 25, 2011 @01:02AM (#2138201)
Which basically says do anything you want with it (and depending if there is a third term, you may not use my name to advertise it)
Re:The GPL is a License, Not a Contract by jasonlotito on Tuesday January 25, 2011 @08:40AM (#2138964)
No, the terms are specific:

> Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. > Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Fail to do either of these things, and you run into the same problem you would have by not complying with the GPL.

Re:The GPL is a License, Not a Contract by rbanffy on Tuesday January 25, 2011 @05:44PM (#2141266)
We may be splitting hairs here. The point is that you are free to use BSD code in your closed application without incurring the risk of being asked to choose between removing the code or open-sourcing the whole thing, which is the fear of some.

I imagine they don't mind complying with BSD terms.

Re:The GPL is a License, Not a Contract by jasonlotito on Monday January 24, 2011 @10:35PM (#2137873)
Which people seem to forget. Copy paste BSD code into your GPL app and you run into the same problems if you include GPL code into a BSD app.
Re:The GPL is a License, Not a Contract by burgerbrain on Monday January 24, 2011 @10:51PM (#2137910)
"Copyright (c) <year>, <copyright holder> All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the <organization> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. "

--

Provided you properly credit the authors of the code you use, which you should be doing anyway, how do you run into problems by using BSD'd code in GPL'd code?

Re:The GPL is a License, Not a Contract by jasonlotito on Tuesday January 25, 2011 @08:35AM (#2138950)
> Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Like I said, copy and paste BSD code into your GPL code, and you run into the same problem.

> Provided you properly credit the authors of the code you use, which you should be doing anyway,

Exactly. Even the BSD license has provisions which you must do or you don't have the rights.

I'm not suggesting these rights aren't onerous or difficult to comply with. Rather, you can't just lift BSD code without following the license.

Re:The GPL is a License, Not a Contract by ZachPruckowski on Monday January 24, 2011 @10:56PM (#2137923)
>"But developers don't always protect the best interests of the company."

Then you should either hire better developers, manage them better, or get some sort of "my employees are shit" insurance (which I doubt exists).

Re:The GPL is a License, Not a Contract by wnoise on Tuesday January 25, 2011 @03:59AM (#2138506)
Any reasonable charting code is far more complex than FFTs, of which there are basically only two ways to straightforwardly implement. Of course there are lots of complications you can add such as cache-awareness which change that picture, but that's probably not 40 lines of C (though 40 lines is far more than necessary for a simple FFT)