1 | Armed Bear Common Lisp README |
---|
2 | ============================= |
---|
3 | |
---|
4 | GENERAL INFORMATION |
---|
5 | ------------------- |
---|
6 | |
---|
7 | Armed Bear Common Lisp is a conforming implementation of ANSI Common |
---|
8 | Lisp that runs in a Java virtual machine. It compiles Lisp code |
---|
9 | directly to Java byte code. |
---|
10 | |
---|
11 | |
---|
12 | LICENSE |
---|
13 | ======= |
---|
14 | |
---|
15 | Armed Bear Common Lisp is distributed under the GNU General Public |
---|
16 | License with a classpath exception (see "Classpath Exception" below). |
---|
17 | |
---|
18 | A copy of GNU General Public License (GPL) is included in this |
---|
19 | distribution, in the file COPYING. |
---|
20 | |
---|
21 | Linking this software statically or dynamically with other modules is |
---|
22 | making a combined work based on this software. Thus, the terms and |
---|
23 | conditions of the GNU General Public License cover the whole |
---|
24 | combination. |
---|
25 | |
---|
26 | ** Classpath Exception |
---|
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 not |
---|
35 | derived from or based on this software. If you modify this software, |
---|
36 | you may extend this exception to your version of the software, but you |
---|
37 | are not obligated to do so. If you do not wish to do so, delete this |
---|
38 | exception statement from your version. |
---|
39 | |
---|
40 | |
---|
41 | RUNNING FROM BINARY RELEASE |
---|
42 | =========================== |
---|
43 | |
---|
44 | After you have downloaded a binary release archive unpack it into its |
---|
45 | own directory. To run ABCL directly from this directory, make sure |
---|
46 | Java (version 1.5 or up) is in your shell's path. Then issue the |
---|
47 | following command: |
---|
48 | |
---|
49 | cmd$ java -jar abcl.jar |
---|
50 | |
---|
51 | which should result in output like the following |
---|
52 | |
---|
53 | Armed Bear Common Lisp 1.2.0 |
---|
54 | Java 1.6.0_21 Sun Microsystems Inc. |
---|
55 | Java HotSpot(TM) Client VM |
---|
56 | Low-level initialization completed in 0.3 seconds. |
---|
57 | Startup completed in 2.294 seconds. |
---|
58 | Type ":help" for a list of available commands. |
---|
59 | CL-USER(1): |
---|
60 | |
---|
61 | |
---|
62 | BUILDING FROM SOURCE RELEASE |
---|
63 | ============================ |
---|
64 | |
---|
65 | There are three ways to build ABCL from the source release with the |
---|
66 | preferred (and most tested way) is to being to use the Ant build tool: |
---|
67 | |
---|
68 | * Use the Ant build tool for Java environments. |
---|
69 | |
---|
70 | * Use the NetBeans [67].x IDE to open ABCL as a project. |
---|
71 | |
---|
72 | * Bootstrap ABCL using a Common Lisp implementation. Supported |
---|
73 | implementations for this process: SBCL, CMUCL, OpenMCL, Allegro |
---|
74 | CL, LispWorks or CLISP. |
---|
75 | |
---|
76 | In all cases you need a Java 5 or later JDK (JDK 1.[567] have been |
---|
77 | tested). Just the JRE isn't enough, as you need the Java compiler |
---|
78 | ('javac') to compile the Java source of the ABCL implementation. |
---|
79 | |
---|
80 | Note that when deploying ABCL having JDK isn't a requirement for the |
---|
81 | installation site, just the equivalent JRE, as ABCL compiles directly |
---|
82 | to byte code, avoiding the need for the 'javac' compiler in deployment |
---|
83 | environments. |
---|
84 | |
---|
85 | |
---|
86 | Using Ant |
---|
87 | --------- |
---|
88 | |
---|
89 | Download a binary distribution [Ant version 1.7.1 or greater][1]. |
---|
90 | Unpack the files somewhere convenient, ensuring that the 'ant' (or |
---|
91 | 'ant.bat' under Windows) executable is in your path and executable. |
---|
92 | |
---|
93 | [1]: http://ant.apache.org/bindownload.cgi |
---|
94 | |
---|
95 | Then simply executing |
---|
96 | |
---|
97 | unix$ ant |
---|
98 | |
---|
99 | or |
---|
100 | |
---|
101 | dos> ant.bat |
---|
102 | |
---|
103 | from the directory containing this README file will create an |
---|
104 | executable wrapper ('abcl' under UNIX, 'abcl.bat' under Windows). Use |
---|
105 | this wrapper to start ABCL. |
---|
106 | |
---|
107 | |
---|
108 | Using NetBeans |
---|
109 | -------------- |
---|
110 | |
---|
111 | Obtain and install the [NetBeans IDE][2]. One should be able to open |
---|
112 | the ABCL directory as a project in the Netbeans 6.x application, |
---|
113 | whereupon the usual build, run, and debug targets as invoked in the |
---|
114 | GUI are available. |
---|
115 | |
---|
116 | [2]: http://netbeans.org/downloads/ |
---|
117 | |
---|
118 | |
---|
119 | Building from Lisp |
---|
120 | ------------------ |
---|
121 | |
---|
122 | Building from a Lisp is the most venerable and untested way of |
---|
123 | building ABCL. It produces a "non-standard" version of the |
---|
124 | distribution that doesn't share build instructions with the previous |
---|
125 | two methods, but it still may be of interest to those who absolutely |
---|
126 | don't want to know anything about Java. |
---|
127 | |
---|
128 | First, copy the file 'customizations.lisp.in' to 'customization.lisp', |
---|
129 | in the directory containing this README file, editing to suit your |
---|
130 | situation, paying attention to the comments in the file. The critical |
---|
131 | step is to have Lisp special variable '*JDK*' point to the root of the |
---|
132 | Java Development Kit. Underneath the directory referenced by the |
---|
133 | value of '*JDK*' there should be an executable Java compiler in |
---|
134 | 'bin/javac' ('bin/java.exe' under Windows). |
---|
135 | |
---|
136 | Then, one may either use the 'build-from-lisp.sh' shell script or load |
---|
137 | the necessary files into your Lisp image by hand. |
---|
138 | |
---|
139 | ** Using the 'build-from-lisp.sh' script |
---|
140 | |
---|
141 | Under UNIX-like systems, you may simply invoke the |
---|
142 | 'build-from-lisp.sh' script as './build-from-lisp.sh |
---|
143 | <lisp-of-choice>', e.g. |
---|
144 | |
---|
145 | unix$ ./build-from-lisp.sh sbcl |
---|
146 | |
---|
147 | After a successful build, you may use 'abcl' ('abcl.bat' on Windows) |
---|
148 | to start ABCL. Note that this wrappers contain absolute paths, so |
---|
149 | you'll need to edit them if you move things around after the build. |
---|
150 | |
---|
151 | If you're developing on ABCL, you may want to use |
---|
152 | |
---|
153 | unix$ ./build-from-lisp.sh <implementation> --clean=nil |
---|
154 | |
---|
155 | to not do a full rebuild. |
---|
156 | |
---|
157 | In case of failure in the javac stage, you might try this: |
---|
158 | |
---|
159 | unix$ ./build-from-lisp.sh <implementation> --full=t --clean=t --batch=nil |
---|
160 | |
---|
161 | This invokes javac separately for each .java file, which avoids running |
---|
162 | into limitations on command line length (but is a lot slower). |
---|
163 | |
---|
164 | ** Building from another Lisp by hand |
---|
165 | |
---|
166 | There is also an ASDF definition in 'abcl.asd' for the BUILD-ABCL |
---|
167 | which can be used to load the necessary Lisp definitions, after which |
---|
168 | |
---|
169 | CL-USER> (build-abcl:build-abcl :clean t :full t) |
---|
170 | |
---|
171 | will build ABCL. If ASDF isn't present, simply LOAD the |
---|
172 | 'customizations.lisp' and 'build-abcl.lisp' files to achieve the same |
---|
173 | effect as loading the ASDF definition. |
---|
174 | |
---|
175 | |
---|
176 | BUGS |
---|
177 | ==== |
---|
178 | |
---|
179 | ABCL is a conforming ANSI Common Lisp implementation. Any other |
---|
180 | behavior should be reported as a bug. |
---|
181 | |
---|
182 | ABCL now has a manual stating its conformance to the ANSI standard, |
---|
183 | providing a compliant and practical Common Lisp implementation. |
---|
184 | Because of this, |
---|
185 | |
---|
186 | |
---|
187 | ### Tests |
---|
188 | |
---|
189 | ABCL 1.2.0 now fails only 1[4-6] out of 21708 total tests in the ANSI CL |
---|
190 | test suite (derived from the tests originally written for GCL). |
---|
191 | |
---|
192 | Maxima's test suite runs without failures. |
---|
193 | |
---|
194 | ABCL comes with a test suite, see the output of `ant help.test` for more |
---|
195 | information. |
---|
196 | |
---|
197 | ### Deficiencies |
---|
198 | |
---|
199 | The MOP implementation is incompletel untested. |
---|
200 | |
---|
201 | Patches to address any of the issues mentioned above will |
---|
202 | be gladly accepted. |
---|
203 | |
---|
204 | # Contact |
---|
205 | |
---|
206 | Please report problems to the development mailing list: |
---|
207 | |
---|
208 | <armedbear-devel@common-lisp.net> |
---|
209 | |
---|
210 | Have fun! |
---|
211 | |
---|
212 | # Authors |
---|
213 | |
---|
214 | On behalf of all ABCL development team and contributors, |
---|
215 | |
---|
216 | Mark Evenson |
---|
217 | Erik Huelsmann |
---|
218 | Rudolf Schlatte |
---|
219 | Alessio Stalla |
---|
220 | Ville Voutilainen |
---|
221 | |
---|
222 | December 2012 |
---|
223 | |
---|