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