Browse Source

Close #3: Clarify runtime license, add legal

windows-support
Macoy Madson 6 months ago
parent
commit
a67adf85e9
5 changed files with 85 additions and 3 deletions
  1. +7
    -2
      COPYING
  2. +7
    -0
      LICENSE_EXCEPTION
  3. +6
    -1
      ReadMe.org
  4. +42
    -0
      doc/Legal.org
  5. +23
    -0
      runtime/LICENSE

+ 7
- 2
COPYING View File

@ -1,6 +1,7 @@
Copyright (c) 2020 Macoy Madson
This file is part of Cakelisp.
This file is part of Cakelisp. All files excluding those in runtime/
share the following terms.
Cakelisp is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -13,4 +14,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Cakelisp. If not, see <https://www.gnu.org/licenses/>.
along with Cakelisp. If not, see <https://www.gnu.org/licenses/>.
Additional permission under GNU GPL version 3 section 7
See LICENSE_EXCEPTION

+ 7
- 0
LICENSE_EXCEPTION View File

@ -0,0 +1,7 @@
Linking Cakelisp statically or dynamically with other modules is making a combined work based on Cakelisp. Thus, the terms and conditions of the GNU General Public License cover the whole combination.
As a special exception, the copyright holders of Cakelisp give you permission to combine Cakelisp program with free software programs or libraries that are released under the GNU LGPL and with independent modules that communicate with Cakelisp solely through the Cakelisp Compile-time Code Execution interface. You may copy and distribute such a system following the terms of the GNU GPL for Cakelisp and the licenses of the other code concerned, provided that you include the source code of that other code when and as the GNU GPL requires distribution of source code and provided that you do not modify the Cakelisp Compile-time Code Execution interface.
Note that people who make modified versions of Cakelisp are not obligated to grant this special exception for their modified versions; it is their choice whether to do so. The GNU General Public License gives permission to release a modified version without this exception; this exception also makes it possible to release a modified version which carries forward this exception. If you modify the Cakelisp Compile-time Code Execution interface, this exception does not apply to your modified version of Cakelisp, and you must remove this exception when you distribute your modified version.
This exception is an additional permission under section 7 of the GNU General Public License, version 3 ("GPLv3")

+ 6
- 1
ReadMe.org View File

@ -13,7 +13,12 @@ You can see the [[https://macoy.me/blog/programming/CakelispIntro][introduction
* Terms
Cakelisp is copyright (C) 2020 Macoy Madson ~<macoy@macoy.me>~.
Licensed under ~GPL-3.0-or-later~. Contact ~macoy@macoy.me~ if you would like to negotiate an exception for your use-case.
Licensed under ~GPL-3.0-or-later~, with added [[https://www.gnu.org/licenses/gpl-faq.en.html#LinkingOverControlledInterface][Linking Over Controlled Interface]] exception.
~runtime/~ is licensed under MIT License.
Please see [[file:doc/Legal.org][doc/Legal.org]] for a detailed explanation.
Contact ~macoy@macoy.me~ if you would like to negotiate an exception for your use-case.
* Features
- *The metaprogramming capabilities of Lisp:* True full-power macro support. Macros can use compile-time code execution to conditionally change what is output based on the context of the invocation
- *The performance of C:* No heavyweight runtime, boxing/unboxing overhead, etc.


+ 42
- 0
doc/Legal.org View File

@ -0,0 +1,42 @@
#+title: Legal
The /Too Long, Didn't Read/ is this: If you make something using Cakelisp as a tool, you have full rights over the terms of that thing. If you make something which includes Cakelisp as part of the distribution to end users (for example, an IDE which has Cakelisp built-in, or a game which supports end-user modding via Cakelisp), you must comply with ~GPL-3.0-or-later~.
* Terms
- "Cakelisp": All the files, excluding ~runtime/~ within the Cakelisp repository, and the binaries generated by these files (excludes binaries generated /with/ Cakelisp binaries, i.e. user runtime code)
- "Runtime": Code which runs outside Cakelisp, after generation has been completed. This can also be termed the "user's generated program"
- "Cakelisp runtime": The files in ~runtime/~
* Copyright
Cakelisp is copyright (C) 2020 Macoy Madson ~<macoy@macoy.me>~.
* License
Licensed under ~GPL-3.0-or-later~, with added [[https://www.gnu.org/licenses/gpl-faq.en.html#LinkingOverControlledInterface][Linking Over Controlled Interface]] exception. There is no SPDX identifier for this exception, as far as I know.
~runtime/~ is licensed under ~MIT~ License.
Contact ~macoy@macoy.me~ if you would like to negotiate an exception for your use-case.
* License Exception
The ~LICENSE_EXCEPTION~ file allows the creation of plug-ins for compile-time code execution under licenses that are not the GPL. *However*, if you distribute Cakelisp with these plug-ins, you still need to distribute the source code of the plug-ins.
If your program is intended to be GPL, you must release any compile time code used to build the program along with the program's source code, because it is otherwise impossible to build the program, therefore violating the GPL.
* Cakelisp runtime exception
The files in ~runtime/~ are under MIT license instead of GPL. This is to ensure your freedom to determine license for your non-derivative work by providing minimal constraints.
* Explanation
*IMPORTANT:* This section is not legally binding, and is only meant to help the reader quickly determine whether their use-case /may/ be appropriate.
Cakelisp's licensing was chosen to protect my efforts and help the community. Generally, I think the party with the most effort spent should be able to determine the terms of that work.
If you make something utilizing Cakelisp, your something is where most of the work is. If you make something which has Cakelisp embedded as an integral/supplementary part, our work amounts are now closer to even, and you need to obey the ~GPL-3.0-or-later~. Anything you generate with Cakelisp is your own, and any Cakelisp code you write is your own, but as soon as you start distributing Cakelisp itself, you must obey the terms.
From a high level:
- Cakelisp distribution is under ~GPL-3.0-or-later~
- Cakelisp runtime distribution is under ~MIT~ License
- Runtime distribution is under whatever terms the copyright holder decides, provided that they comply with all other software they include in the runtime. If you e.g. link to a GPL library in your runtime (e.g. Cakelisp itself), you then need to comply with the GPL
** Things which are permitted
- Releasing a proprietary game/software project written in Cakelisp, without releasing any of the source code, or sharing any similar licenses. Broadly speaking, what you make /with/ Cakelisp is entirely your own
- Building a proprietary game/software project using Cakelisp's build system
- Releasing products utilizing Cakelisp to the end user, so long as the terms of the ~GPL-3.0-or-later~ are met
** Things which are *not* permitted
- Releasing a proprietary game/software project which ships any of Cakelisp, *excluding* ~runtime/~, without also releasing the source code of that project
- Distributing modified versions of Cakelisp without also releasing the full modified source code
- i.e., you must follow ~GPL-3.0-or-later~ if you actually "ship" any Cakelisp code

+ 23
- 0
runtime/LICENSE View File

@ -0,0 +1,23 @@
MIT License
Copyright (c) 2020 Macoy Madson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, 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 IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
This license applies only to the files contained in this folder (runtime/).

Loading…
Cancel
Save