r/learnlisp • • Aug 13 '25

Remote Lisp RDP

0 Upvotes

Hi, I am new to this subreddit and new to CL in general.

I am reluctant to install CL on my own machine because I am paranoid about malware etc. It is also a pain to re-install CL every time I refresh or re-install my operating system, which I do so regularly as a matter of security. However, I am excited to learn CL, and want to set up my environment to begin coding.

What would really be ideal would be a remote service where I could have an account to access remotely over the internet. My university had a computer lab like this for learning C. You could request credentials and telnet online over a remote desktop connection. It was a great way to kickstart the learning process, and got people started on coding without having to worry about installing a compiler.

Seeing so many posts and articles about choosing a CL implementation is great, and I love that it's ANSI-standardized, but I don't really want to wade through a dozen set-ups just to get to "Hello, World!"

I signed up at common-lisp.net but it doesn't seem very active. Maybe I missed something, but it looks like most of their projects are abandoned or hosted on Gitlab, which isn't really CL.

Aren't there any managed services out there hosting CL sandboxes with persistent storage?

Thanks!


r/learnlisp • • Sep 27 '18

Nice and to the point tutorial on CLOS

Thumbnail 1ambda.github.io
1 Upvotes

r/learnlisp • • Oct 16 '20

Macro editor software for work

0 Upvotes

Hey guys, I just got hired in a department that processes payments. We have some integrations issues between platforms that translate into numerous repetitive tasks. I’ve heard that macros can help in this situation. I already set up excel macros all over but now I need to set up macros that click on specific items, screenshot specific regions, basic stuff. Do you guys have any recommendations for a Macro software (free or paid) that would be both, not too hard to figure out for a beginner (although tech savvy) and at the same time, powerful enough as to allow more complex macro instructions as I gain experience?? PLEASE I NEED YOUR HELP GUYS.


r/learnlisp • • Jan 04 '20

Is There An Implementation of SBCL (Or Updated Lisp) That's Fully In The Public Domain? [SBCL] (CMUCL?)

3 Upvotes

The SBCL Copyright page says some SBCL files are under a BSD-style license - does anyone know which files they are, and if they can be re-written easily to create a fully public domain SBCL-variant, or if this has already been done?

Also, as an alternative, what parts of CMUCL is not in the public domain, or is it all? Their Wiki suggests there some files that aren't.

tl;dr what's a totally public domain lisp set-up, or what would be the road map to creating one?


r/learnlisp • • Sep 28 '19

Learn Functional Programming by writing a Scheme in Haskell :: 0x0f0f0f

Thumbnail
0x0f0f0f.github.io
4 Upvotes

r/learnlisp • • Jan 31 '20

Please help with BricsCAD coding

Post image
0 Upvotes

r/learnlisp • • Feb 17 '20

Testing a palindrome recursively

0 Upvotes

Hi, So I have been working on this for a while now and searched all over the internet, but I am still confused on how conditions in functions work and also how to (write) out based on what condition was satisfied. I am trying to use a recursive function to check to see if a list is a palindrome. I am pretty sure I have the actual recursive function right. Any help would be greatly appreciated!! The code i am posting has had a lot of different things tried and parts have been commented out. I have been able to get it to run but it will not return whether or not it was actually found to be a palindrome.

(write (cdr '(1 2 3 4))) (write (eq (car '(A B B A)) (car(reverse '(A B B A))))) (defun palindromep (list)

; (cond ((eq (car list) (car(reverse list)))) (cond ((not (eq (car list) (car(reverse list))))nil) ((eq (car list) (car(reverse list)))t)) (lambda (cdr list) (lambda(cdr(reverse list)))) (t(palindromeep(list))) ; (t((lambda (cdr list))(lambda (cdr(reverse list))) palindromep(list))))) (nil(write "nil"))))

; (cond ((eq (car list) (car(reverse list))) ; (t(cdr list)(cdr(reverse list)) palindromep(list)))))

