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
43
votes
4 answers

Compiling Common Lisp to an executable

I recently started learning Common Lisp using SBCL. How can I compile my Lisp programs into a Windows binary?
Shenal Silva
  • 1,955
  • 5
  • 26
  • 37
41
votes
5 answers

In Emacs, what does this error mean? "Warning: cl package required at runtime"

I am byte-compiling a module. It gives me this warning: Warning: cl package required at runtime Why is this a warning? I am well aware that I am using the cl package. In fact there is a (require 'cl) statement in the module. Is there something…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
40
votes
3 answers

How is Lisp dynamic and compiled?

I don't understand how Lisp can be compiled and dynamic. For a language to be able to manipulate and modify and generate code, isn't it a requirement to be interpreted? Is it possible for a language to be completely compiled and still be dynamic? …
Matt
  • 5,553
  • 5
  • 24
  • 32
39
votes
3 answers

Why did father of Clojure say that Scheme's true/false are broken?

In this video, Rich Hickey introduced Clojure for Lisp programmers. At time 01:10:42, he talked about nil/false/end-of-sequence/'() among Clojure/Common Lisp/Scheme/Java. He said: "Scheme has true and false, but they are broken." I don't understand…
yehnan
  • 5,392
  • 6
  • 32
  • 38
39
votes
2 answers

Why #' is used before lambda in Common Lisp?

I would like to know why most Common Lisp code I see has things like (mapcar #'(lambda (x) (* x x)) '(1 2 3)) instead of just (mapcar (lambda (x) (* x x)) '(1 2 3)), which seems to work as well. I am beginning to learn Common Lisp, and having some…
37
votes
1 answer

What does # mean in LISP

For example, #'functionname, is it necessary?
Thomson
  • 20,586
  • 28
  • 90
  • 134
36
votes
3 answers

Check if item is in a list (Lisp)

What's a simple way to check if an item is in a list? Something like (in item list) might return true if item=1 and list=(5 9 1 2) and false if item=7
Jeff
  • 12,147
  • 10
  • 51
  • 87
36
votes
11 answers

Python's range() analog in Common Lisp

How to create a list of consecutive numbers in Common Lisp? In other words, what is the equivalent of Python's range function in Common Lisp? In Python range(2, 10, 2) returns [2, 4, 6, 8], with first and last arguments being optional. I couldn't…
Mirzhan Irkegulov
  • 17,660
  • 12
  • 105
  • 166
36
votes
5 answers

Are there any High Level, easy to install GUI libraries for Common Lisp?

Are there any good, cross platform (SBCL and CLISP at the very least) easy to install GUI libraries?
dsm
  • 10,263
  • 1
  • 38
  • 72
35
votes
4 answers

Porting Common Lisp code to Clojure

How practical is it to port a Common Lisp application to Clojure? To be more specific, what features exist in Common Lisp that do not exist in Clojure, and would have to be re-written?
Paul
  • 6,435
  • 4
  • 34
  • 45
33
votes
9 answers

How do the various ANSI CL implementations differ?

When I started learning CL from Practical Common Lisp, as is preached in the book, I started off with Allegro CL compiler. I stopped using it, since its commerical, yet free bit didn't impress me. It needed a connection to its remote server for some…
user59634
33
votes
7 answers

What is the difference between 1 and '1 in Lisp?

I had never really thought about whether a symbol could be a number in Lisp, so I played around with it today: > '1 1 > (+ '1 '1) 2 > (+ '1 1) 2 > (define a '1) > (+ a 1) 2 The above code is scheme, but it seems to be roughly the same in Common…
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
32
votes
7 answers

How do multimethods solve the namespace issue?

I am researching programming language design, and I am interested in the question of how to replace the popular single-dispatch message-passing OO paradigm with the multimethods generic-function paradigm. For the most part, it seems very…
Patrick Li
  • 672
  • 4
  • 11
32
votes
1 answer

How do I increment or decrement a number in Common Lisp?

What is the idiomatic Common Lisp way to increment/decrement numbers and/or numeric variables?
Jabavu Adams
  • 2,348
  • 3
  • 18
  • 16
32
votes
1 answer

What does the f in setf stand for?

LISP has the setf function to assign a value to a variable. Now I have been wondering about the function's name: The set part is obvious, but what does the f suffix stand for?
Golo Roden
  • 140,679
  • 96
  • 298
  • 425