Questions tagged [abcl]

Armed Bear Common Lisp (ABCL) implementation of the Common Lisp language in the JVM.

Armed Bear Common Lisp (ABCL) is a full implementation of the Common Lisp language featuring both an interpreter and a compiler, running in the JVM (Java Virtual Machine). ABCL supports the JSR-223 (Java scripting API): It can be a scripting engine in any Java application. Additionally, it can be used to implement (parts of) the application using Java to Lisp integration APIs. ABCL, documentation, etc. are available here.

15 questions
23
votes
3 answers

Why can't tail calls be optimized in JVM-based Lisps?

Main question: I view the most significant application of tail call optimization (TCO) as a translation of a recursive call into a loop (in cases in which the recursive call has a certain form). More precisely, when translated into a machine…
Mars
  • 8,689
  • 2
  • 42
  • 70
7
votes
2 answers

In ABCL (Armed Bear) LISP how do I create a background sub-process / background threads?

How do I spawn off a background (named) sub-process/thread in ABCL? That is, I want to spawn the sub-process (or thread) to run in the background and leave the top-level evaluation free for other processing. Using (apropos 'process/thread) I have…
5
votes
2 answers

Can you write a Java class with ABCL?

Is there a way to create a Java class with ABCL (that extends another class)?
compman
  • 2,174
  • 2
  • 18
  • 26
5
votes
2 answers

ABCL compilation and primitives

Does anyone know how (or if) you can use ABCL to compile Lisp code to .class files and create a main method so that the whole thing could be packaged into a .jar file and run? Also, does anyone know how to access primitives Java types from ABCL…
compman
  • 2,174
  • 2
  • 18
  • 26
3
votes
1 answer

Can ABCL's Interpreter load Lisp source from an InputStream?

I've just started looking at ABCL to mix some Lisp into Java. For now, loading some Lisp from a file will be sufficient, and I've been looking at the examples. In every case, the pattern is: Interpreter interpreter =…
Paul A. Hoadley
  • 1,518
  • 1
  • 13
  • 17
3
votes
4 answers

How to get the values in ABCL using Java

I am searching the API for handling the values in Armed Bear Common Lisp (ABCL) implementation of the Common Lisp language in the JVM, using Java. It works when a function returns (only) a list or a string. When it returns multiple values I only can…
savior
  • 802
  • 6
  • 14
2
votes
1 answer

Quicklisp's file setup.lisp does not load correctly

Hi all and thank you for reading my issue. I can't load quicklisp's file setup.lisp from the lisp console. It throws the following error: Error loading C:/quicklisp/setup.lisp at line 134 (offset 5035) THREAD "main" {1DD02175}: Debugger invoked on…
Javierdds
  • 199
  • 4
  • 14
2
votes
2 answers

Run an ABCL code that uses cl-cppre

With reference to my previous question, Executing a lisp function from Java I was able to call lisp code from Java using ABCL. But the problem is, the already existing lisp code uses CL-PPCRE package. I can not compile the code as it says 'CL-PPCRE…
1
vote
1 answer

ABCL - error trying to add component to JPanel - add not found

I am trying to build a Java GUI using ABCL. However, it throws an error. #: Debugger invoked on condition of type JAVA-EXCEPTION Java exception 'java.lang.NoSuchMethodException: No applicable method named add found…
Francis King
  • 1,652
  • 1
  • 7
  • 14
1
vote
3 answers

Lisp function returns NIL when used in a menu function but otherwise works

I wrote a function to query a small database program I'm writing for school. This function searches by name. When I run the function by itself it works. When I run it within the menu it does not work (it returns NIL). Here is everything…
kokko1G
  • 153
  • 1
  • 8
1
vote
1 answer

In ABCL how do I break from a runaway function without killing LISP?

In ABCL, during development I sometimes get runaway functions. I want to be able to stop execution and return to top level LISP without killing the LISP/JVM process (in my emacs shell) and losing my current LISP environment. I've tried various…
1
vote
2 answers

How to run Armed Bear Common Lisp in Eclipse?

I want to learn Common Lisp and I have some experience with Java. I heard that Armed Bear is a dialect of CL that runs on the JVM, thus allowing me to use Java libraries. But I don't know how to install it so that I can do exercises. Is there a…
Theodor Berza
  • 573
  • 3
  • 12
1
vote
3 answers

In Allegro CL and ABCL, can I construct a struct given only its type name?

In most implementations, you can use (make-instance 'struct-type) to create a struct regardless of whether you defined a constructor function for that type. This doesn't work on Allegro or ABCL, but those implementations can still create structs at…
Kyle
  • 178
  • 1
  • 8
1
vote
2 answers

calling freeling Java API from ABCL

I am trying to call the Freeling (http://nlp.lsi.upc.edu/freeling/) Java API (http://devel.cpl.upc.edu/freeling/svn/trunk/APIs/java/) from ABCL (http://common-lisp.net/project/armedbear/). I followed all the procedure in the README of the Freeling…
Alexandre Rademaker
  • 2,683
  • 2
  • 19
  • 21
0
votes
1 answer

Trouble with armed bear common lisp--calling user defined classes from repl?

I'm very new to lisp and pretty new to java as well. I was working on a trivial game in java and I thought that it would be interesting to interact with the game as I was coding it through the REPL. I have been following Practical Common Lisp and I…