(write(palindromep '(a b b a))) (terpri) (palindromep '(a b c b a)) (terpri) (palindromep '(a b c)) (terpri) (palindromep '(a (d e) b (d e) a)) (terpri) (palindromep '(a (d e) b (e d) a))


r/learnlisp • • Oct 30 '20

help

1 Upvotes

emailed my professor and didnt get a reply.

The program is the "Color Map" problem. Basically I have to apply colors to a map using the least number of colors possible with the constraint of no "state" can have the same color as a state that borders them.

I am not experienced in LISP and this is an introductory course so I don't want to use advanced techniques. He mentioned in class that using the property feature is one way to solve this problem. assigning the color property to the cell I guess?

I have all the cells and their nieghbors in lists so basically ( a( d w a f) ) but I am kinda confused on how I can assign the colors, he didnt even mention how many colors to start out with but I have a list of 17 cells so I figured i'd start with like 5 colors?

if you have any advice or if you know how to solve this problem I would apperciate it very much.


r/learnlisp • • Aug 03 '15

[SBCL] I just want to use Sublime Text and compile files in the console? Is that realistic?

1 Upvotes

Also, how do you compile using sbcl? Is it just

sbcl make sourceCode.lisp

Or something like that? I know you can get to the repl by just entering

sbcl


r/learnlisp • • May 22 '14

The joy of iterators

Thumbnail
blog.rongarret.info
4 Upvotes

r/learnlisp • • Dec 08 '17

Is there any Application server for Common Lisp ?

2 Upvotes

I don't find any listed in Wikipedia List of application servers.

But I find Antiweb from googling.


r/learnlisp • • Feb 23 '14

Welcome! Please READ THE SIDEBAR before posting. Thanks!

6 Upvotes

Post any meta (about this subreddit) questions/comments in this thread please, or message the mod(s). Suggestions are welcome, as this subreddit is very new! Thanks and enjoy!

Update: We have a wiki page for how to install Lisp and get it running. Please help us add to it! http://www.reddit.com/r/learnlisp/wiki/installation

Please check out the wiki and contribute if you can. Thanks!


r/learnlisp • • Dec 02 '19

How make this Math in Lisp?

0 Upvotes

25 square root of 5. Can you understand? In office Word this is the math representation: √((5×5)&5).


r/learnlisp • • May 21 '14

The Idiot's Guide to Common Lisp Packages

Thumbnail flownet.com
8 Upvotes

r/learnlisp • • May 21 '14

The Idiots Guide to Special Variables

Thumbnail flownet.com
4 Upvotes

r/learnlisp • • Mar 20 '19

Getting Started with Common Lisp on macOS in Sublime Text 3 (no interactive debugger though)

Thumbnail
blog.fredericrenken.com
4 Upvotes

r/learnlisp • • Aug 11 '20

Emacs lisp error (noob)

Thumbnail
self.emacs
0 Upvotes

r/learnlisp • • Oct 06 '20

Storage a print value

1 Upvotes

Hi, I'd like to storage the value of action2 and when, in (if (equal nil sieve)), the value be t the code return all the values that was printed in action2 rather then finish**.**

(defun c-decompose-fun (sieve)

(let* (

(action1
        (loop :for crible-element :in sieve :collect 

            (remove nil (let* ( 
                    (last-elem-sieve (last-elem sieve))
                    (flat-sieve (flat sieve)))

                    (loop :for cknloop :in flat-sieve :collect 
                        (let* ((box-abs (abs (- crible-element cknloop)))
                                (box-if (if (= box-abs 0) crible-element box-abs)))
                                (if     (= (length flat-sieve) (length (remove-duplicates 
                                    (x-append
                                         (arithm-ser crible-element last-elem-sieve box-if)
                                                flat-sieve)
                                        :test
                                        'equal)))
                                    (x-append box-if crible-element last-elem-sieve) nil)))))))

;; STORAGE THIS VALUE OF ACTION2

(action2 (print (first (sort-list (flat action1 1) :test '< :key 'second))))

(action3 (let* (
(one-crible (arithm-ser (second action2) (third action2) (first action2))))

(loop :for cknloop :in one-crible :collect
        (let* ((accum-fun #'(lambda (sieve cknloop) (remove cknloop sieve))))
                  (setf sieve (funcall accum-fun sieve cknloop))))))

(action4 (last-elem action3)))

(if (equal nil sieve) 'finish (setf action4 (c-decompose-fun sieve)))))

;And rather than FINISH this return the value of all the action2 printed

(c-decompose-fun '(23 33 47 63 70 71 93 95 119 123 143 153 167 174 183 191 213 215 239 243 263 273 278 287 303 311 333 335 359 363 382 383 393 407 423 431 453 455 479 483 486))

How can I do this?

Some help with the lisp documentation, thank you!


r/learnlisp • • Mar 09 '14

Question about reader macros in racket.

1 Upvotes

I want to create two reader macros. The first will get #m[number] and will turn it into: (str->decimal "[number]") for example #m123.333 will turn into (str->decimal "123.333")
The second will get #p"[string]" and will turn it into escaped string. for example #p"c:\programs\racket" will turn into "c:\\programs\\racket"

How do I do it without losing the regex reader macros (#rx and #px)?


r/learnlisp • • Mar 10 '16

[sbcl] [ccl] Testing if a symbol is a hash-table in a macro

1 Upvotes

I'd like to build a macro that expands to different forms depending on the type of the symbol supplied as an argument. A small reproducible example (two of them, actually... that fail on sbcl and ccl) is as follows:

λ (defmacro what-am-i (a-thing)
   (etypecase a-thing
        (list         `(format t "im a list"))
        (vector       `(format t "im a vector"))
        (hash-table   `(format t "im a hash-table"))))

λ (defmacro what-am-i2 (a-thing)
     (cond
        ((typep a-thing 'list)         `(format t "im a list"))
        ((typep a-thing 'vector)       `(format t "im a vector"))
        ((typep a-thing 'hash-table)   `(format t "im a hash-table"))))

λ (defparameter *my-hash* (make-hash-table))
λ (setf (gethash 'Ringo *my-hash*) "Starr")
λ (setf (gethash 'George *my-hash*) "Harrison")

λ (what-am-i '(1 2 3 4))
im a list
NIL

λ (what-am-i "abcd")
im a vector
NIL

λ (what-am-i *my-hash*)

debugger invoked on a SB-KERNEL:CASE-FAILURE in thread
#<THREAD "main thread" RUNNING {10039846F3}>:
  *MY-HASH* fell through ETYPECASE expression.
  Wanted one of (LIST VECTOR HASH-TABLE).

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(SB-KERNEL:CASE-FAILURE ETYPECASE *MY-HASH* (LIST VECTOR HASH-TABLE))
0] ^D

λ (what-am-i2 '(1 2 3 4))
im a list
NIL

λ (what-am-i2 "abcd")
im a vector
NIL

λ (what-am-i2 *my-hash*)

NIL
λ (typep *my-hash* 'hash-table)

T

Can anybody tell me what I'm doing wrong?


r/learnlisp • • Jun 17 '26

I know you get a lot of posts like this, but...

Thumbnail reddit.com
1 Upvotes

r/learnlisp • • Apr 29 '20

Why is SBCL complaining about setf?

Thumbnail
stackoverflow.com
7 Upvotes

r/learnlisp • • Dec 24 '18

Gensym names doubts in get-setf-expansion[SBCL]

2 Upvotes

Hi, I am reading "on lisp" chapter12 which introducing modifier macro made up by get-setf-expansion. As HyperSpec shows get-setf-expansion return five values constituting the "setf expansion" for place variable.

My question is, as I try in repl, the third value of get-setf-expansion is always names #:NEW1, like the following:

;; example1
(let ((l '(a b c d)))
  (get-setf-expansion (car l)))

NIL
NIL
(#:NEW1)   ;; <--- here
(SETQ A #:NEW1)
A

;; example2
(let ((x 3))
  (get-setf-expansion x))

NIL
NIL
(#:NEW1)  ;; <--- here
(SETQ 3 #:NEW1)
3

I know these two symbols are different although they have the same name, and when I compare them with eq, it returns nil as I expected.

This is quite confusing when reading the macro expansion of macro sortf defined in chapter 12.4, which is used to sort and modify place variables:

;; Macro definition of sortf
(defmacro sortf (op &rest places)
  (let* ((meths (mapcar #'(lambda (p)
                            (multiple-value-list
                             (get-setf-expansion p)))   ;;; <--- keypoint, here
                        places))
         (temps (apply #'append (mapcar #'third meths))))
    `(let* ,(mapcar #'list
                    (mapcan #'(lambda (m)
                                (append (first m)
                                        (third m)))
                            meths)
                    (mapcan #'(lambda (m)
                                (append (second m)
                                        (list (fifth m))))
                            meths))
       ,@(mapcon #'(lambda (rest)
                     (mapcar
                      #'(lambda (arg)
                          `(unless (,op ,(car rest) ,arg)
                             (rotatef ,(car rest) ,arg)))
                      (cdr rest)))
                 temps)
       ,@(mapcar #'fourth meths))))

;; Macro expansion example
(let ((x 1)
      (y 2)
      (z 3))
  (sortf > x y z)    ;; <--- use the sortf defined upwards.
  (list x y z))

;; expansion result
(LET ((X 1) (Y 2) (Z 3))
  (LET* ((#:NEW1 X) (#:NEW1 Y) (#:NEW1 Z))  ;; <---- these new symbols  are all named #:NEW1.
    (UNLESS (> #:NEW1 #:NEW1) (ROTATEF #:NEW1 #:NEW1))
    (UNLESS (> #:NEW1 #:NEW1) (ROTATEF #:NEW1 #:NEW1))
    (UNLESS (> #:NEW1 #:NEW1) (ROTATEF #:NEW1 #:NEW1))
    (SETQ X #:NEW1)
    (SETQ Y #:NEW1)
    (SETQ Z #:NEW1))
  (LIST X Y Z))

So, how can I control the behavior of this, it seems there is a method to customize the output gensyms of get-setf-expansion to be like #:g1, #:g2, etc, to make the generated macro more readable.

I have found when generated symbols with gensym or make-symbol we can pass string name to it instead of using the default *gensym-counter*. But I don't know how to do here.

Thank you very much!


r/learnlisp • • Feb 26 '14

What's a good graphics library for lisp?

2 Upvotes

there's a list of them here: http://www.cliki.net/graphics%20library but it's a really long list, and I don't know which ones are still supported? which one should I use?

by the way, I'm on windows. thanks!


r/learnlisp • • Jun 02 '21

chicken-install not working on windows

2 Upvotes

Hi, I'm new to scheme and recently ran into issues trying to get geiser to work with emacs (Geiser not sending correct code to chicken repl (windows) : emacs (reddit.com)). 

Someone on reddit pointed out that I should've used msys to install it (I got a windows installer for the web which turned out to be an older version of chicken).

So, i installed msys, and followed the instructions here: http://kflu.github.io/2017/02/22/2017-02-22-chicken-scheme-notes/ (stopped at the problem installing openssl egg part).

After doing all that, i tested csi and it worked ("(import chicken)" didn't work tho), but while trying to install apropos and chicken doc (from Using CHICKEN with emacs - The CHICKEN Scheme wiki (call-cc.org)), i get this error:

PS C:\Users\user> chicken-install -s apropos chicken-doc
Error: extension or version not found: "apropos"

I have set the following system variable:

CHICKEN_PREFIX :: c:\chicken

and also have these in my system path:

C:\chicken\bin

C:\chicken\lib

C:\msys64\mingw64\bin

Any help would be greatly appreciated, thanks