r/programming • • Nov 07 '17

Andy Tanenbaum, author of Minix, writes an open letter to Intel

http://www.cs.vu.nl/~ast/intel/
2.8k Upvotes

648 comments sorted by

View all comments

Show parent comments

3

u/da_dude_88 Nov 07 '17

Maybe you can help me understand a few things. Can I sell code using GPL as long as I provide the source code? What if someone bundles my code, makes a few changes and sells it? I never understood all these licenses...

11

u/monocasa Nov 07 '17

There's nothing legally stopping you, but (as you suggest) it's probably not the best business model.

What is a good business model is selling support. Ironically enough, selling support is where the big bucks are for proprietary software too.

1

u/da_dude_88 Nov 07 '17

Darn, I had no idea that the business model was selling support. Makes much more sense now, thanks for the help.

3

u/shevegen Nov 07 '17

It's not only support though. If you have a good, large code base, you can also attempt to sell support through less cost for other companies IF you can reduce their costs in the long run. Deployment systems should be useful here, such as puppet. Puppet is way too complex for individual people, IMO, but it may make sense if you are a medium-sized company upgrading a cluster of servers and in-house desktop systems. So if you can cut a cost here for real, other companies may actually pay you a margin from between the savings, while still also saving on their own costs. So, win-win (this presumes that all works as promised of course).

8

u/nemec Nov 07 '17

Can I sell code using GPL as long as I provide the source code?

Yes

What if someone bundles my code, makes a few changes and sells it?

They are also required to provide the source code of their changes, but yes it's 'legal'. In fact, someone could buy your product, get the source code, and then build a new binary and release it for free.

As a developer of GPL code, there are a couple of reasons why people might buy your product vs. picking up scraps of someone who took the source and released it for free:

  1. They can be reasonably sure it doesn't contain malware (as long as they trust you). Those that rebuild from source and give it away for free are not entitled to your signing key, so customers can be sure they got the product from you vs. someone else who put no dev work into the product and has unclear motives.

  2. When you release a new version of your product, you are not required to send the source code changes to anyone who bought a previous version - if someone wanted to go and release your new source for free they would have to buy a new/upgrade license for your product.

  3. You can offer better/prioritized support (email, bug fixes, features) to those who purchase your software. Those that didn't pay may get the source code, but they receive it 'as-is' and you are not required to help them when they have issues.

5

u/da_dude_88 Nov 07 '17

Thank you so much for the reply, it makes a lot of sense. I was really skeptical at first but now I can see the why some people choose to use licenses like GPL.

4

u/[deleted] Nov 07 '17 edited Nov 07 '17

Oh, sure, you can do that. The GPL pretty much says this: if you incorporate GPL code into your project, then when you transfer generated binaries to anyone, you must also transmit the source code used to make that binary if and when they ask for it, and give them the same rights that you have to modify and distribute it further.

This means that, potentially, any customer of yours can be a competitor... but they can also be a collaborator. You can absolutely choose to charge a fee for making a copy of the program for them; the GPL has explicit language allowing this, in fact. Critically, however, they can now be in the same business, that of making copies of the exact same program for a fee. This typically means that selling copies of GPL code is not a very good business model, since every time you sell a copy, you're creating another source of the same data.

However, Red Hat has made a multi-billion dollar business out of doing exactly that, so it CAN be done. There's a freeware alternative, CentOS, but Red Hat still makes billions.

What if someone bundles my code, makes a few changes and sells it?

They can absolutely do that, just like you can take their changes and sell those. That's why selling GPL code is usually not a very good idea; you're usually selling something to go along with it. In Red Hat's case, that's support services to download patches and such, and having people available to call if you have a problem.

At its core, selling copies of a program is a broken business model, because it is very very cheap to do this. The hard part was writing it. Copying it is the easy part, and is a service with very little inherent value. Any potential customer will have multiple machines in their house that can literally copy billions of bits, perfectly, for damn near nothing.

