common-lisp Questions
4
Solved
I use Vim as my editor. "Practical common Lisp" suggest installing Lispbox, I don't know how to use emacs, don't know how to run lisp code with that T.T after that i find lisp plugin for vim called...
Muraida asked 1/7, 2011 at 10:35
6
Solved
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 a...
Pachalic asked 24/8, 2008 at 13:42
1
Solved
A required use of eval-when is to ensure that functions which a macro depends on are available at the time the macro is compiled and is used. However, I can't think of an example that would demonst...
Cane asked 14/8, 2017 at 0:8
5
Solved
I'm evaluating/testing a browser based application presumably written in common lisp. Apart from the browser based interface, the software provides a 'Listener' window with a 'CL-User >' REPL promp...
Crackup asked 2/10, 2009 at 21:56
1
Solved
Many of the commonly used libraries I see use a single packages.lisp file to declare all of the packages in the library (system) in one place.
Since exported symbols are part of the package defini...
Afresh asked 11/8, 2017 at 19:13
6
On this site they say there are 10 LISP primitives.
The primitives are: atom, quote, eq, car, cdr, cons, cond, lambda, label, apply.
http://hyperpolyglot.wikidot.com/lisp#ten-primitives
Stevey ...
Fatherland asked 14/8, 2010 at 7:12
1
Solved
It appears that most (if not all) global declarations cannot be reverted in an ANSI CL standard way.
E.g., once you evaluate (either directly or by loading a file) a form like (proclaim '(declarat...
Gratuity asked 3/8, 2017 at 14:55
6
Solved
In clisp, the following code works:
(defun hit-history () (shell "tail ssqHitNum.txt"))
However, in Clozure CL, the shell function is not supported!
Selassie asked 11/10, 2011 at 3:24
4
Solved
I have a class with a number of slots. I also have a builder function to make objects of that class such that passing the following list '(:id "john" :name "John Doe" :age 42) to that function will...
Gangboard asked 17/9, 2012 at 22:23
2
Solved
When using the Common Lisp sxhash function on structs I'm getting the same value for all structs (in SBCL only structs of the same type). For instance, the following code prints two lists of intege...
Slipshod asked 14/1, 2014 at 23:52
11
Solved
I've been using Lisp on and off for a while but I'm starting to get more serious about doing some "real" work in Lisp. I'm a huge Vim fan and was wondering how I can be most productive using Vim as...
Chemosphere asked 18/9, 2008 at 17:40
4
I am trying to update ASDF in CLISP 2.49 (on Mac OS Sierra) to version 3.x.
I have now version 2.26 of ASDF.
I have tried everything I found online: I downloaded the latest version of ASDF as indic...
Infiltration asked 11/7, 2017 at 19:38
2
Solved
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...
Promontory asked 24/7, 2010 at 14:41
3
Solved
May be it is a really dumb question, but after playing around with all built-in pathname-family functions and cl-fad/pathname-utils packages I still can't figure out how to convert a relative path ...
Aretina asked 21/6, 2017 at 17:4
2
I seek a GNU Common Lisp package which implements forkpty(); openpty() would also be a big plus, and login_tty() would be a luxury I could live with. (Duckduckgo, Google, etc. were of no help.) Is ...
Tophet asked 21/3, 2011 at 12:47
2
Solved
At the end of section 6.5 in the current SBCL manual, we have the following quote:
If your system's performance is suffering because of some construct which could in principle be compiled effici...
Siren asked 3/6, 2017 at 8:47
3
Solved
Is there an implementation independent way of representing infinity or not a number (NAN) in Common Lisp? It would need to be a double float, and have both positive and negative values. In SBCL, th...
Litchi asked 14/10, 2013 at 15:15
7
UPDATE
I've decided to go with Clojure for now.
LispDev isn't ready, and Eclipse/cusp wasn't stable enough for me to feel comfortable.
As for Clojure, after a long, very frustrating, very anno...
Milissa asked 18/2, 2011 at 14:39
5
It is very easy to change CLisp's current working directory:
>cat ~/.clisprc.lisp
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quic...
Dover asked 12/10, 2011 at 5:31
2
Solved
Two questions:
1.I want a function to insert an element inside a list in-place (in any position but the start of the list, see question 2 for the reason) such that:
CL> (defun insert-in-place ...
Switch asked 8/12, 2010 at 12:46
6
Solved
I've been writing some simple test cases for one of my assignments, and have built up a bit of a test suite using macros. I have run-test and run-test-section and so on.
I'd like run-test-section t...
Tallula asked 10/2, 2010 at 15:44
1
Solved
In SBCL, I can get the documentation string for a function with something like this:
(documentation #'mapcar t)
However, I don't understand how to get the documentation string for a macro. For e...
Baedeker asked 13/5, 2017 at 1:8
4
Solved
I'd very much like to start using these tools, but it seems I'm not smart enough :-(
I've spent hours reading docs, moving folders around and editing config files, but I still cannot start Emacs ....
Nashville asked 20/8, 2012 at 15:2
1
Is a setfable the same as a place in CLHS and a location in Norvig's PAIP?
I'm trying to figure out what exactly a place is in Common Lisp but to me the HyperSpec's explanation
place n. 1. a fo...
Minim asked 16/4, 2017 at 15:7
2
Solved
I am new to Lisp so this might be so simple but I am curious to know about this in any case.
I am familiar with logical operators like AND and OR but lisp does not seem to behave as expected.
For...
Preciado asked 12/4, 2017 at 20:10
© 2022 - 2024 — McMap. All rights reserved.