Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I did not find the lawyers' SE site, so I thought it best to post here.

/*
 * ...subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * The Software shall be used for Good, not Evil.
 *
 * THE SOFTWARE IS PROVIDED "AS IS"...
 */

This is the 'non-free', Crockford, No-Evil, MIT-style, license. This license is considered non-free because of this phrase: "The Software shall be used for Good, not Evil."

How could we rewrite this to become a 'free' license, while retaining the original spirit of the sentence?

share|improve this question
8  
"Go ahead and use this software, but don't look at me if you become reincarnated as a cockroach or something". Too metaphysical? –  James Love Feb 12 '11 at 11:38
    
How does that make it 'non-free'? –  sevenseacat Feb 12 '11 at 12:29
2  
@Karpie Details here... –  Félix Saparelli Feb 12 '11 at 12:47
4  
Oh wow, that's actually really interesting. I love the line at the end about IBM using the code for evil - that's hilarious. The world of software licensing is a tricky one indeed.... I can much agree with the spirit of the sentence in question.... but can see the other side too. How fascinating... –  sevenseacat Feb 12 '11 at 13:57
2  
Who defines evil? would the be google and their policy of don't be bad. Evil like beauty is in the eye of the beholder. –  Loki Astari Aug 1 '12 at 15:27
add comment

5 Answers

up vote 18 down vote accepted

It's impossible.

A requirement of "free" (going by the official open source definition) is to never restrict usage based on endeavor.

If you say "you can't use this software to do X" then it's non-free, no matter how evil X is; you're still restricting based on endeavor.

Even if you say "You can't use this software to kill a human", then it will still be non-free.

But in reality, it doesn't matter much. Someone who intends to do evil is not likely to abide by your license anyway (specially if it's a government).

See #6 in http://www.opensource.org/osd.html

6. No Discrimination Against Fields of Endeavor

The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.

Rationale: The major intention of this clause is to prohibit license traps that prevent open source from being used commercially. We want commercial users to join our community, not feel excluded from it.

The only way I can think of is to add a sentence that's not legally part of the license. "Please don't use this software for $EVIL_PURPOSE".

share|improve this answer
6  
The rewritten clause could be non-restrictive: "You may use this Software for both Good and Evil, but the former is recommended." But then I guess this is not a condition, and has no place in the license. –  Félix Saparelli Feb 12 '11 at 22:12
add comment

The way to rewrite this license to be more free, would be to remove that stupid sentence. Stick to the standard widely adopted MIT license.

This particular license has caused all kinds of headaches for downstream developers building upon Douglas Crockford's work, and now means his low level library is having to be carefully picked out and replaced throughout the ecosystem. A huge waste of effort.

The "legal definition of evil" aspect of this is problematic obviously, but really this is part of a more general problem of "license proliferation". If people keep making up new licenses just for fun, then more wasted effort will always occur. So to your question, how to rewrite this license to create a new license with a similar meaning? I say...

DON'T! For goodness sake. Pick an existing license. There are already too many to choose from.

share|improve this answer
    
This question is rather old and has already been answered, so although these links are interesting, they would have been better as comments. As a side-note, I now use PD/CC0 on (nearly) all my work... good, evil, or penniless as I may become! –  Félix Saparelli Aug 23 '13 at 0:10
add comment

How could we rewrite this to become a 'free' license, while retaining the original spirit of the sentence?

You can't. Such usage restrictions are fundamentally incompatible with the Free Software Definition.

In particular, they violate Freedom 0, the most important one of the four freedoms, and the foundation upon which the other three freedoms and really the entire idea of Free Software are built upon:

The freedom to run the program, for any purpose (freedom 0).

[Emphasis mine.]

You specifically asked about a free license, but you may wonder: "Okay, so, it's not Free, but maybe it's Open Source?" And the answer is: nope, it isn't. It violates clause 6 of the Open Source Definition:

No Discrimination Against Fields of Endeavor

The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.

Now, you might argue that "evil" is not a field of endavour, but rather a goal of endavour, and thus not covered by this restriction. And you may be right.

share|improve this answer
add comment

Surely this is all in the eye of the beholder. For example (and exaggerating outrageously) a megalomaniac dictator might think it good to adapt such s/w with this license so that it can eliminate 68 billion people in a single nanosceond...

It's awfully subjective. Personally I regard this kind of thing as rather childish, the author should be more specific about their intent, or simply place no restrictions at all.

share|improve this answer
2  
A great example. The dictator would probably think that he solved the overpopulation problem, which is a good thing, right. –  Goran Jovic Feb 12 '11 at 14:21
    
@GoranJovic You mean like this? theguardian.com/world/2014/may/21/… –  Balder Jul 6 at 5:05
1  
@Balder Exactly! As long as he gives back the source for his ebola strain, that's fine as far as GPL is concerned. –  Goran Jovic Jul 6 at 10:31
add comment

Here is a version inspired by Jainism.

The Software shall be used for Good, and shouldn't harm directly or indirectly living beings

That sentence is general enough to include other things such as rare resources on the planet.

share|improve this answer
2  
But who defines Good? –  Félix Saparelli Feb 12 '11 at 11:49
1  
Here is my interpretation: In that specific case, Good is more a counter balance of Bad, which is defined in the second part of the sentence. –  user2567 Feb 12 '11 at 11:51
5  
This is still non-free –  hasenj Feb 13 '11 at 14:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.