common-lisp Questions
2
Solved
CLHS on backquotes states "If the backquote syntax is nested, the innermost backquoted form should be expanded first. This means that if several commas occur in a row, the leftmost one belongs to t...
Leanora asked 2/8, 2013 at 3:6
1
Solved
I am a newbie for emacs and common lisp.
I am now using emacs and slime to learn P.Graham “ANSI Common LISP”. However, when I meet something that I don't konw, I can not easily get some usef...
Pius asked 2/8, 2013 at 2:22
4
Solved
question
If I make a 2d game in common lisp (uses: lispbuilder-sdl, quicklisp, cffi) using clozure cl on windows, will I be able to easily port it to other platforms (linux/iPhone(maybe)/android) ...
Platt asked 31/7, 2013 at 18:32
2
Solved
As far as my knowledge about semaphores goes, a semaphore is used to protect resources which can be counted and are vulnerable to race conditions. But while reading the SBCL documentation of semaph...
Cimex asked 31/7, 2013 at 10:33
3
Solved
Common Lisp supports an plethora of formatting directives. However, I couldn't find a handy directive for my problem. Basically, I'd like to print a grid of numbers.
Using a list the following wo...
Loy asked 30/7, 2013 at 19:43
1
Solved
I am confused about how comma-comma-at does what it does.
An example of use of comma-comma-at is in Is there a use for double unquote (double comma) when defining a Lisp macro?
It seems to me tha...
Torchwood asked 30/7, 2013 at 21:6
1
Solved
I've run into a problem that a third-party library needs to act on a class as if it was finalized. After some reading I understand the motivation behind this mechanism, but I don't really know how ...
Coeval asked 29/7, 2013 at 21:33
5
Solved
(push x list)
expands to
(setq list (cons x list))
What expands to the following:
(setq list (append list2 list))
? Is there a standard macro for this?
Wrapping asked 28/7, 2013 at 13:11
3
Solved
I've made a mistake and forgot to specify keyword arguments in defgeneric the first time I've compiled it. Now I really don't want to restart SLIME only to redefine this one defgeneric to include m...
Pros asked 29/7, 2013 at 10:8
1
Solved
I've read the docs (several different versions!) but I can't quite get my head wrapped around multiple-value-bind.
Here's what I (think I) know:
The first parameter is a list of variables that a...
Meyerbeer asked 27/7, 2013 at 18:18
1
Solved
I'm trying to get set up with SLIME on a Windows 7 box, but running M-x slime gives me the error
Spawning child process: invalid argument
I have inferior-lisp-program set to "C:\\Program Files\\...
Sacristan asked 25/7, 2013 at 14:24
2
This is a follow-up question, sort of, to this one: Write an efficient string replacement function? .
In (albeit distant) future I hope to get to do natural language processing. Of course speed of...
Burtburta asked 13/7, 2013 at 11:47
4
Solved
I'm pretty fresh to the Common Lisp scene and I can't seem to find an quick way to get the nth element from a list and remove it from said list at the same time. I've done it, but it ain't pretty, ...
Trembles asked 4/11, 2010 at 4:13
3
Solved
I want to run a CCL REPL from a command line. What should I do to prevent CCL from starting that GUI thing (the menu and the listener window)? Thanks.
Prinz asked 8/3, 2012 at 1:35
3
Solved
I'm a total Lisp n00b, so please be gentle.
I'm having trouble wrapping my head around CL's idea of an [un-]declared free variable. I would think that:
(defun test ()
(setq foo 17)
)
would def...
Peery asked 13/7, 2013 at 1:27
1
Solved
I was playing around with macros today and saw the term macro-function appear in the REPL. I am familiar with Macros, compiler macros and reader macros but have not run into these.
CL-USER> (de...
Orangewood asked 12/7, 2013 at 14:31
1
Solved
Like a few of the askers on here, I'm new to Lisp. I'm going through the Practical Common Lisp book, but took a sidestep to see how easy it would be to set up a web app, so I've been following this...
Epistaxis asked 11/7, 2013 at 13:21
1
Solved
I wonder, if there is a way to inspect defined and loaded macros' source code from the repl?
Sort of macroexpand-1, but without the expansion.
Bolt asked 6/7, 2013 at 16:53
3
Solved
I'm trying to define a structure with some properties I know I want, and an arbitrary number of other properties that aren't necessary for the basic structure.
(defstruct (node (:type list)) label...
Searchlight asked 9/7, 2013 at 17:18
1
Solved
CLHS says
An attempt to print a circular structure with *print-circle* set
to nil may lead to looping behavior and failure to terminate.
And then there's this:
Why does this Lisp macro as a wh...
Merriman asked 2/7, 2013 at 15:38
1
Solved
I can not find any source that would describe the individual phases SBCL compiler. What resources, e.g., papers, describe these phases of the SBCL compiler?
Boss asked 22/6, 2013 at 13:11
1
Solved
I'm trying to send data over USOCKET. When the data reaches the server, the server should reply back. However, stream-read (as defined below) only returns the data when it's echoed back with the or...
Farming asked 23/6, 2013 at 3:49
1
Solved
In common lisp, what can I use to access structure slot using slot name/symbol?
What I want is
(defstruct point (x 0) (y 0))
(defmacro -> (struct slot) `(slot-value ,struct ,slot))
(setf p (...
Ticking asked 22/6, 2013 at 5:14
1
Solved
It is stated in section "Global variables and constants" of the Google Common Lisp Style Guide that:
"Common Lisp does not have global lexical variables, so a naming convention is used to ensure t...
Grenier asked 20/6, 2013 at 23:15
2
Solved
Google Common Lisp Style Guide say Avoid modifying local variables, try rebinding instead
What does it mean? What does rebinding mean in that sentence?
Gentianella asked 18/6, 2013 at 8:7
© 2022 - 2024 — McMap. All rights reserved.