-
Notifications
You must be signed in to change notification settings - Fork 30
/
README
299 lines (213 loc) · 9.26 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
Armed Bear Common Lisp (ABCL)
=============================
Armed Bear Common Lisp is a conforming implementation of ANSI X3J13
Common Lisp that runs in a Java virtual machine. It compiles Lisp
code directly to Java byte code for execution.
LICENSE
-------
Armed Bear Common Lisp is distributed under the GNU General Public
License with a classpath exception (see "Classpath Exception" below).
A copy of GNU General Public License (GPLv2) is included in this
distribution, in <file:COPYING>.
We have modified our GPLv2 license section 13 to read:
13. Linking this library statically or dynamically with other
modules is making a combined work based on this library. Thus, the
terms and conditions of the GNU General Public License cover the
whole combination.
The following paragraph details the "classpath exception" which ABCL
allows as an exception to the statement about linking libraries.
As a special exception, the copyright holders of this software give
you permission to link this software with independent modules to
produce an executable, regardless of the license terms of these
independent modules, and to copy and distribute the resulting
executable under terms of your choice, provided that you also meet,
for each linked independent module, the terms and conditions of the
license of that module. An independent module is a module which is
not derived from or based on this software. If you modify this
software, you may extend this exception to your version of the
software, but you are not obligated to do so. If you do not wish to
do so, delete this exception statement from your version.
CONTAINERIZATION
----------------
We recommend using podman over docker for political reasons, but the
surface syntax is identical so if you must, just substitute `docker`
for `podman` in the following examples.
With [podman][] installed, one may execute:
podman build -t YOURID/abcl .
podman run -it YOURID/abcl
to get something like
illin:~/work/abcl$ podman run -it YOURID/abcl
VM settings:
Max. Heap Size (Estimated): 3.89G
Using VM: OpenJDK 64-Bit Server VM
Armed Bear Common Lisp 1.9.2
Java 17.0.2 Oracle Corporation
OpenJDK 64-Bit Server VM
Low-level initialization completed in 0.432 seconds.
Startup completed in 2.246 seconds.
Type ":help" for a list of available commands.
CL-USER(1):
To install Quicklisp for ABCL in the container run:
podman run -t YOURID/abcl abcl \
--batch --load /home/abcl/work/abcl/ci/install-quicklisp.lisp
See <file:Dockerfile> for the build instructions.
[podman]: <https://podman.io/releases/>
[Docker Engine]: <https://www.docker.com/products/docker-engine>
RUNNING FROM BINARY RELEASE
---------------------------
After you have downloaded a binary release from either [the
distributed Maven POM graph][maven-abcl] or from
[abcl.org][abcl.org-release] archive unpack it into its own
directory. To run ABCL directly from this directory, make sure the
Java executable (`java`) is in your shell's path. Java 8, 11, 17 are
strongly supported by ABCL, but others may work with a little elbow
grease.
[maven-abcl]: <https://mvnrepository.com/artifact/org.abcl/abcl/1.9.2>
[maven-abcl-contrib]: <https://mvnrepository.com/artifact/org.abcl/abcl-contrib/1.9.2>
[abcl.org-release]: <http://abcl.org/releases/1.9.2/>
To start ABCL, simply issue the following command:
cmd$ java -jar abcl.jar
which should result in output like the following
Armed Bear Common Lisp 1.9.2
Java 17.0.7 OpenJDK Porters Group
OpenJDK 64-Bit Server VM
Low-level initialization completed in 0.107 seconds.
Startup completed in 0.493 seconds.
CL-USER(1):
Yer now at the interactive ABCL "Read Eval Print Loop" (REPL): hacks
'n glory await.
See the section headed "SLIME" for instructions to connect to this
repl from Emacs.
BUILDING FROM SOURCE RELEASE
----------------------------
ABCL may be built from its source code by executing the build
instructions <file:build.xml> expressed by the venerable Apache Ant
tool. Alternately, one may use the Apache Maven tool as a facade to
Ant.
To build, one must have a Java 8, 11, or 17 openjdk installed
locally. Just the Java Runtime Environment (JRE) isn't enough, as you
need the Java compiler ('javac') to compile the Java source of the
ABCL implementation.
Download a binary distribution [Ant version 1.7.1 or greater][ant].
Unpack the files somewhere convenient, ensuring that the 'ant' (or
'ant.bat' under Windows) executable is in your path and executable.
[ant]: <https://ant.apache.org/bindownload.cgi>
Then simply executing
cmd$ ant
To use [Maven][], download it, ensure the `mvn` executable is in your
PATH and then
cmd$ mvn -Dmaven.test.skip=true install
[Maven]: <https://maven.apache.org/download.cgi>
from the directory containing the <file:build.xml> instructions will
create an executable wrapper ('abcl' under UNIX, 'abcl.bat' under
Windows). Use this wrapper to start ABCL.
The build may be customized by copying <file:abcl.properties.in> to
<file:abcl.properties>, which will cause Ant to attempt to build
incrementally as well as optimizing the runtime for a contemporary
64bit desktop/server machine running Java 8, 11, and/or 17. The file
contains incomplete documentation on how it may be edited for
subsequent customization. As an alternative to copying the prototype,
if one has a version of bash locally, one may issue via Ant
ant abcl.properties.autoconfigure.openjdk.17
or from the shell as
bash ci/create-abcl-properties.bash openjdk17
Currently supported platforms are 'openjdk8', 'openjdk11',
'openjdk13', 'openjdk14', 'openjdk15', 'openjd16', 'openjdk17',
'openjdk18', and 'openjdk19'.
USING APACHE NETBEANS
---------------------
Alternatively, one may install the [Netbeans visual integrated
development environment][netbeans], which contains both the Java
Development Kit as well as the Ant build tool. The source
distribution contains Netbeans-specific project artifacts under
<file:nbproject> for loading ABCL as a Netbeans project.
With Netbeans, one should be able to open the ABCL directory as a
project whereupon the usual build, run, and debug targets as invoked
in the GUI are available. To launch the debugging target it is
currently necessary to have the `abcl.build.incremental` Ant property
be set to `true`. This can most easily be affected by running the
autoconfigure mechanism for the underlying JVM platform as documented
in the previous section entitlted "BUILDING FROM SOURCE RELEASE".
To connect to the running Netbeans process, one may use the `slime`
Netbeans configuration connecting to <tcp:4:localhost:4005> when
prompted from an invocation M-x slime-connect with Emacs. For this to
work, ASDF must be configured to find a suitably linked SLIME
`swank.asd`; the Lisp stanzas in the subsequent section entitled
"SLIME" affect this in the local installation.
[netbeans]: <https://netbeans.org/downloads/>
SLIME
-----
For usage of ABCL with the [Superior Lisp Interaction Mode for
Emacs][slime], one may easily start a Swank listener via:
(require :asdf)
(require :abcl-contrib)
(asdf:load-system :quicklisp-abcl)
(or
(asdf:make :swank)
(ql:quickload :swank))
(swank:create-server :dont-close t)
[slime]: <https://common-lisp.net/project/slime/>
BUGS
----
Armed Bear Common Lisp strives to be a conforming ANSI X3J13 Common
Lisp implementation. Any other behavior should be reported as a bug.
ABCL has a [User Manual][manual] stating its conformance to the ANSI
standard, providing a compliant and practical Common Lisp
implementation.
[manual]: <https://abcl.org/releases/1.9.2/abcl-1.9.2.pdf>
TESTS
-----
| Version | Failures | Total |
|---------+----------+-------|
| 1.9.2 | 63 | 21902 |
| 1.9.1 | 60 | 21870 |
| 1.9.0 | 61 | 21870 |
| 1.8.0 | 49 | 21848 |
| 1.5.0 | 48 | 21708 |
ABCL 1.9.2 currently fails ~63 out of 21902 the current ANSI test
suite derived from the tests originally written for GCL.
[ansi-test]: <git+https://gitlab.common-lisp.net/ansi-test/ansi-test.git>
Maxima's test suite runs without failures.
ABCL comes with a test suite. Consult the output of `ant help.test`
for more information.
SUPPORT
-------
ABCL has many deficiencies, both known and unknown. Descriptions,
tests, and even patches to address them will be gladly accepted.
Please report problems to the [development mailing list][mailing-list]
or via opening an issue on either the [ABCL trac instance][trac] or
[github][].
[mailing-list]: <https://mailman.common-lisp.net/pipermail/armedbear-devel/>
[github]: <https://github.com/armedbear/abcl/issues>
[trac]: <https://abcl.org/trac/>
AUTHORS
-------
On behalf of all ABCL development team and contributors,
Mark Evenson
Erik Hülsmann
Rudolf Schlatte
Alessio Stalla
Ville Voutilainen
alan
dmiles
Dmitry Nadezhin
olof ferada
pipping
slyrus
vibhu
Jonathan Cunningham
Uthar
alejandrozf
phoe
jackdaniel
Robert Munyer
Eric Timmons (daewok)
contrapunctus
Scott Burson
Samuel Hunter
Phil Eaton
jpellegrini
András Simon
Peter Graves
Have fun!
June 2023