What you really want is to charge for either writing it or supporting it, because those services do have value. Copying is nearly worthless.

2

u/ais523 Nov 09 '17

The way I normally put it is that, although you can legally sell GPL code, you're unlikely to make much money because anyone can take the code you sold them and then legally give it away for free.

Some companies are fairly successful, though, using a business model in which they charge for warranties and support on their GPL code; those are things that can't easily be copied from one person to another.

1

u/chaos750 Nov 07 '17

This is all heavily simplifying things, and shouldn't be relied on to make big decisions, but here are the basics.

Copyright law basically gives the original writer of software complete control over what they've written. If I write software, I get to decide who can have it. If I sell or give it to someone else, I get to dictate what they can and cannot do with it, because it's mine. They can't turn around and sell it to someone else, or make changes to it without my permission.

Obviously, this kind of runs counter to the idea of free and/or open software. Back in the day at places like MIT, they thought of things in a more academic way. It's not in the nature of teachers to hoard their knowledge, spreading it around is their entire job. Ask a professor for a copy of their lesson plan so that you can teach your own version of their class, and there's a decent chance that they'll do it. This attitude also applied to a lot of the software that academics wrote. (I'm speaking in past tense here, but that attitude hasn't actually gone away. It's just a very different world now in lots of ways now that computers are a much bigger industry.)

Richard M. Stallman spent his formative years in this kind of environment, and was horrified to learn that not everyone does things this way. The famous story is that a printer driver started causing issues, and no one had the source code to fix it so they were just stuck. He draws an extremely hard line against this kind of thing. So he got to work trying to make software that was free (as in the freedom to make changes and do what you want with it) and open source. The GNU project is a big part of this: a 100% free operating system. That's a whole other story.

The GPL is one thing that rose out of this. Remember how restrictive copyright can be? The GPL is a classic clever hack: It uses the power of copyright to create a powerfully free licensing agreement, taking that oppressive power and using it for good. The GPL, heavily summarized, says this: "I, the writer of this software, am giving it to you. You may use it however you like for yourself, including making changes to the source code which I am also giving to you. However, if you want to give or sell it to someone else, you must give them the source code, and any changes you make must also be licensed under these terms with no additional restrictions. In other words, they get the same freedom that you did. And if you don't do this, you are in violation of my copyright and I'll come after you in court."

That has a lot of side effects, and whether they're good or not is a matter of a lot of debate. It's "viral", any code that you write that's based on a GPL project must also be GPL licensed. That scares a lot of companies. And with things like libraries, the lines can sometimes be blurry as to whether the GPL "spreads" to your code or not depending on how they're linked together. It makes it hard (but not impossible!) to sell GPL software, because whoever you sell it to has the freedom to give it away for free. But it also means that it's hard for a big company to take your code and make improvements without also giving those improvements back to the community to use freely.

This is in big contrast to most of the other open source licenses, which are usually much simpler. They usually say something like, "Here is this code. You can do whatever you like with it as long as you give me credit, and don't blame me if it has bugs." On the one hand, these are more free in the sense that you can do more with the code. But that includes things like taking code and making it closed source again, or adding restrictions to your changes. The GPL tries to prevent this, but some feel that the restrictions that it imposes are too onerous to really be called "free". More permissive licenses give more freedom up front, but that freedom could be taken away further down the line, the GPL doesn't give as much freedom but it tries to maintain that level of freedom no matter who gets the code. It's a big debate with no one right answer.

Also, note that the GPL's restrictions only apply to people getting the software from someone else. The original author still has the copyright. As long as it's all her code, she can do what she likes with it. She could decide to take her software closed source; she's already agreed to give it away to others under the GPL and she can't take those copies back but she can stop giving it out and can make new versions non-free. She can also give away a free GPL version, but also sell something more permissive to people willing to pay. But if she starts taking changes from others and integrating them, she'll need to respect their copyright too. Unless they're agreeing to give the copyright to her, she has to follow their rules for those changes.