Skip to main content

Questions tagged [lisp]

Lisp is a (family of) general purpose programming language(s), based on the lambda calculus, and with the ability to manipulate source code as a data structure.

7 votes
2 answers
387 views

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, ...
texdr.aft's user avatar
  • 268
9 votes
1 answer
141 views

I decided to learn more about how interpreters work and made a simple Scheme interpreter in Python. I'd like to hear some advice on how I could have written this better, or on the mistakes I've made. ...
guy25678's user avatar
3 votes
0 answers
139 views

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 ...
bfair's user avatar
  • 131
0 votes
2 answers
343 views

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)) ...
The Nightm4re's user avatar
3 votes
0 answers
283 views

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 ...
rose's user avatar
  • 325
1 vote
1 answer
85 views

I decided to create a portable Emacs config and install packages I use if it's necessary on a fresh computer. Here is what I've done: ...
user4035's user avatar
  • 303
5 votes
0 answers
119 views

Motivation While working on a completely unrelated task, I wanted to share a screenshot of my current Emacs frame, but not of the actual text contents. And while GIMP's pixelate filter did the job, I ...
Zeta's user avatar
  • 19.6k
3 votes
2 answers
486 views

I'm in the early stages of learning Racket, and decided to have a go at the tower of Hanoi. I did this without any reference whatsoever, so everything is up for review, including the algorithm as well ...
Avrohom Yisroel's user avatar
4 votes
1 answer
80 views

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. ...
user235906's user avatar
3 votes
0 answers
195 views

This is the initial skeleton for a short game written in Fennel for a Jam event. It runs sensibly, but I want to know if I'm missing something that could make the code more elegant as it's a bit ...
Mark Green's user avatar
6 votes
1 answer
140 views

Motivation Previously, on the Emacs stack exchange: In Org mode, when I open a link (C-c C-o) [...] [that] contains a wildcard, such as file:3_o*.pdf, Emacs opens ...
Zeta's user avatar
  • 19.6k
2 votes
0 answers
49 views

The state machine has the below specifications (defparameter *test-machine* (make-fsm :alphabet '(a b) :table '((2 1) (0 2) (1 0)) :initial 0 :accepting '(2))) ...
Ssunsshine's user avatar
4 votes
1 answer
368 views

I created a library with two CLOS class to implement a deque structure similar to the one available in C++, plus a few Lisp-ian twists. The two classes are node, ...
Paulo Mendes's user avatar
2 votes
0 answers
66 views

My answer to Project Euler problem 4 (largest palindrome of product of two 3-digit numbers) is below. Please suggest improvements, style changes, indentation, commenting, naming, ... And nitpicks are ...
pmg's user avatar
  • 530
3 votes
2 answers
299 views

My answer to Project Euler problem 3 (largest prime factor of 600851475143) is below. Please suggest improvements, style changes, indentation, commenting, naming of "objects", ... ...
pmg's user avatar
  • 530

15 30 50 per page
1
2 3 4 5
13