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
62
votes
7 answers

Examples of excellent Common Lisp code?

I've learned enough Common Lisp to be able to muddle my way through writing an application. I've read Seibel's Practical Common Lisp What libraries or programs should I be reading to understand the idioms, the Tao, of Common Lisp?
Frank Shearar
  • 17,012
  • 8
  • 67
  • 94
59
votes
4 answers

setq and defvar in Lisp

I see that the Practical Common Lisp uses (defvar *db* nil) for setting up a global variable. Isn't it OK to use setq for the same purpose? What are the advantages/disadvantages of using defvar vs. setq?
prosseek
  • 182,215
  • 215
  • 566
  • 871
59
votes
6 answers

Lisp Executable

I've just started learning Lisp and I can't figure out how to compile and link lisp code to an executable. I'm using clisp and clisp -c produces two files: .fas .lib What do I do next to get an executable?
Alexander Stolz
  • 7,454
  • 12
  • 57
  • 64
56
votes
2 answers

What are the major differences between Emacs Lisp and Common Lisp?

I want to learn the lisp language, since my editor is emacs, I prefer emacs lisp. Can anyone give me some suggestions to learn lisp, emacs lisp, or common lisp? What are the major differences between those two?
user1087032
  • 755
  • 1
  • 6
  • 8
53
votes
3 answers

Clojure keyword arguments

In Common Lisp you can do this: (defun foo (bar &key baz quux) (list bar baz quux)) (foo 1 :quux 3 :baz 2) ; => (1 2 3) Clojure doesn't have keyword arguments. One alternative is this: (defn foo [bar {:keys [baz quux]}] (list bar baz…
Brian Carper
  • 71,150
  • 28
  • 166
  • 168
53
votes
10 answers

Best Common Lisp IDE

I've used Slime within Emacs as my primary development environment for Common Lisp (or Aquamacs on OS X), but are there other compelling choices out there? I've heard about Lispworks, but is that [or something else] worth looking at? Or does anyone…
Brendan Foote
  • 1,378
  • 2
  • 12
  • 22
52
votes
2 answers

What's difference between defvar, defparameter, setf and setq

I found a Similar question. But I don't quite understand that explanation. So I'm trying to run clisp with the following example: [1]> (defvar a 5) A [2]> (+ a 1) 6 [3]> (defparameter b 5) B [4]> (+ b 1) 6 [5]> (setf c 5) 5 …
sam
  • 2,049
  • 3
  • 20
  • 27
51
votes
5 answers

Can I use Common Lisp for SICP or is Scheme the only option?

Also, even if I can use Common Lisp, should I? Is Scheme better?
akway
  • 1,738
  • 4
  • 21
  • 20
49
votes
5 answers

Dynamic and Lexical variables in Common Lisp

I am reading the book 'Practical Common Lisp' by Peter Seibel. In Chapter 6, "Variables" sections "Lexical Variables and Closures" and "Dynamic, a.k.a. Special, Variables". http://www.gigamonkeys.com/book/variables.html My problem is that the…
George
  • 15,241
  • 22
  • 66
  • 83
48
votes
9 answers

Are there any Common Lisp implementations for .Net?

Are there any Common Lisp implementations for .Net?
TraumaPony
  • 10,742
  • 12
  • 54
  • 74
47
votes
6 answers

Why code-as-data?

What is code-as-data? I've heard it's superior to "code-as-ascii-characters" but why? I personally find the code-as-data philosophy a bit confusing actually. I've dabbled in Scheme, but I never really got the whole code-as-data thing and wondered…
Peter C
  • 6,219
  • 1
  • 25
  • 37
47
votes
2 answers

Common Lisp's equivalent of \r inside the format function?

Basically, I'd like to do the following, only using Common Lisp instead of Python: print("Hello world.\r\n") I can do this, but it only outputs the #\newline character and skips #\return: (format t "Hello world.~%") I believe I could accomplish…
user12163
47
votes
2 answers

What is the convention for Lisp filename extension?

".el" is the convention for filename ending with Emacs Lisp programs. What is the convention when writing Common Lisp programs, please?
yves Baumes
  • 8,836
  • 7
  • 45
  • 74
45
votes
9 answers

What is the closest thing to Slime for Scheme?

I do most of my development in Common Lisp, but there are some moments when I want to switch to Scheme (while reading Lisp in Small Pieces, when I want to play with continuations, or when I want to do some scripting in Gauche, for example). In such…
Ryszard Szopa
  • 5,431
  • 8
  • 33
  • 43
43
votes
1 answer

What's the difference between "flet" and "labels" in Common Lisp?

Whether or not it is similar as setq and setf? There is no big difference between flet and labels? Sincerely!
z_axis
  • 8,272
  • 7
  • 41
  • 61