| 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 (GPLv2) is included in this |
|---|
| 19 | distribution, in <file:COPYING>. |
|---|
| 20 | |
|---|
| 21 | We have modified our GPLv2 license section 13 to read: |
|---|
| 22 | |
|---|
| 23 | 13. Linking this library statically or dynamically with other |
|---|
| 24 | modules is making a combined work based on this library. Thus, the |
|---|
| 25 | terms and conditions of the GNU General Public License cover the |
|---|
| 26 | whole combination. |
|---|
| 27 | |
|---|
| 28 | The following paragraph details the "classpath exception" which ABCL |
|---|
| 29 | allows as an exception to the statement about linking libraries. |
|---|
| 30 | |
|---|
| 31 | As a special exception, the copyright holders of this software give |
|---|
| 32 | you permission to link this software with independent modules to |
|---|
| 33 | produce an executable, regardless of the license terms of these |
|---|
| 34 | independent modules, and to copy and distribute the resulting |
|---|
| 35 | executable under terms of your choice, provided that you also meet, |
|---|
| 36 | for each linked independent module, the terms and conditions of the |
|---|
| 37 | license of that module. An independent module is a module which is |
|---|
| 38 | not derived from or based on this software. If you modify this |
|---|
| 39 | software, you may extend this exception to your version of the |
|---|
| 40 | software, but you are not obligated to do so. If you do not wish to |
|---|
| 41 | do so, delete this exception statement from your version. |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | RUNNING FROM DOCKER |
|---|
| 45 | =================== |
|---|
| 46 | |
|---|
| 47 | With [Docker Engine][] installed one may execute: |
|---|
| 48 | |
|---|
| 49 | docker build -t YOURID/abcl . |
|---|
| 50 | docker run -it YOURID/abcl |
|---|
| 51 | |
|---|
| 52 | to get something like |
|---|
| 53 | |
|---|
| 54 | illin:~/work/abcl$ docker run -it YOURID/abcl |
|---|
| 55 | Armed Bear Common Lisp 1.6.0 |
|---|
| 56 | Java 1.8.0_111 Oracle Corporation |
|---|
| 57 | OpenJDK 64-Bit Server VM |
|---|
| 58 | Low-level initialization completed in 0.295 seconds. |
|---|
| 59 | Startup completed in 1.425 seconds. |
|---|
| 60 | Type ":help" for a list of available commands. |
|---|
| 61 | CL-USER(1): 23 |
|---|
| 62 | 23 |
|---|
| 63 | |
|---|
| 64 | See <file:Dockerfile> for the build instructions. |
|---|
| 65 | |
|---|
| 66 | [Docker Engine]: https://www.docker.com/products/docker-engine |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | RUNNING FROM BINARY RELEASE |
|---|
| 71 | =========================== |
|---|
| 72 | |
|---|
| 73 | After you have downloaded a binary release from either [the |
|---|
| 74 | distributed Maven POM graph][maven-abcl] or from |
|---|
| 75 | [abcl.org][abcl.org-release] archive unpack it into its own |
|---|
| 76 | directory. To run ABCL directly from this directory, make sure Java |
|---|
| 77 | (Java 6, 7, 8, and 11 are supported by ABCL 1.6.0) is in your shell's |
|---|
| 78 | path. |
|---|
| 79 | |
|---|
| 80 | [maven-abcl]: <https://mvnrepository.com/artifact/org.abcl/abcl/1.6.0> |
|---|
| 81 | [maven-abcl-contrib]: <https://mvnrepository.com/artifact/org.abcl/abcl-contrib/1.6.0> |
|---|
| 82 | [abcl.org-release]: <http://abcl.org/releases/1.6.0/> |
|---|
| 83 | |
|---|
| 84 | To start ABCL, simply issue the following command: |
|---|
| 85 | |
|---|
| 86 | cmd$ java -jar abcl.jar |
|---|
| 87 | |
|---|
| 88 | which should result in output like the following |
|---|
| 89 | |
|---|
| 90 | Armed Bear Common Lisp 1.6.0 |
|---|
| 91 | Java 1.8.0_232 AdoptOpenJDK |
|---|
| 92 | OpenJDK 64-Bit Server VM |
|---|
| 93 | Low-level initialization completed in 0.356 seconds. |
|---|
| 94 | Startup completed in 2.055 seconds. |
|---|
| 95 | Loading /home/evenson_not_org/.abclrc completed in 13.669 seconds. |
|---|
| 96 | Type ":help" for a list of available commands. |
|---|
| 97 | CL-USER(1): |
|---|
| 98 | |
|---|
| 99 | Yer now at the interactive ABCL "Read Eval Print Loop" (REPL): hacks |
|---|
| 100 | 'n glory await. |
|---|
| 101 | |
|---|
| 102 | SWANK |
|---|
| 103 | ----- |
|---|
| 104 | |
|---|
| 105 | One may easily start a swank listener via |
|---|
| 106 | |
|---|
| 107 | (require :asdf) |
|---|
| 108 | (require :abcl-contrib) |
|---|
| 109 | (asdf:load-system :quicklisp-abcl :force t) |
|---|
| 110 | (ql:quickload :swank) |
|---|
| 111 | |
|---|
| 112 | |
|---|
| 113 | BUILDING FROM SOURCE RELEASE |
|---|
| 114 | ============================ |
|---|
| 115 | |
|---|
| 116 | ABCL may be built from its source code by executing the build |
|---|
| 117 | instructions <file:build.xml> expressed by the venerable Apache Ant |
|---|
| 118 | tool. |
|---|
| 119 | |
|---|
| 120 | To build, one must have a Java 6, 7, 8 or 11 Java Development Kit |
|---|
| 121 | (JDK) installed locally. Just the Java Runtime Environment (JRE) isn't |
|---|
| 122 | enough, as you need the Java compiler ('javac') to compile the Java |
|---|
| 123 | source of the ABCL implementation. |
|---|
| 124 | |
|---|
| 125 | Download a binary distribution [Ant version 1.7.1 or greater][ant]. |
|---|
| 126 | Unpack the files somewhere convenient, ensuring that the 'ant' (or |
|---|
| 127 | 'ant.bat' under Windows) executable is in your path and executable. |
|---|
| 128 | |
|---|
| 129 | [ant]: http://ant.apache.org/bindownload.cgi |
|---|
| 130 | |
|---|
| 131 | Then simply executing |
|---|
| 132 | |
|---|
| 133 | cmd$ ant |
|---|
| 134 | |
|---|
| 135 | from the directory containing the <file:build.xml> instructions will |
|---|
| 136 | create an executable wrapper ('abcl' under UNIX, 'abcl.bat' under |
|---|
| 137 | Windows). Use this wrapper to start ABCL. |
|---|
| 138 | |
|---|
| 139 | The build may be customized by copying <file:abcl.properties.in> to |
|---|
| 140 | <file:abcl.properties>, which will cause Ant to attempt to build |
|---|
| 141 | incrementally as well as optimizing the runtime for a contemporary |
|---|
| 142 | 64bit desktop/server machine running Java 8 or 11. The file contains |
|---|
| 143 | incomplete documentation on how it may be edited for subsequent |
|---|
| 144 | customization. |
|---|
| 145 | |
|---|
| 146 | |
|---|
| 147 | Using NetBeans |
|---|
| 148 | -------------- |
|---|
| 149 | |
|---|
| 150 | Alternatively, one may install the [Netbeans visual integrated |
|---|
| 151 | development environment][netbeans], which contains both the Java |
|---|
| 152 | Development Kit as well as the Ant build tool. |
|---|
| 153 | |
|---|
| 154 | With Netbeans, one should be able to open the ABCL directory as a |
|---|
| 155 | project whereupon the usual build, run, and debug targets as invoked |
|---|
| 156 | in the GUI are available. Use the 'slime' config with a suitably |
|---|
| 157 | linked 'swank.asd' in '~/.asdf-install-dir/systems/' to connect a REPL |
|---|
| 158 | to the NetBeans debug process. |
|---|
| 159 | |
|---|
| 160 | [netbeans]: http://netbeans.org/downloads/ |
|---|
| 161 | |
|---|
| 162 | |
|---|
| 163 | BUGS |
|---|
| 164 | ==== |
|---|
| 165 | |
|---|
| 166 | ABCL is a conforming ANSI Common Lisp implementation. Any other |
|---|
| 167 | behavior should be reported as a bug. |
|---|
| 168 | |
|---|
| 169 | ABCL now has a manual stating its conformance to the ANSI standard, |
|---|
| 170 | providing a compliant and practical Common Lisp implementation. |
|---|
| 171 | |
|---|
| 172 | |
|---|
| 173 | Tests |
|---|
| 174 | ----- |
|---|
| 175 | |
|---|
| 176 | ABCL 1.6.0 currently fails 46 out of 21835 total tests, whereas ABCL |
|---|
| 177 | 1.5.0 failed 48 out of 21708 total tests in the [revised and expanded |
|---|
| 178 | ANSI CL test suite][ansi-test] (derived from the tests originally |
|---|
| 179 | written for GCL). |
|---|
| 180 | |
|---|
| 181 | [ansi-test]: git+https://gitlab.common-lisp.net/ansi-test/ansi-test.git |
|---|
| 182 | |
|---|
| 183 | Maxima's test suite runs without failures. |
|---|
| 184 | |
|---|
| 185 | ABCL comes with a test suite, see the output of `ant help.test` for |
|---|
| 186 | more information. |
|---|
| 187 | |
|---|
| 188 | ### Deficiencies |
|---|
| 189 | |
|---|
| 190 | Many. But patches to address issues mentioned above will be gladly |
|---|
| 191 | accepted. |
|---|
| 192 | |
|---|
| 193 | CONTACT |
|---|
| 194 | ======= |
|---|
| 195 | |
|---|
| 196 | Please report problems to the development mailing list: |
|---|
| 197 | |
|---|
| 198 | <armedbear-devel@common-lisp.net> |
|---|
| 199 | |
|---|
| 200 | Have fun! |
|---|
| 201 | |
|---|
| 202 | AUTHORS |
|---|
| 203 | ======= |
|---|
| 204 | |
|---|
| 205 | On behalf of all ABCL development team and contributors, |
|---|
| 206 | |
|---|
| 207 | Mark Evenson |
|---|
| 208 | Erik Huelsmann |
|---|
| 209 | Rudolf Schlatte |
|---|
| 210 | Alessio Stalla |
|---|
| 211 | Ville Voutilainen |
|---|
| 212 | |
|---|
| 213 | alan |
|---|
| 214 | olof ferada |
|---|
| 215 | pipping |
|---|
| 216 | slyrus |
|---|
| 217 | vibhu |
|---|
| 218 | dmiles |
|---|
| 219 | |
|---|
| 220 | November 2019 |
|---|