Questions tagged [common-lisp]
Common Lisp, or ANSI Common Lisp, is a standardized version of the Lisp programming language intended for production-strength power and libraries.
126 questions
5votes
1answer
77views
Advent of Code 2015 "Not Quite Lisp", in Common Lisp (Part 2)
I asked for feedback on part 1 of this Advent of Code challenge: Advent of Code 2015 "Not Quite Lisp", in Common Lisp I have read everyone's feedback and done a lot of further reading. I ...
5votes
2answers
117views
Advent of Code 2015 "Not Quite Lisp", in Common Lisp
I've been toying around with random programming languages for about 15 years. I'm just more of a sysadmin type than a programmer, but I've always wanted to do programming, so here I am. I know a bit ...
2votes
1answer
76views
Advent of Code 2024 - Day 1 (Common Lisp)
I have recently started learning lisp by reading ANSI Common Lisp, and I thought advent of code would be good for practice. Any feedback on my code for Day 1 would be appreciated. ...
6votes
2answers
344views
Simple JSON parser in lisp
A simple recursive descent JSON parser. The entrypoint to the code is the parse function. Since I'm pretty new to common lisp, I wanted to get feedback on how to ...
7votes
2answers
347views
Lexically-scoped Lisp interpreter
Introduction Here's an interpreter, written in Common Lisp, for a simple Lisp dialect that has some semi-“advanced” features, namely lexical scope with closures, ...
3votes
0answers
114views
Destructive quick and merge sort
I've implemented a destructive merge and quick sort in common lisp, but the code feels verbose and highly imperative. I was wondering if anyone could offer guidance on idioms that could make the code ...
0votes
2answers
305views
Split a list into two parts
I wanted to split a list into 2 parts, as per the chosen size, first the size and then the list. Example: (split 3'(1 3 5 7 9)) ...
3votes
0answers
269views
Prime number generator in lisp
My implementation is based on the incremental prime sieve described on Wikipedia. I'm relatively new to lisp so I would appreciate any comments on my coding style or on the algorithm. The below code ...
1vote
1answer
61views
How can I make this check balanced parenthesis implementation more concise and efficient?
I'm new to common lisp. I basically translated a procedural implementation of balanced parenthesis using a stack to common lisp. How can I make my implementation more lispy? ...
2votes
1answer
94views
Break down a list SEQUENCE into consecutive lists of constant TASTE
I am looking for ways to improve this little utility function: ...
2votes
0answers
123views
S-expression comments in Common Lisp
I have written a Common Lisp implementation of Scheme's s-expression comments (SRFI 62): ...
4votes
0answers
47views
Detecting Dependencies in Common Lisp Project Files (Part 2)
This is a rewrite of the Dependencies program submitted previously at https://codereview.stackexchange.com/questions/255635/detecting-dependencies-in-common-lisp-project-files/256336?noredirect=1#...
2votes
1answer
121views
Detecting Dependencies in Common Lisp Project Files
The following short program is a collection of routines for detecting the dependencies among a project’s component files. Dependencies serve as a rough measure of the complexity of a program. ...
4votes
1answer
63views
Count complete trips to the basement and back to ground floor
An elevator starts on the ground floor 0 and moves up or down by one floor at a time as described by an input string travel. ...
4votes
1answer
71views
count pairs of matching integers in a collection in Common Lisp
This defines count-pairs which takes a collection of integers returns the number of pairs of integers that are equal to each other. If the input collection has ...