Questions tagged [lisp]

Lisp is a family of general purpose programming languages, influenced by the lambda calculus, and with the ability to manipulate source code as a data structure.

Introduction

The name Lisp derives from "LISt Processor". It was originally created as a practical mathematical notation for computer programs. See Wikipedia for more information.

Hello World Program in Lisp

;;; Hello World in Common Lisp

(defun helloworld ()
  (print "Hello World!"))

Popular dialects

Free Lisp Programming Books

There is also a Stack Overflow chat room on Lisp.

6922 questions
40
votes
4 answers

How to delete extra parens in Paredit mode?

I'm using Paredit in Emacs to edit Lisp code. How do I delete an extra pair of parens that I accidentally inserted? Paredit does not allow this without extra commands. ((square 5)) into (square 5)
Sathish
  • 20,660
  • 24
  • 63
  • 71
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
38
votes
3 answers

Are functional programming languages suitable for graphics programming?

Just very curious about this, from my own experience , all the graphic programming seems to C or C++ related. Like the Direct10X. Does functional programming language provide some sort of graphic library to develop video game?
castiel
  • 2,675
  • 5
  • 29
  • 38
38
votes
5 answers

Lisp Code Formatting

One of the people who took the time to comment on my other question about Clojure/LISP syntax pointed out that I had not written my sample code in the standard LISP way. So he was kind enough to rewrite the code snippet and that's a big help. But…
Onorio Catenacci
  • 14,928
  • 14
  • 81
  • 132
38
votes
8 answers

Why does Clojure distinguish between symbols and vars?

I saw this question already, but it doesn't explain what I am wondering about. When I first came to Clojure from Common Lisp, I was puzzled why it treats symbols and keywords as separate types, but later I figured it out, and now I think it is a…
Alex D
  • 29,755
  • 7
  • 80
  • 126
37
votes
8 answers

What can you do with Lisp macros that you can't do with first-class functions?

I think I understand Lisp macros and their role in the compilation phase. But in Python, you can pass a function into another function def f(filename, g): try: fh = open(filename, "rb") g(fh) finally: …
Joshua Fox
  • 18,704
  • 23
  • 87
  • 147
37
votes
1 answer

What does # mean in LISP

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

References Needed for Implementing an Interpreter in C/C++

I find myself attached to a project to integerate an interpreter into an existing application. The language to be interpreted is a derivative of Lisp, with application-specific builtins. Individual 'programs' will be run batch-style in the…
Don Wakefield
  • 8,693
  • 3
  • 36
  • 54
36
votes
4 answers

Lua vs Embedded Lisp and potential other candidates. for set based data processing

Current Choice: lua-jit. Impressive benchmarks, I am getting used to the syntax. Writing a high performance ABI will require careful consideration on how I will structure my C++. Other Questions of interest Gambit-C and Guile as embeddable…
Hassan Syed
  • 20,075
  • 11
  • 87
  • 171
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
3 answers

emacs lisp listing files with glob expansion

Are there any library or function that performs a bash-like glob expansion for emacs lisp? For example: (directory-files-glob "~/Desktop/*") > ("/home/user/Desktop/file1" "/home/user/Desktop/file2") If there isn't such a function are there any…
pygabriel
  • 9,840
  • 4
  • 41
  • 54
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
35
votes
9 answers

Which Scheme IDE's are there?

I am planning on learning Scheme (by following SICP) and afterwards doing a project with this language. However, I was wondering what would be a good IDE for this? I've looked around a bit, but could not really find very much, except something…
KnowsLittle
  • 1,197
  • 2
  • 13
  • 20
35
votes
2 answers

What does the double minus (--) convention in function names mean in Emacs Lisp

I've been reading through a number of Emacs Lisp packages and have come across the convention of some functions being declared with -- after the library prefix, e.g.: (defun eproject--combine-regexps (regexp-list) I'm wondering if this a convention…
stsquad
  • 5,712
  • 3
  • 36
  • 54