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
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
5
votes
1
answer
82
views
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 ...
4
votes
2
answers
125
views
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 ...
3
votes
1
answer
91
views
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.
...
5
votes
2
answers
362
views
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 ...
7
votes
2
answers
365
views
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, ...
3
votes
0
answers
123
views
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 ...
0
votes
2
answers
322
views
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))
...
3
votes
0
answers
275
views
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 ...
1
vote
1
answer
71
views
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?
...
2
votes
1
answer
97
views
Break down a list SEQUENCE into consecutive lists of constant TASTE
I am looking for ways to improve this little utility function:
...
2
votes
0
answers
132
views
S-expression comments in Common Lisp
I have written a Common Lisp implementation of Scheme's s-expression comments (SRFI 62):
...
4
votes
0
answers
51
views
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#...
2
votes
1
answer
131
views
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. ...
4
votes
1
answer
68
views
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. ...
4
votes
1
answer
78
views
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 ...