1 | Armed Bear Common Lisp (ABCL) README |
---|
2 | ==================================== |
---|
3 | |
---|
4 | Armed Bear Common Lisp is a conforming implementation of ANSI X3J13 |
---|
5 | Common Lisp that runs in a Java virtual machine. It compiles Lisp |
---|
6 | code directly to Java byte code for execution. |
---|
7 | |
---|
8 | |
---|
9 | LICENSE |
---|
10 | ------- |
---|
11 | |
---|
12 | Armed Bear Common Lisp is distributed under the GNU General Public |
---|
13 | License with a classpath exception (see "Classpath Exception" below). |
---|
14 | |
---|
15 | A copy of GNU General Public License (GPLv2) is included in this |
---|
16 | distribution, in <file:COPYING>. |
---|
17 | |
---|
18 | We have modified our GPLv2 license section 13 to read: |
---|
19 | |
---|
20 | 13. Linking this library statically or dynamically with other |
---|
21 | modules is making a combined work based on this library. Thus, the |
---|
22 | terms and conditions of the GNU General Public License cover the |
---|
23 | whole combination. |
---|
24 | |
---|
25 | The following paragraph details the "classpath exception" which ABCL |
---|
26 | allows as an exception to the statement about linking libraries. |
---|
27 | |
---|
28 | As a special exception, the copyright holders of this software give |
---|
29 | you permission to link this software with independent modules to |
---|
30 | produce an executable, regardless of the license terms of these |
---|
31 | independent modules, and to copy and distribute the resulting |
---|
32 | executable under terms of your choice, provided that you also meet, |
---|
33 | for each linked independent module, the terms and conditions of the |
---|
34 | license of that module. An independent module is a module which is |
---|
35 | not derived from or based on this software. If you modify this |
---|
36 | software, you may extend this exception to your version of the |
---|
37 | software, but you are not obligated to do so. If you do not wish to |
---|
38 | do so, delete this exception statement from your version. |
---|
39 | |
---|
40 | |
---|
41 | RUNNING FROM DOCKER |
---|
42 | ------------------- |
---|
43 | |
---|
44 | With [Docker Engine][] installed one may execute: |
---|
45 | |
---|
46 | docker build -t YOURID/abcl . |
---|
47 | docker run -it YOURID/abcl |
---|
48 | |
---|
49 | to get something like |
---|
50 | |
---|
51 | illin:~/work/abcl$ docker run -it YOURID/abcl |
---|
52 | Armed Bear Common Lisp 1.7.1 |
---|
53 | Java 11.0.7 AdoptOpenJDK |
---|
54 | OpenJDK 64-Bit Server VM |
---|
55 | Low-level initialization completed in 0.295 seconds. |
---|
56 | Startup completed in 1.425 seconds. |
---|
57 | Type ":help" for a list of available commands. |
---|
58 | CL-USER(1): (lisp-implementation-version) |
---|
59 | "1.7.1" |
---|
60 | "OpenJDK_64-Bit_Server_VM-AdoptOpenJDK-11.0.7+10" |
---|
61 | "x86_64-Mac_OS_X-10.15.5" |
---|
62 | |
---|
63 | To install Quicklisp for ABCL in the Docker container run: |
---|
64 | |
---|
65 | docker run -t YOURID/abcl abcl \ |
---|
66 | --batch --load /home/abcl/work/abcl/ci/install-quicklisp.lisp |
---|
67 | |
---|
68 | See <file:Dockerfile> for the build instructions. |
---|
69 | |
---|
70 | [Docker Engine]: https://www.docker.com/products/docker-engine |
---|
71 | |
---|
72 | |
---|
73 | |
---|
74 | RUNNING FROM BINARY RELEASE |
---|
75 | --------------------------- |
---|
76 | |
---|
77 | After you have downloaded a binary release from either [the |
---|
78 | distributed Maven POM graph][maven-abcl] or from |
---|
79 | [abcl.org][abcl.org-release] archive unpack it into its own |
---|
80 | directory. To run ABCL directly from this directory, make sure the |
---|
81 | Java executable (`java`) (Java 6, 7, 8, 11, 13, and 14 are supported |
---|
82 | by ABCL 1.7.1) is in your shell's path. |
---|
83 | |
---|
84 | [maven-abcl]: <https://mvnrepository.com/artifact/org.abcl/abcl/1.7.1> |
---|
85 | [maven-abcl-contrib]: <https://mvnrepository.com/artifact/org.abcl/abcl-contrib/1.7.1> |
---|
86 | [abcl.org-release]: <http://abcl.org/releases/1.7.1/> |
---|
87 | |
---|
88 | To start ABCL, simply issue the following command: |
---|
89 | |
---|
90 | cmd$ java -jar abcl.jar |
---|
91 | |
---|
92 | which should result in output like the following |
---|
93 | |
---|
94 | Armed Bear Common Lisp 1.7.1 |
---|
95 | Java 1.8.0_252 AdoptOpenJDK |
---|
96 | OpenJDK 64-Bit Server VM |
---|
97 | Low-level initialization completed in 0.222 seconds. |
---|
98 | Startup completed in 1.09 seconds. |
---|
99 | Type ":help" for a list of available commands. |
---|
100 | CL-USER(1): |
---|
101 | |
---|
102 | Yer now at the interactive ABCL "Read Eval Print Loop" (REPL): hacks |
---|
103 | 'n glory await. |
---|
104 | |
---|
105 | |
---|
106 | SLIME |
---|
107 | ----- |
---|
108 | |
---|
109 | For usage of ABCL with the [Superior Lisp Interaction Mode for |
---|
110 | Emacs][slime], one may easily start a Swank listener via: |
---|
111 | |
---|
112 | (require :asdf) |
---|
113 | (require :abcl-contrib) |
---|
114 | (asdf:load-system :quicklisp-abcl) |
---|
115 | (ql:quickload :swank) |
---|
116 | (swank:create-server :dont-close t) |
---|
117 | |
---|
118 | [slime]: https://common-lisp.net/project/slime/ |
---|
119 | |
---|
120 | |
---|
121 | Building From Source Release |
---|
122 | ---------------------------- |
---|
123 | |
---|
124 | ABCL may be built from its source code by executing the build |
---|
125 | instructions <file:build.xml> expressed by the venerable Apache Ant |
---|
126 | tool. |
---|
127 | |
---|
128 | To build, one must have a Java 6, 7, 8, 11, 13 or 14 Java Development |
---|
129 | Kit (openjdk) installed locally. Just the Java Runtime Environment |
---|
130 | (JRE) isn't enough, as you need the Java compiler ('javac') to compile |
---|
131 | the Java source of the ABCL implementation. |
---|
132 | |
---|
133 | Download a binary distribution [Ant version 1.7.1 or greater][ant]. |
---|
134 | Unpack the files somewhere convenient, ensuring that the 'ant' (or |
---|
135 | 'ant.bat' under Windows) executable is in your path and executable. |
---|
136 | |
---|
137 | [ant]: http://ant.apache.org/bindownload.cgi |
---|
138 | |
---|
139 | Then simply executing |
---|
140 | |
---|
141 | cmd$ ant |
---|
142 | |
---|
143 | from the directory containing the <file:build.xml> instructions will |
---|
144 | create an executable wrapper ('abcl' under UNIX, 'abcl.bat' under |
---|
145 | Windows). Use this wrapper to start ABCL. |
---|
146 | |
---|
147 | The build may be customized by copying <file:abcl.properties.in> to |
---|
148 | <file:abcl.properties>, which will cause Ant to attempt to build |
---|
149 | incrementally as well as optimizing the runtime for a contemporary |
---|
150 | 64bit desktop/server machine running Java 8 or 11. The file contains |
---|
151 | incomplete documentation on how it may be edited for subsequent |
---|
152 | customization. As an alternative to copying the prototype, if one has |
---|
153 | a version of bash locally, one may issue via Ant |
---|
154 | |
---|
155 | ant abcl.properties.autoconfigure.openjdk.11 |
---|
156 | |
---|
157 | or from the shell as |
---|
158 | |
---|
159 | bash ci/create-abcl-properties.bash openjdk11 |
---|
160 | |
---|
161 | Currently supported platforms are 'openjdk6', 'openjdk7', 'openjdk8', |
---|
162 | 'openjdk11', 'openjdk13', and 'openjdk14'. |
---|
163 | |
---|
164 | |
---|
165 | Using NetBeans |
---|
166 | -------------- |
---|
167 | |
---|
168 | Alternatively, one may install the [Netbeans visual integrated |
---|
169 | development environment][netbeans], which contains both the Java |
---|
170 | Development Kit as well as the Ant build tool. The source |
---|
171 | distribution contains Netbeans-specific project artifacts under |
---|
172 | <file:nbproject> for loading ABCL as a Netbeans project. |
---|
173 | |
---|
174 | With Netbeans, one should be able to open the ABCL directory as a |
---|
175 | project whereupon the usual build, run, and debug targets as invoked |
---|
176 | in the GUI are available. Use the 'slime' config with a suitably |
---|
177 | linked SLIME `swank.asd` ASDF configuration |
---|
178 | <file:~/.config/common-lisp/source-registry.conf.d/> to connect a REPL |
---|
179 | to the NetBeans debug process. |
---|
180 | |
---|
181 | [netbeans]: http://netbeans.org/downloads/ |
---|
182 | |
---|
183 | |
---|
184 | Bugs |
---|
185 | ---- |
---|
186 | |
---|
187 | Armed Bear Common Lisp strives to be a conforming ANSI X3J13 Common |
---|
188 | Lisp implementation. Any other behavior should be reported as a bug. |
---|
189 | |
---|
190 | ABCL has a [User Manual][manual] stating its conformance to the ANSI |
---|
191 | standard, providing a compliant and practical Common Lisp |
---|
192 | implementation. |
---|
193 | |
---|
194 | [manual]: https://abcl.org/releases/1.7.1/abcl-1.7.1.pdf |
---|
195 | |
---|
196 | |
---|
197 | Tests |
---|
198 | ----- |
---|
199 | |
---|
200 | ABCL 1.7.1 currently fails ~45-46 out of 21848 total tests, whereas ABCL |
---|
201 | 1.5.0 failed 48 out of 21708 total tests in the [revised and expanded |
---|
202 | ANSI CL test suite][ansi-test] (derived from the tests originally |
---|
203 | written for GCL). |
---|
204 | |
---|
205 | [ansi-test]: git+https://gitlab.common-lisp.net/ansi-test/ansi-test.git |
---|
206 | |
---|
207 | Maxima's test suite runs without failures. |
---|
208 | |
---|
209 | ABCL comes with a test suite. Consult the output of `ant help.test` |
---|
210 | for more information. |
---|
211 | |
---|
212 | |
---|
213 | Support |
---|
214 | ------- |
---|
215 | |
---|
216 | ABCL has many deficiencies, both known and unknown. Descriptions, |
---|
217 | tests, and even patches to address them will be gladly accepted. |
---|
218 | |
---|
219 | Please report problems to the [development mailing list][mailing-list] |
---|
220 | or via opening an issue on either the [ABCL trac instance][trac] or |
---|
221 | [github][]. |
---|
222 | |
---|
223 | [mailing-list]: https://mailman.common-lisp.net/pipermail/armedbear-devel/ |
---|
224 | [github]: https://github.com/armedbear/abcl/issues |
---|
225 | [trac]: https://abcl.org/trac/ |
---|
226 | |
---|
227 | |
---|
228 | Authors |
---|
229 | ------- |
---|
230 | |
---|
231 | On behalf of all ABCL development team and contributors, |
---|
232 | |
---|
233 | Mark Evenson |
---|
234 | Erik HÃŒlsmann |
---|
235 | Rudolf Schlatte |
---|
236 | Alessio Stalla |
---|
237 | Ville Voutilainen |
---|
238 | |
---|
239 | alan |
---|
240 | olof ferada |
---|
241 | pipping |
---|
242 | slyrus |
---|
243 | vibhu |
---|
244 | dmiles |
---|
245 | |
---|
246 | András Simon |
---|
247 | Peter Graves |
---|
248 | |
---|
249 | Have fun! |
---|
250 | |
---|
251 | July 2020 |
---|