common-lisp Questions
3
Solved
I enjoy common lisp, but sometimes it is really painful to input simple math expressions like
a(8b^2+1)+4bc(4b^2+1)
(Sure I can convert this, but it is kind of slow, I write (+ () ()) first, an...
Tushy asked 12/8, 2012 at 18:27
2
Solved
I've got small but CPU heavy app in alpha stage in node.js, it's a small game. I'm running into performance issues and I need to speed it up by at least a factor of 20 to get to beta. And since par...
Chatoyant asked 15/6, 2016 at 12:40
2
Solved
I'd like to use names such as elt, nth and mapcar with a new data structure that I am prototyping, but these names designate ordinary functions and so, I think, would need to be redefined as generi...
Slopwork asked 28/6, 2016 at 15:23
3
Solved
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 languag...
Flittermouse asked 26/9, 2012 at 2:31
4
Solved
Correct me if I'm wrong, but there is nothing like gensym in Java, C, C++, Python, Javascript, or any of the other languages I've used, and I've never seemed to need it. Why is it necessary in Lisp...
Ultun asked 7/5, 2015 at 17:39
3
Solved
I'm writing a Common Lisp application. I'd like to have a Bash script which will serve as the entry point to the application. Currently, I've written the script so that the user must pass in their ...
Garibay asked 9/6, 2016 at 23:8
12
I know that Lisp and Scheme programmers usually say that eval should be avoided unless strictly necessary. I’ve seen the same recommendation for several programming languages, but I’ve not yet seen...
Thorne asked 3/4, 2010 at 13:50
3
Solved
Maybe this question is too general, nevertheless i'll try:
Is there any comprehensive guide on types in common lisp?
I'm kind of confused about this subject:
Why are non-primitive types declared ...
Gilmagilman asked 8/6, 2016 at 14:29
4
Solved
In Common Lisp, it seems like () is a self-evaluating form. That is, it evaluates to itself (or its alias nil). So there would seem to be no need to quote it. But using grep on my quicklisp directo...
Lubberly asked 24/5, 2016 at 22:15
2
Solved
Given
(defun show-arg (a)
(format t "a is ~a~%" a))
(defun show-key (&key a)
(format t "a is ~a~%" a))
evaluating
(show-arg)
will lead to an error saying "invalid number of arguments:...
Clearcole asked 25/5, 2016 at 4:55
1
Solved
In Clojure, there is a higher-order function reductions, which you would use with arguments similar to reduce and will return a sequence containing all intermediate results.
Is there an equivalent...
Exegesis asked 20/5, 2016 at 10:30
2
Solved
A recursive type is a type which has a base and a recursive case of itself.
I wanted this to implement "typed lists", i.e., lists whose conses only allow the same element type or nil.
I tried the...
Hashimoto asked 18/5, 2016 at 13:53
2
Solved
This question is related to the Chapter 6 code of Conrad Barski's Book, Land of Lisp.
The code is the following
(defun tweak-text (lst caps lit)
(when lst
(let ((item (car lst))
(rest (cdr ls...
Toting asked 12/5, 2016 at 0:23
1
Solved
I'm trying to install cl-jupyter (A common-lisp kernel for Jupyter), and I can't make it work: when I open a new lisp notebook (or change the kernel of an existing notebook), it crashes after displ...
Dispersion asked 4/12, 2015 at 17:4
1
Solved
Is there a way in Lisp to format a string using named parameters?
Perhaps something with association lists like
(format t "All for ~(who)a and ~(who)a for all!~%" ((who . "one")))
in order to p...
Dropkick asked 8/5, 2016 at 16:42
2
Recently I tried to read code about cl-mysql, but got stuck with the #+.
Tried to google it, but not work, so turn to here
(defun make-lock (name)
#+sb-thread (sb-thread:make-mutex :name ...
Piscatelli asked 3/5, 2016 at 7:25
1
TL;DR :
Even if libffi seems installed, the configure script doesn't find it even if I give it the (correct?) prefix.
/!\ The last part (*) of this post is where I'm stuck. /!\
I only put th...
Ballou asked 25/4, 2016 at 19:37
3
I'm looking for how to loop through a string in LISP to check for alpha char or spaces. A sentence like "Coffee is Friend" is something that i want to check as Valid. But when i do (every #'alpha-c...
Cynar asked 17/4, 2016 at 19:32
1
Solved
What is the Common Lisp idiom for this:
Remove the elements in a list that don't satisfy a predicate and for
those that do satisfy the predicate apply a function.
Is this the Common Lisp idi...
Keare asked 14/4, 2016 at 21:45
2
Solved
I'm about to go on a long trip to remote places with no internet access, and I want to get some lisp programming done. I thought it might be wise to
download the entire quicklisp archive includi...
Inhalation asked 7/4, 2016 at 13:31
1
I read an article about static typing the other day (https://bsamuels.net/2013/11/20/static-typing.html) that described an interesting concept called "type-rich programming", where you as a program...
Carin asked 4/4, 2016 at 1:27
2
Solved
I have been read the common lisp "Practical Common Lisp" exception handling chapter for days, but I am now so confused with the samples and the explanations, in the meanwhile I tried to write some ...
Leifleifer asked 23/3, 2016 at 12:24
2
Solved
I want to give a number and return the element of this position.
List lab = (R K K K K) and I want to know if something like this (position 1 lab) exists on lisp. Like in C return lab[1].
Louiselouisette asked 21/3, 2016 at 10:30
8
Solved
I've been attempting to write a Lisp macro that would perfom the equivalent of ++ in other programming languages for semantic reasons. I've attempted to do this in several different ways, but none ...
Miserere asked 15/9, 2008 at 18:47
2
Solved
I can run emacs and start slime (with M-x slime). At this point I get the REPL in the inferior-lisp buffer and can run lisp there. But when I open up lisp code in another buffer none of the slime-g...
Detribalize asked 29/12, 2010 at 3:35
© 2022 - 2024 — McMap. All rights reserved.