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