The most current version is at http://svn.mumble.net:8080/svn/lsw/
There is some documentation at the top of the file, but it is
incomplete, as you note. I will try to write some more, but in the
interim, feel free to ask me questions.
There's a bunch of code below http://svn.mumble.net:8080/svn/lsw/
trunk/ that uses it, if you are looking for examples.
You'll need the jscheme and beanshell libs in http://svn.mumble.net:
Fairly recently there is some support for asdf, so you can write
stuff like in
to easily add jars, or directories of jars to your asdf sysdefs.
There's also some gc stuff: (java-gc), to force a gc
(java-room) returning values allocated, total, and free memory
(verbose-gc t/nil) to turn on or off java gc messages.
I defined (get-java-field object field) , and (set-java-field object
Object is either a java object or a class name or symbol. Field is a
string naming the field.
There's (set-to-list set) and (list-to-list list), which convert java
sets and lists, respectively, to lisp lists.
makes the backtraces in slime more friendly when using it.
In emacs I start abcl with this:
(let ((inferior-lisp-program "~/repos/lsw/trunk/abcl"))
(cons (lambda(&rest args)
(lambda (process string)
which causes output to system.out to be put in the repl (otherwise it
is left in the inferior lisp window).
Suggestions are welcome. Glad to hear it is of some use to you :)
On Aug 22, 2006, at 7:55 PM, Luke Hope wrote:
> Hi Alan,
> I filed away your little program in my memory bank for later use, as
> it seems the best FFI interface for abcl yet (my version was too
> I was wondering if you can post an updated version with any other
> docs? It's usable as-is, but any additions/extra documentation would
> be useful.
> It's great to use lisp as a scripting language to play with java
> classes, thank you for your contribution!!