Compiling ABCL and primitives

Does anyone know how (or if) you can use ABCL to compile Lisp code into .class files and create a main method so that all of this can be packaged into a .jar file and run?

Also, does anyone know how to access Java type primitives from ABCL code?

+5
source share
2 answers

Didier Werner published his experience with such a packaging issue the other day.

+2
source

, ABCL ASDF URI, . ASDF-INSTALL ( Ant 'abcl.contrib'), , , ASDF URI.

CL-USER> (pushnew #p"jar:http://abcl-dynamic-install.googlecode.com/files/asdf-uri-test.jar!/asdf-uri-test/" asdf:*central-registry*)
(#P"jar:http://abcl-dynamic-install.googlecode.com/files/asdf-uri-test.jar!/asdf-uri-test/" #P"jar:file:/Users/evenson/work/abcl/dist/abcl-contrib.jar!/asdf-install/" (MERGE-PATHNAMES ".asdf-install-dir/systems/" (USER-HOMEDIR-PATHNAME)) (MERGE-PATHNAMES "work/lsw/" (USER-HOMEDIR-PATHNAME)))
CL-USER> (asdf:load-system :test)
; Loading system definition from jar:http://abcl-dynamic-install.googlecode.com/files/asdf-uri-test.jar!/asdf-uri-test/test.asd into #<PACKAGE "ASDF0">
; Registering #<SYSTEM :TEST> as TEST
; Compiling jar:http://abcl-dynamic-install.googlecode.com/files/asdf-uri-test.jar!/asdf-uri-test/test.lisp ...
; (DEFUN TEST ...)
; Wrote /Users/evenson/.cache/common-lisp/abcl-0.25.0-dev-fasl37-macosx-java/files/asdf-uri-test.jar/asdf-uri-test/ASDF-TMP-test.abcl (0.163 seconds)
T
CL-USER> (test)
"The test function loaded!"

, ASDF, JAR. , JAR Lisp , ASDF2 OUTPUT-TRANSLATION-LOCATION. Java JAR . Java " ", JVM (qv. Java 5 v Java 6), Lisp ABCL. , ABCL FASL URI, ASDF, , , - ASDF.

0

All Articles