common-lisp Questions
2
Solved
I found out about Lisp for the Iphone recently and wanted to find some code examples.
https://github.com/TerjeNorderhaug/ecl-iphone-builder/#readme
Patella asked 24/4, 2011 at 10:26
4
Solved
I want to add a local project to the known projects by asdf, but due to the fact that asdf was installed and configured by quicklisp and the *central-registry* points to "#P/home/user/quicklisp/qui...
Luce asked 29/6, 2012 at 11:34
2
I am new to Common Lisp. This is how I develop programs in other languages, and also how I now develop programs in Common Lisp:
Open a text editor (e.g. vim or emacs) to create/edit a text file.
...
Jacklight asked 28/8, 2019 at 17:33
2
Solved
So I am going through Practical Common Lisp once again and I cannot really understand how to create a vector with constant size.
According to the book:
However, even a vector with a fill pointe...
Penal asked 22/8, 2019 at 6:59
3
Solved
The usual and and or operators in Common Lisp will lazily evaluate their operands, e.g. the and will stop once it encounters the first nil. I am searching for an operator that does not work this wa...
Vincent asked 13/8, 2019 at 12:54
2
Solved
I have added the following method to the generic function speak but would now like to remove this particular method in the REPL without removing the rest of the generic functions' methods.
(defmet...
Nanon asked 9/8, 2019 at 5:57
4
I would like to undefine a class and all of its methods but after a quite thorough search on Googlore I have been unable to find a clue about how to do this.
I am using an implementation of Commmo...
Scansorial asked 4/9, 2013 at 16:28
1
Solved
I wasn't able to find this information in the Hyperspec or Common Lisp: The Language (second edition). Implementation-dependent constants like LAMBDA-PARAMETERS-LIMIT and CALL-ARGUMENT-LIMIT, but n...
Wellheeled asked 28/7, 2019 at 21:51
8
Solved
How do I disable all warnings in sbcl? The extra output is rather annoying.
Brush asked 29/3, 2010 at 2:25
3
Solved
When I load the "iterate" package using Quicklisp ( (ql:quickload "iterate") ), it seems to load fine but none of the functions really work. When I enter (iterate:iter (for i from 0 to 10) (collect...
Manilla asked 20/5, 2013 at 16:18
2
Solved
Let's say I have the following class declaration:
(defclass foo-class ()
((bar :initarg :bar
:type list)))
When I create an instance of this class, make-instance won't check whether passed arg...
Enfeeble asked 7/8, 2018 at 10:0
1
Solved
I'm looking for a way to modify a property value in a property list by multiplying it with a given factor similar to using incf for adding to a value.
With incf I could say:
(let ((seq '(:x 10 :...
Trainor asked 6/7, 2019 at 8:25
2
I want to define a LISP macro like dolist that lets me define an optional output argument. In the following case study, this macro will be called doread. It will read lines from a file and return t...
Parang asked 26/6, 2019 at 15:42
3
Solved
The :KEY parameter is included in some functions that ship with Common Lisp. All of the descriptions that I have found of them are unhelpful, and :KEY is difficult to search in a search engine beca...
Stormy asked 29/1, 2016 at 0:7
1
I've forked the cl-mongo (common lisp MongoDB library) repository from fons, as it has fallen out of maintenance and does not support the SCRAM-SHA-1 login process. This is my fork: https://github....
Whorled asked 9/9, 2015 at 18:15
3
Solved
I have some global variables of type integer created with defparameter. I use these as keys in CASE clauses to match at test-key that was, at some point in my program, set to one of these global va...
Okeefe asked 22/6, 2019 at 18:40
5
Is there a lint for Common Lisp or Chicken Scheme? Possibly something akin to C's splint, Haskell's HLint, Perl's B::Lint, etc.?
Natatory asked 1/8, 2011 at 0:23
2
Solved
Suppose a function fun in the code below, my goal is evaluating expr2 below.
(defun fun (&key (x nil)) x)
(defparameter expr1 (list 'fun :x 2))
(defparameter expr2 (list 'fun (intern "x" "KEY...
Octahedral asked 19/6, 2019 at 0:37
4
Solved
I want to be able to read a lambda expression from the keyboard. For example, if a function square has already been DEFUNed I can enter the symbol name:
(defun square (x) (* x x))
so that when t...
Derringer asked 13/6, 2019 at 13:39
1
Solved
Here is simplified example from book On Lisp by Paul Graham (scheme like syntax).
(define-macro (bar)
(let ((x 10) (y '(1 2 3)) (z 'foo))
`(list ,x `(,',z ,,@y))))
I know how ,,@y should work ...
Velamen asked 4/6, 2019 at 6:56
1
Solved
In common lisp, I would like to be able to find out wether or not a symbol is a macro or not. Is there a predicate such as (macrop) which will allow me to detect if a name/symbol is a macro?
Pascia asked 2/6, 2019 at 20:4
1
I try to write BLOB into database - chunk by chunk, using database API C-function (say, db-write-chunk).
This function takes a pointer to a foreign memory (where chunk is placed) as an argument.
So...
Greasy asked 19/11, 2018 at 20:12
3
Solved
So, I'm reading Land of Lisp now, and Lisp is turning out to be quite different than other programming languages that I've seen.
Anyways, the book provides some code that we're meant to enter into...
Trapper asked 26/12, 2011 at 10:16
2
Solved
I’m trying to get get my macro to do an extra evaluation of its result before returning it. Can this be done without eval?
I'm trying to solve the problem in exercise 4 below:
Define a macro nth-...
Squint asked 11/5, 2019 at 15:6
2
Solved
I'm wondering what are some efficient ways to debug Common Lisp interactively using Emacs and SLIME.
What I did before: As someone who learned C and Python using IDEs (VS and PyCharm), I am used ...
Seften asked 10/6, 2016 at 18:25
© 2022 - 2024 — McMap. All rights reserved.