A simple Common Lisp web app

33 silcoon 8 4/30/2025, 2:32:56 PM scotto.me ↗

Comments (8)

v9v · 23m ago
re: common lisp shines at low-level tasks like microcontroller programming

While I couldn't find an explicit declaration of this in the linked article, the tunnel system likely has something on the level of an SBC (think raspberry pi) rather than a microcontroller. Common Lisp makes it possible to do fun low-level assembly stuff but AFAIK none of the implementations can run on a microcontroller.

There's uLisp, which builds on Arduino's libraries but it isn't a Common Lisp implementation.

In terms of bare-metal CL implementations there is Movitz (stopped development) and Mezzano, but I don't think those can run on any microcontrollers.

There are also some libraries to convert CL to C, thinlisp and CLiCC, but these aren't actively maintained currently.

The possibility of porting Clozure CL to the RP2040 was discussed in the ccl mailing list last year, but I don't think anyone's working on it.

jimbokun · 4h ago
Man that seems like an awful lot of ceremony for a trivial web app. Surely the language known for macros and building your own DSLs has a more concise way to get a web app up and running?
silcoon · 3h ago
Author here: You're right! I did that in the article. First I showed how to use the modern libraries, then wrote a quick custom library that compressed my original app in 29 LOC[0].

[0]: It came out shorter than the guestbook demo in Python-Flask.

nomilk · 4h ago
This is a pretty great tutorial using common lisp libraries:

https://www.youtube.com/watch?v=A4PzSsOD-CQ

(also, the top comment is gold)

silcoon · 3h ago
Josh Betts is a good bloke!
anonzzzies · 3h ago
Is it? This translates fairly exactly to things like nodejs/express implementing the same thing?
anonzzzies · 3h ago
I use CLOG these days; it's all so easy to get things done.
nesarkvechnep · 2h ago
It’s good but has nothing on Phoenix LiveView. I love Common Lisp but for web, I can’t choose it over Elixir.