common-lisp Questions
3
Possible Duplicate:
what is the ‘cons’ to add an item to the end of the list?
After watching many tutorials on lisp and searching high and low on google for answers, I still cannot fi...
Languor asked 13/11, 2012 at 10:25
1
Solved
In common lisp, what is the preferred way to manage external resources (sockets, filesystem handles, etc)?
I'm trying to make a simple opengl 2d platformer in common lisp.
The problem is I'm not ...
Angleworm asked 10/11, 2012 at 14:20
22
Solved
I have been programming in Python, PHP, Java and C for a couple or years now, and I just finished reading Hackers and Painters, so I would love to give LISP a try!
I understand its totally d...
Papistry asked 29/12, 2008 at 20:36
2
Solved
Given the following definition of the LISP eval function - what is required to add the defmacro function? (Or even just evaluate a macro)
(defun null. (x)
(eq x '()))
(defun and. (x y)
(cond (x...
Folger asked 10/9, 2010 at 9:5
1
Solved
I am currently reading ANSI Common Lisp by Paul Graham, and I have a question about writing lambda expressions.
Do we need to prefix a lambda expression with #'?. If I write something like this i...
Beefy asked 3/11, 2012 at 21:21
1
Solved
I've written an iterative deepening algorithm, it works except when I add cycle checking, the algorithm returns a deeper solution than it should. But when I don't check for cycles it does work corr...
Precious asked 30/10, 2012 at 14:54
3
Solved
Can someone please explain what the specific issues are with using the cl package in elisp? As a new coder in emacs I feel as though I'm making a mistake whenever I reach for the (require 'cl) opti...
Junco asked 29/10, 2012 at 5:13
1
Solved
When I start aquamacs with the autocompletion program
installed, http://cx4a.org/software/auto-complete/, with a lisp file that has el as an extension (example.el)
Then all lisp features are loaded...
Mecklenburg asked 26/10, 2012 at 12:38
2
I'm looking to improve the quality and quantity of compiler warnings I receive --
is there a way in Common Lisp to include type predicates
over declared types as well as over instances -- implement...
Cerise asked 1/10, 2012 at 15:23
2
Solved
What is the common lisp way to rename a namespace to something else. So instead of writing hunchentoot:start I could write ht:start.
I'm looking for something like pythons import A as B.
Edit: Us...
Dirtcheap asked 3/10, 2012 at 14:26
3
Solved
I'm studying Common Lisp (with Lispworks) and I'm trying to get into class system right now. There is a class called standard-object and it is defined as
The class standard-object is an instanc...
Beedon asked 10/10, 2012 at 8:29
1
Solved
I am a javascript/web application newbie and trying to implement my first web application using hunchentoot and backbone.js. The first thing I was experimenting is to understand how model.fetch() a...
Irmine asked 6/10, 2012 at 23:13
4
Solved
I'm aware that Common Lisp has different binding environments for functions and variables, but I believe that it also has another binding environment for tagbody labels. Are there even more binding...
Downcomer asked 9/8, 2012 at 4:27
1
Solved
I'm trying to learn Common Lisp and want to use regular expressions for parsing a text file. Which library is the easiest to use for a beginner like me? Am I right in assuming it depends on w...
Phaedrus asked 4/10, 2012 at 1:5
2
Solved
I'm reading/working through Practical Common Lisp. I'm on the chapter about building a test framework in Lisp.
I have the function "test-+" implemented as below, and it works:
(defun test-+ ()
(...
Damara asked 29/9, 2012 at 23:43
1
Solved
I've seen this used once, but couldn't understand what it does. The reference says that it is
#n=object reads as whatever object has object as its printed representation.
However, that object...
Workmanlike asked 29/9, 2012 at 1:53
5
Solved
I am reading the book 'Practical Common Lisp' by Peter Seibel.
In Chapter 6, "Variables" sections
"Lexical Variables and Closures" and "Dynamic, a.k.a. Special, Variables&q...
Inconsumable asked 20/1, 2009 at 22:53
2
Solved
I'm interested in developing some kind of ring0 kernel-mode debugger for x86-64 in Common Lisp that would be loaded as a Linux kernel module and as I prefer Common Lisp to C in general programming,...
Schluter asked 19/9, 2012 at 1:31
3
Solved
If we define a function something like
(defun foo(x)
(setf x somevalue))
Is x defined as a local variable or global? using setf/q is setting the value to be global.
if it is global can anyone t...
Succentor asked 8/9, 2012 at 18:58
1
Solved
Let's say I wrote
(setf s (make-array (list 9 9) :element-type 'bit))
so s is a 9x9 matrix of bits.
and I want to get the 1st row of s. How do I get that?
I could have done the following:
(se...
Bibliomania asked 8/9, 2012 at 1:10
1
Can you recommend lexer and parser generators for Common Lisp? I have seen the following lists on CLiki, but most on the lists seem to be in their alpha stages:
http://www.cliki.net/LEXER
h...
Floccus asked 5/9, 2012 at 2:51
1
Solved
Is there a way to achieve the effects of compile-file but not with a regular file on disk, but with a stream or just an in-memory string? (I.e. if I don't have a file and don't want to create tempo...
Hint asked 30/8, 2012 at 20:28
2
Solved
In Common Lisp (SBCL 1.0.58) why does the macro OR use a gensym, but not AND?
For example,
CL-USER> (macroexpand '(and 1 2 3 4 5))
(IF 1
(AND 2 3 4 5)
NIL)
T
CL-USER> (macroexpand '(o...
Claudieclaudina asked 27/8, 2012 at 18:58
6
Solved
I wonder if some functional languages are used for web development and which are most useful and supported with that goal?
Ailurophobe asked 15/9, 2010 at 18:51
2
Solved
I wrote a common-lisp program and it is slower than it needs to be. Now I want to analyse my code to see where my time is going. Are there any tools that people use?
Fingerstall asked 26/8, 2012 at 8:57
© 2022 - 2024 — McMap. All rights reserved.