Questions tagged [common-lisp]

Common Lisp is a standardized version of the Lisp programming language intended for production-strength power.

Common Lisp, the programmable programming language.

See the Wikipedia page on Common Lisp for more information about the language. There is an online version of the ANSI Common Lisp standard and a list of recommended Common Lisp implementations. Many Lisp specific mailing lists are archived at Gmane.

There is a stackoverflow chat room for Lisp-like languages: Lisp.

Popular Common Lisp implementations

Free Common Lisp Programming Books

Common Lisp Programming Books

See also

6194 questions
4
votes
1 answer

CLSQL symbol exports

Does anyone know about how the clsql-sys methods get exported to the clsql-sys/cl-user package? The methods are defined individually for each database type. For example, suppose I define a method in db-mysql/mysql-sql.lisp in package…
Jieren
  • 1,952
  • 4
  • 18
  • 26
4
votes
2 answers

How to compile Clisp 2.46?

When I try to compile the newest version of Clisp on Ubuntu 8.04 I always get this error after running configure: Configure findings: FFI: no (user requested: default) readline: yes (user requested: yes) libsigsegv: no, consider installing…
Ryszard Szopa
  • 5,431
  • 8
  • 33
  • 43
4
votes
3 answers

unwind-protect - how does it work

I am using sbcl 1.0.57.0 and want to start a program via --eval which should generate some output, but in case that there is an uncaught error it shall exit. I figured the easiest way to accomplish that would be by using…
Sim
  • 4,199
  • 4
  • 39
  • 77
4
votes
3 answers

For a Common Lisp library made of multiple packages, is there a standard way to export the API?

Obviously, the externally visible API is published by exporting symbols. But... what if I have multiple packages (say A, B and C) and A's exported symbols are not all meant to be part of the external API - some of them are needed for B and C?…
Miron Brezuleanu
  • 2,989
  • 2
  • 22
  • 33
4
votes
2 answers

variables in lisp programming

I am trying to write a function lets say A(n) which is supposed to have a list (the answer is n) n being any integer in the list I want when i type (A 4) it should display (the answer is 4) I am not sure how to go about it thinking of using…
4
votes
3 answers

Lisp function: union

I have a lisp homework I am having a hard time with it. I have to write a function that perform a union operation. The function takes 2 inputs, either in the form of either atom or list and unions every element, preserving the order and stripping…
user1561949
  • 211
  • 7
  • 16
4
votes
3 answers

How to download and save a file using drakma:http-request and flexistreams

I am trying to download and save a PDF but it fails while writing with an EOF-Error. What would be the correct way of doing this? (with-open-file (file "/home/*/test.pdf" :direction :io :if-does-not-exist…
Sim
  • 4,199
  • 4
  • 39
  • 77
4
votes
1 answer

Dribble is producing empty output files

I need to create an output file for a program in lisp, but I cannot get dribble to properly record my output. I'm using lispbox and my buffer looks like this when I try to use dribble: (dribble "output.txt") "output.txt" ... Calls to functions I…
4
votes
2 answers

Difference between deftype in Common Lisp and Scheme

I'm trying to translate some Common Lisp code into Scheme code. The Common Lisp code has a deftype. Are deftypes in Scheme the same as deftypes in Common Lisp? How do you translate a deftype in Common Lisp into equivalent code in Scheme?
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
4
votes
2 answers

Why does a symbol macro get the type of a surrounding let binding of same name?

Macroexpand-all in SBCL gives me the following expansion: (SB-CLTL2:MACROEXPAND-ALL '(LAMBDA (A B) (DECLARE ((SIGNED-BYTE 4) A)) (+ A B (SYMBOL-MACROLET ((A 1) (B 2)) (+ A B))))) => (LAMBDA (A B) (DECLARE…
Peter Slotko
  • 327
  • 2
  • 10
4
votes
4 answers

How to start programming with SLIME and Steel Bank Common Lisp on Windows 7 x64?

I'd very much like to start using these tools, but it seems I'm not smart enough :-( I've spent hours reading docs, moving folders around and editing config files, but I still cannot start Emacs ...
user1563526
  • 275
  • 2
  • 8
4
votes
1 answer

PURI:URI how to get the actual string represented

Drakma returns an PURI:URI object as a fourth return value. But I want to extract the actual string and not mess around with the object. What is the name of the accessor as puri:uri-string which accesses directly the corresponding slot is not public…
Sim
  • 4,199
  • 4
  • 39
  • 77
4
votes
1 answer

Spread a list into parent sexp

Is there a form in any lisp that could "spread" a list in the parent sexp? Like: (+ (spread '(1 2 3))) -> (+ 1 2 3)
4
votes
1 answer

how to properly wait for n seconds

I want to implement a function which waits n seconds before retrying in case of a failure, but what would be the proper way of implementing the waiting-routine. I figured that an endless loop with an if-clause might cause unwanted CPU-usage. (do…
Sim
  • 4,199
  • 4
  • 39
  • 77
4
votes
1 answer

AllegroServe Exception Handling

How can I avoid getting an error when passing as argument to the function do-http-request an invalid host. Is there any way that I can catch the error like the Java's exception-handling mechanism ?
utxeee
  • 953
  • 1
  • 12
  • 24
1 2 3
99
100