Skip to content


Subversion checkout URL

You can clone with
Download ZIP
100644 250 lines (199 sloc) 11.8 KB
f2f2085 @vsedach Initial commit. Future and scheduler.
1 Eager Future2 is copyright (C) 2010, Vladimir Sedach <>
3 All parts of Eager Future2 are licensed under the terms of the LLGPL
4 unless otherwise noted.
6 This library is free software; you can redistribute it and/or modify
7 it under the terms of the Lisp Lesser General Public License version
4f9c1e6 @vsedach Done basic future creation and yield interface.
8 3, which consists of the GNU Lesser General Public License, either
9 version 3 or (at your option) any later version, as published by the
10 Free Software Foundation, and the Franz preamble.
f2f2085 @vsedach Initial commit. Future and scheduler.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 Lesser General Public License for more details.
17 ---------
18 The text of the LLGPL terms and conditions follows:
20 Preamble to the Gnu Lesser General Public License
22 Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704
24 The concept of the GNU Lesser General Public License version 2.1
25 ("LGPL") has been adopted to govern the use and distribution of
26 above-mentioned application. However, the LGPL uses terminology that
27 is more appropriate for a program written in C than one written in
28 Lisp. Nevertheless, the LGPL can still be applied to a Lisp program if
29 certain clarifications are made. This document details those
30 clarifications. Accordingly, the license for the open-source Lisp
31 applications consists of this document plus the LGPL. Wherever there
32 is a conflict between this document and the LGPL, this document takes
33 precedence over the LGPL.
35 A "Library" in Lisp is a collection of Lisp functions, data and
36 foreign modules. The form of the Library can be Lisp source code (for
37 processing by an interpreter) or object code (usually the result of
38 compilation of source code or built with some other
39 mechanisms). Foreign modules are object code in a form that can be
40 linked into a Lisp executable. When we speak of functions we do so in
41 the most general way to include, in addition, methods and unnamed
42 functions. Lisp "data" is also a general term that includes the data
43 structures resulting from defining Lisp classes. A Lisp application
44 may include the same set of Lisp objects as does a Library, but this
45 does not mean that the application is necessarily a "work based on the
46 Library" it contains.
48 The Library consists of everything in the distribution file set before
49 any modifications are made to the files. If any of the functions or
50 classes in the Library are redefined in other files, then those
51 redefinitions ARE considered a work based on the Library. If
52 additional methods are added to generic functions in the Library,
53 those additional methods are NOT considered a work based on the
54 Library. If Library classes are subclassed, these subclasses are NOT
55 considered a work based on the Library. If the Library is modified to
56 explicitly call other functions that are neither part of Lisp itself
57 nor an available add-on module to Lisp, then the functions called by
58 the modified Library ARE considered a work based on the Library. The
59 goal is to ensure that the Library will compile and run without
60 getting undefined function errors.
62 It is permitted to add proprietary source code to the Library, but it
63 must be done in a way such that the Library will still run without
64 that proprietary code present. Section 5 of the LGPL distinguishes
65 between the case of a library being dynamically linked at runtime and
66 one being statically linked at build time. Section 5 of the LGPL
67 states that the former results in an executable that is a "work that
68 uses the Library." Section 5 of the LGPL states that the latter
69 results in one that is a "derivative of the Library", which is
70 therefore covered by the LGPL. Since Lisp only offers one choice,
71 which is to link the Library into an executable at build time, we
72 declare that, for the purpose applying the LGPL to the Library, an
73 executable that results from linking a "work that uses the Library"
74 with the Library is considered a "work that uses the Library" and is
75 therefore NOT covered by the LGPL.
77 Because of this declaration, section 6 of LGPL is not applicable to
78 the Library. However, in connection with each distribution of this
79 executable, you must also deliver, in accordance with the terms and
80 conditions of the LGPL, the source code of Library (or your derivative
81 thereof) that is incorporated into this executable.
83 End of Preamble
86 Version 3, 29 June 2007
88 Copyright (C) 2007 Free Software Foundation, Inc. <>
89 Everyone is permitted to copy and distribute verbatim copies
90 of this license document, but changing it is not allowed.
93 This version of the GNU Lesser General Public License incorporates
94 the terms and conditions of version 3 of the GNU General Public
95 License, supplemented by the additional permissions listed below.
97 0. Additional Definitions.
99 As used herein, "this License" refers to version 3 of the GNU Lesser
100 General Public License, and the "GNU GPL" refers to version 3 of the GNU
101 General Public License.
103 "The Library" refers to a covered work governed by this License,
104 other than an Application or a Combined Work as defined below.
106 An "Application" is any work that makes use of an interface provided
107 by the Library, but which is not otherwise based on the Library.
108 Defining a subclass of a class defined by the Library is deemed a mode
109 of using an interface provided by the Library.
111 A "Combined Work" is a work produced by combining or linking an
112 Application with the Library. The particular version of the Library
113 with which the Combined Work was made is also called the "Linked
114 Version".
116 The "Minimal Corresponding Source" for a Combined Work means the
117 Corresponding Source for the Combined Work, excluding any source code
118 for portions of the Combined Work that, considered in isolation, are
119 based on the Application, and not on the Linked Version.
121 The "Corresponding Application Code" for a Combined Work means the
122 object code and/or source code for the Application, including any data
123 and utility programs needed for reproducing the Combined Work from the
124 Application, but excluding the System Libraries of the Combined Work.
126 1. Exception to Section 3 of the GNU GPL.
128 You may convey a covered work under sections 3 and 4 of this License
129 without being bound by section 3 of the GNU GPL.
131 2. Conveying Modified Versions.
133 If you modify a copy of the Library, and, in your modifications, a
134 facility refers to a function or data to be supplied by an Application
135 that uses the facility (other than as an argument passed when the
136 facility is invoked), then you may convey a copy of the modified
137 version:
139 a) under this License, provided that you make a good faith effort to
140 ensure that, in the event an Application does not supply the
141 function or data, the facility still operates, and performs
142 whatever part of its purpose remains meaningful, or
144 b) under the GNU GPL, with none of the additional permissions of
145 this License applicable to that copy.
147 3. Object Code Incorporating Material from Library Header Files.
149 The object code form of an Application may incorporate material from
150 a header file that is part of the Library. You may convey such object
151 code under terms of your choice, provided that, if the incorporated
152 material is not limited to numerical parameters, data structure
153 layouts and accessors, or small macros, inline functions and templates
154 (ten or fewer lines in length), you do both of the following:
156 a) Give prominent notice with each copy of the object code that the
157 Library is used in it and that the Library and its use are
158 covered by this License.
160 b) Accompany the object code with a copy of the GNU GPL and this license
161 document.
163 4. Combined Works.
165 You may convey a Combined Work under terms of your choice that,
166 taken together, effectively do not restrict modification of the
167 portions of the Library contained in the Combined Work and reverse
168 engineering for debugging such modifications, if you also do each of
169 the following:
171 a) Give prominent notice with each copy of the Combined Work that
172 the Library is used in it and that the Library and its use are
173 covered by this License.
175 b) Accompany the Combined Work with a copy of the GNU GPL and this license
176 document.
178 c) For a Combined Work that displays copyright notices during
179 execution, include the copyright notice for the Library among
180 these notices, as well as a reference directing the user to the
181 copies of the GNU GPL and this license document.
183 d) Do one of the following:
185 0) Convey the Minimal Corresponding Source under the terms of this
186 License, and the Corresponding Application Code in a form
187 suitable for, and under terms that permit, the user to
188 recombine or relink the Application with a modified version of
189 the Linked Version to produce a modified Combined Work, in the
190 manner specified by section 6 of the GNU GPL for conveying
191 Corresponding Source.
193 1) Use a suitable shared library mechanism for linking with the
194 Library. A suitable mechanism is one that (a) uses at run time
195 a copy of the Library already present on the user's computer
196 system, and (b) will operate properly with a modified version
197 of the Library that is interface-compatible with the Linked
198 Version.
200 e) Provide Installation Information, but only if you would otherwise
201 be required to provide such information under section 6 of the
202 GNU GPL, and only to the extent that such information is
203 necessary to install and execute a modified version of the
204 Combined Work produced by recombining or relinking the
205 Application with a modified version of the Linked Version. (If
206 you use option 4d0, the Installation Information must accompany
207 the Minimal Corresponding Source and Corresponding Application
208 Code. If you use option 4d1, you must provide the Installation
209 Information in the manner specified by section 6 of the GNU GPL
210 for conveying Corresponding Source.)
212 5. Combined Libraries.
214 You may place library facilities that are a work based on the
215 Library side by side in a single library together with other library
216 facilities that are not Applications and are not covered by this
217 License, and convey such a combined library under terms of your
218 choice, if you do both of the following:
220 a) Accompany the combined library with a copy of the same work based
221 on the Library, uncombined with any other library facilities,
222 conveyed under the terms of this License.
224 b) Give prominent notice with the combined library that part of it
225 is a work based on the Library, and explaining where to find the
226 accompanying uncombined form of the same work.
228 6. Revised Versions of the GNU Lesser General Public License.
230 The Free Software Foundation may publish revised and/or new versions
231 of the GNU Lesser General Public License from time to time. Such new
232 versions will be similar in spirit to the present version, but may
233 differ in detail to address new problems or concerns.
235 Each version is given a distinguishing version number. If the
236 Library as you received it specifies that a certain numbered version
237 of the GNU Lesser General Public License "or any later version"
238 applies to it, you have the option of following the terms and
239 conditions either of that published version or of any later version
240 published by the Free Software Foundation. If the Library as you
241 received it does not specify a version number of the GNU Lesser
242 General Public License, you may choose any version of the GNU Lesser
243 General Public License ever published by the Free Software Foundation.
245 If the Library as you received it specifies that a proxy can decide
246 whether future versions of the GNU Lesser General Public License shall
247 apply, that proxy's public statement of acceptance of any version is
248 permanent authorization for you to choose that version for the
249 Library.
Something went wrong with that request. Please try again.