common-lisp Questions
2
Solved
New Common Lisper here. I have seen packages being declared with the pound colon syntax, as in (defpackage #:foo), but I have also seen them defined as plain keywords, as (defpackage :foo).
Which i...
Mojgan asked 7/11, 2022 at 14:37
1
I'm trying to extract informations from a client certificate encrypted in PKCS#12 in Common Lisp.
I've tried with the following steps:
Load the given p12 file onto BIO with d2i_PKCS12_bio
Verify...
Helenahelene asked 10/4, 2017 at 14:11
4
Solved
I would like to know the best way to customize auto-formatting/auto-indenting in vim for Common Lisp.
Auto-formatting (I usually do this by typing '==' in command mode per line) works very well fo...
Papaya asked 15/12, 2011 at 1:8
1
Background: CCL aka OpenMCL is a very nice, venerable, lightweight but fairly fast Common Lisp compiler. It's an excellent match for the RPi because it runs on 32-bit models, and isn't too memory i...
Discussion asked 18/9, 2022 at 20:26
3
Solved
Okay, final question and I'll have finished my number guessing game in Common Lisp! :D Whenever the game starts (or a new game begins after the first game), the following function is called.
;;; P...
Bywaters asked 27/10, 2010 at 13:57
2
Solved
Using SBCL, I have the problem that my system defined via ASDF does not load, when the lisp code defines a string constant.
Here's the code:
constants.lisp
(defconstant A 1.0)
(defconstant B "B")...
Lawgiver asked 14/1, 2016 at 22:27
13
How can I remove nested parentheses recursively in Common LISP Such as
(unnest '(a b c (d e) ((f) g))) => (a b c d e f g)
(unnest '(a b)) => (a b)
(unnest '(() ((((a)))) ())) => (a)
...
Whorish asked 21/4, 2010 at 6:54
2
Solved
I am learning a little assembly and for my next project I would like to learn how to make an incremental assembler.
By "incremental assembler" I mean an assembler that accepts new code wh...
Bibliophage asked 31/5, 2022 at 19:21
2
Solved
I started playing with SBCL Common Lisp and want to develop a small web application using Hunchentoot. For easy deployment I planned to save everything in a binary using sb-ext:save-lisp-and-die as...
Transoceanic asked 24/5, 2015 at 10:25
4
Solved
Can anybody explain an example in Paul Graham's ANSI Common Lisp page 110?
The example try to explain the use &rest and lambda to create functional programming facilities. One of them is a func...
Corpulence asked 8/5, 2011 at 14:45
4
I am working using a visual programming environment for musical composition based on CL . I am trying to create a function that when given say 3 elements (1 2 3) will return 1, 2, 3, 1, 2, 3 etc., ...
Bouchard asked 21/5, 2013 at 19:54
2
Solved
64-bit Windows 7
Clozure Common Lisp Version 1.9 WindowsX8632
Emacs 24.3.1
Slime changelog date 2014-06-17
I have an example .lisp file which starts out as follows:
(ql:quickload 'qt)
(in-pac...
Lagoon asked 23/11, 2014 at 22:45
5
Solved
I've done a bit of research on this subject and am turning up blanks. There seem to be implementation-dependent ways of doing Unix signal handling in Common Lisp, but is there a package that gives ...
Desexualize asked 30/3, 2012 at 21:33
1
Solved
There isn't a Genera topic on stackoverflow, but I thought I'd take the chance that one of the (probably) 5 people in the world using it might be here; no harm in trying.
I've run into the situatio...
Poulos asked 21/9, 2021 at 7:33
4
Solved
Recently, I've been often nesting several functions that return multiple values. However, unlike let, which me allows to write these calls elegantly into one big statement, I always end up with a l...
Aborticide asked 1/2, 2020 at 18:54
3
I have been playing with saving running Common Lisp images to save time upon restart and make the development more efficient. However, I am having a bit of a problem since when I run the following ...
Alimentary asked 16/1, 2018 at 13:39
3
I wonder if there is a less verbose way than using a loop. Anyway this works for me in CLISP:
(loop for key being the hash-keys of *my-hash* collect key)
I've seen others using maphash, but that...
Lareine asked 15/3, 2012 at 12:37
3
Solved
Is there a way to create a directory using common lisp. I want to first create a folder and then put my .txt .png files in that. I know that first I can create the folder externally and then using ...
Enugu asked 27/2, 2012 at 19:14
4
Solved
This paper claims to make a certain Lisp program run faster than its C
equivalent. Trying to reproduce the results, I was able to get close (Lisp is
50% slower than C) but wanted to know if anyone ...
Helicopter asked 25/1, 2016 at 17:55
5
Solved
Is there a short way of exporting all the symbols from a package or is it the only way to do it in defpackage. I generally write my code in a file foo.lisp which generally starts with (in-package :...
Sharyl asked 16/3, 2012 at 19:1
5
Solved
read-line and read-char both require you press Enter key after typing something. Is there any mechanism in Common Lisp that would allow the program to continue upon the press of any single characte...
Kerbstone asked 29/11, 2013 at 0:41
1
Solved
Working on some more complicated example with type specifiers in common lisp, I've run into the strange behavior of and + satisfies, namely it doesn't seem to short circuit in case of first typeche...
Mackintosh asked 2/11, 2021 at 20:59
11
Solved
Common Lisp guys have their CL-WHO, which makes HTML templating integrated with the "main" language thus making the task easier. For those who don't know CL-WHO, it looks like this (example f...
Slacks asked 22/3, 2009 at 20:31
9
Solved
I do most of my development in Common Lisp, but there are some moments when I want to switch to Scheme (while reading Lisp in Small Pieces, when I want to play with continuations, or when I want to...
Rake asked 21/9, 2008 at 12:34
1
Solved
In how to turn off the debugger in sbcl, one of the answers says that the debugger can be turned off by setting *debugger-hook*:
(defun debug-ignore (c h)
(declare (ignore h))
(print c)
(abort))...
Millda asked 22/9, 2021 at 7:49
© 2022 - 2024 — McMap. All rights reserved.