r/lisp • • 1d ago

Racket Advent of Code 2026 Leaderboard

5 Upvotes

Advent of Code 2026 Leaderboard

> Any language in the Racket ecosystem is allowed on our leaderboard (Rhombus, PL/I, etc), including languages that target other platforms like Urlang.

https://racket.discourse.group/t/advent-of-code-2026-leaderboard/4508


r/lisp • • 1d ago

Common Lisp cl-cht: concurrent hash tables for Common Lisp

14 Upvotes

Common Lisp's standard hash tables are not safe to use from more than one thread. Wrapping one in a global lock works, but under real concurrency it turns the table into a single serialization point.

cl-cht is a small library of concurrent hash tables with two backends: a portable sharded table, and — on SBCL/x86-64 — an open-addressing table whose metadata probing is done with SSE2, using an AVX2 broadcast where the CPU supports it.

https://lisper.nl/blog/turtle/cl-cht-concurrent-hash-tables-for-common-lisp

update: benchmarks with SBCL's synchronized hashtables. https://lisper.nl/blog/turtle/cl-cht-vs-sbcl-s-synchronized-hash-tables


r/lisp • • 1d ago

Lisp Coalton Community Challenge: Unique Text RPG!

18 Upvotes

In the Coalton community, we get a lot of people who are interested in the language but don't have anything to do with it. To give people a chance to learn and practice Coalton, we're starting the Coalton Community Challenge!

The goal of the challenge is to give interested Coalton developers a chance to practice on a fun project. Because the community are working on the same project, everyone can learn by checking out each others' implementations.

A new challenge will get released at the start of every other month. Some challenges have optional, harder tasks. The challenge runs for two months. At the start of the second month, an additional task is released that builds on the first. This is a challenge, not a competition. You're encouraged to share your code, take inspiration from others, and ask for help if you get stuck! A great place is to ask of the Coalton discord. When you finish, post it on Github and submit a PR/Issue to add your code to the [Completionboard on the front page](https://github.com/Jason94/coalton-community-challenge/tree/master#completion-board)!

Finally, if Coalton isn't something you're interested in, but this still sounds like a fun way to write your Lisp language of choice, that's ok too. PR/Issues of any Lisp dialect will be accepted.

---
The challenge for December + January is to write a text-based, Unique* Fantasy RPG. The repository includes a package definition and a template main function, so all you have to do to get started is clone the repo!


r/lisp • • 1d ago

Symbolics Ivory XL1200 Lisp Machine Emulator

Thumbnail unya.github.io
24 Upvotes

r/lisp • • 2d ago

SBCL: New in version 2.6.11

Thumbnail sbcl.org
26 Upvotes

r/lisp • • 2d ago

Uneval: simple, beautiful, and correct #. printers

Thumbnail github.com
14 Upvotes

r/lisp • • 4d ago

Scheme A PC bootable Lisp machine in 7KB with a breakout game

Thumbnail github.com
45 Upvotes

r/lisp • • 4d ago

Common Lisp Portfolio/scenario simulation and plotting in fincl

Thumbnail aatmunbaxi.github.io
11 Upvotes

For those that don't know, fincl is a quantitative finance library I've been working on for common lisp (I can only safely say SBCL at the moment). Its emphasis is on option pricing, with the goal of being an expressive and extensible DSL for a domain notoriously full of jargon and impenetrable programming constructs. It is a bit rough around the edges, but it's been a fun toy to play with so far.

I've written up some worked example of one of fincl's new features: simulation along synthetic paths. This allows users to take assumptions of how they think future markets might move and test strategies and log data against potentially thousands of possible futures; essentially a Monte Carlo simulation. In some sense, this is the opposite of backtesting.

The main piece is a macro that handles time grid generation, stepping logic, tracking of local variables, updating of markets, and recording of data. The data can then be fed to fincl's sister package fincl-viz, which writes simulation results to json to be fed into plotly. An example of this is in the write-up as well.

Repo: https://github.com/aatmunbaxi/fincl


r/lisp • • 5d ago

Clojol: A high-performance, fast-startup implementation of Clojure (unofficial)

Thumbnail github.com
13 Upvotes

r/lisp • • 5d ago

Scheme Functions and Russel's Paradox

Thumbnail reddit.com
4 Upvotes

r/lisp • • 5d ago

Scheme GNU Artanis: Axiomatic Design and Module Independence

Thumbnail artanis.dev
24 Upvotes

r/lisp • • 8d ago

cl-scope: structured concurrency on SBCL threads with live failure parking (not sure if this exists, I just vibe coded one)

Thumbnail github.com
0 Upvotes

Hey folks — I'm building an agent harness on top of an SBCL live image, and I needed structured concurrency that actually plays nice with Common Lisp's conditions and restarts. Honestly not sure if a library like this already exists in CL (I looked at cl-cancel, which is nice for cancellation tokens/streams, but didn't find full task scopes + live parking), so I ended up vibe coding a small one and just open-sourced it:

It's ~530 lines of SBCL-only Common Lisp with zero external dependencies (MIT licensed). The gist:

  • Lexical scopes (sc:with-scope, sc:spawn, sc:gather): every task runs on a real OS thread, and a scope won't exit until every child thread has finished and joined.
  • Cooperative cancellation where tasks wait: built-in waits (pause, channels, subprocesses + their process groups, sockets, or custom call-with-waker) register wakers on a scope token. sc:cancelled is a condition (not an error), so (ignore-errors ...) in task code won't accidentally eat it. Tight loops or non-cooperative waits fall back to interrupt-thread after a grace period, and if a thread still refuses to exit it signals sc:stuck.
  • :on-failure :park (the part I actually wanted most): instead of unwinding the stack and killing siblings when something blows up, the failing task freezes right on its real call stack while siblings keep running. Another thread (a REPL, supervisor, or in my case a repair agent) can inspect its live dynamic bindings with sc:ask, redefine the broken function in the image, and resume it in place via sc:answer using normal CL restarts (sc:retry, sc:finish-with, sc:give-up, or your own).

Even though I vibe coded it, I tried to keep it solid — explicit state machines for shutdown and exit outcomes, 32 checks (including zero-thread-leak verification), and a 12-mutant mutation suite.

I also wrote a short blog post comparing how this turned out vs Effect-TS's Fiber (user-space trampoline + stack-unwinding Cause<E> vs OS threads + live parking): https://nohzafk.github.io/posts/2026-11-24-cl-scope-vs-effect-ts-fibers/


r/lisp • • 8d ago

I made a toy lisp in Haskell!

36 Upvotes

Made this throwaway project in a really short time, it's rather quirky but I had a lot of fun programming.
Will add basic macros and a small standard library before abandoning this.
Did one of the '99 Problems in Lisp' in it.

Check it out: https://github.com/ameyakakade/df


r/lisp • • 9d ago

What is your take on John Backus’s assertion that the FP (point-free) style is, in his view, more advantageous than the lambda calculus?

46 Upvotes

[Backus1981a] took up the lambda style (e.g., LISP [McCarthy1960] and Landin's ISWIM [Landin1964]): "In general, we suggest that the FP style offers a framework in which one can perceive and reason about program structures, truths, and transformations at a higher level of generality than that presently available for reasoning about lambda style programs." He acknowledged that using lambda abstraction one can define all of the FP program forming operations and "an infinity of others," but argued that this power would lead to undisciplined use and concluded: "Therefore perhaps it is time to begin designing a new generation of functional languages, languages that emphasize function level structure and function level reasoning."


r/lisp • • 11d ago

AskLisp AffrescoUI update: now a Clojure dialect, with nREPL into running apps. Thank you, r/lisp!

9 Upvotes

AffrescoUI is an open-source engine for native desktop apps. Each app is a Lisp program holding its layout, data and behaviour, drawn by a native C++/OpenGL renderer. You change it while it runs: add advice or a hook, or describe the change in plain words and have an AI propose the Lisp edit, which you preview, then keep or undo. The goal is Emacs-style malleability for everyday apps, from a photo editor to a 3D modeller.

Two weeks ago I shared it here and asked for feedback. Thank you all! The comments were full of ideas, and I've spent the last two weeks building as many as I could.

The question I heard most was why I made a new Lisp instead of using a known one. Fair point: it looked like Clojure, but many everyday forms didn't work. So AffrescoUI Lisp is now a Clojure dialect. Threading macros, #(...), case, for, sets, ns and much of the core library work as expected. It's scored against the cross-dialect Clojure test suite, with every intended difference written down. Commands, settings, hooks and advice are all still there.

Other ideas from the thread are in too. You can connect CIDER, Calva or Conjure to a running app over nREPL and evaluate into it. You can point at anything on screen and ask for a change, a bit like presentations. Updates rerun only what depends on a change, in the spirit of Cells. And you can undo an earlier change but keep what was built on top of it.

The new video shows an image editor gaining 3D and slides just by asking its assistant, a new app made from a name and a description, and the Launcher. (The agent's edits were prepared in advance and its waiting time is cut, but every change is a real revision accepted in the running app.)

Your suggestions last time led to so many valuable results that I'd love to ask again:

- Do you think Lisp is the future language for malleable software?

- What feature should I build into AffrescoUI next?

- What would you need before building your own app with it?

GitHub repo if interested: https://github.com/RiccardoSottini/AffrescoUI


r/lisp • • 13d ago

maak reaches v1.0.0 :: the infinitely extensible command runner, control plane and project automator with Lisp (GNU Guile Scheme)

Post image
65 Upvotes

maak is a command runner, and its task list is a Lisp file. You write maak.scm, a perfectly normal Lisp (Guile Scheme) module, and every procedure in it becomes a task you can name on the command line. There is no DSL to learn and no second language to keep in your head: the build is the program.

Repo: https://github.com/jjba23/maak

(define-module (maak)
  #:declarative? #t
  #:use-module (maak maak))

(define (deploy host)
  "Ship release.tar.gz to HOST."
  (build)
  (run (list "rsync" "-avz" "release.tar.gz"
             (string-append host ":srv/www/"))))


$ maak deploy -- example.org

The docstring is the entry maak --list prints. The lambda list is the argument grammar. Tasks call each other with a function call, not a subprocess that re-parses a file. There is no second language, and nothing to keep in sync between the task list and the code that runs.

  • run takes a program and its arguments as separate strings, so a path with a space in it stays one argument.
  • run-pipeline connects stages with pipe/dup2, reports every failing stage instead of only the last one, can tee what a stage wrote, and can run the whole pipeline as a background job with a pid you can poll.
  • maak -j 4 -- fmt,lint,test forks a worker per task and prints each task's output as one block, in the order you named them.
  • Dry run and quiet are Scheme parameters, so a test can parameterize them instead of threading --dry-run through five layers.
  • A task can declare #:depends, #:hidden? and #:example, and -j orders by those dependencies instead of only fanning out.

You can also use plain static Maak files, maak.yaml, maak.toml and maak.json they work with the same --list, --plan and --watch and running of course.

version: 1

tasks:
  lint:
    doc: Lint and format-check, failing on warnings.
    commands:
      - [cargo, clippy, --, -D, warnings]
      - [cargo, fmt, --check]

maak --plan deploy -- example.org runs nothing and prints the typed plan: each argv, working directory, environment, elevation, and whether it would run in the background. With --json the same plan is a versioned object a CI job can archive or diff.

maak explain deploy prints the call graph (what deploy calls, what calls deploy), the load path, the escalation, and which .env file wins for each variable. It answers "why did this run as root" without making you read the file.

There is also maak --watch TASK, which re-runs and reloads the file on change, and maak --list --json, the versioned task description that the Emacs, Neovim, Vim, VS Code, Helix, IntelliJ, Zed and Sublime integrations all read.

Supporting many features for common development and devex, cargo and rustup, uv and pyproject, npm/pnpm/yarn, Maven and Gradle, Guix and Nix (a pinned Guix resolves to a value a task can decide on, not a string another tool re-reads), Podman/Docker and Compose, git, tar and zip, curl and wget, GNU gettext, Emacs Lisp packaging, sift, and Veritas.

I'd love to hear your thoughts, critique and ideas! More improvements to come for sure, now actively looking into improving some shell completions and more things 😄

Happy hacking :)


r/lisp • • 13d ago

I built a web development ecosystem with Emacs Lisp

Thumbnail reddit.com
21 Upvotes

r/lisp • • 14d ago

🎥 Lem editor quick tour (screencast): a modern Emacs? + Lem on WASM in the browser

Thumbnail lisp-journey.gitlab.io
25 Upvotes

r/lisp • • 15d ago

Code vs data

15 Upvotes

Hi, I have been reading up on Lisp for the last couple of days. I come from Java, but have also written a "toy" Forth that compiles to byte code on Arduino.

It seems to me that the memory model of Lisp, if based on CONS cells alone, means a lot of serial traversing. I tried to search for malloc-style memory management in Lisp, and came up mostly empty, with various commentators condemning this approach.

I realize the "code as data" is great for macros, which remind me of immediate words in Forth, but with the added advantage of potentially having the code following it available as a CONS data structure, upon which it can work, as part of the compile process.

Now, compiling Forth is very simple, because Forth is mostly "flat", whereas Lisp is nested, but in the combined interest of speed and readability (where Forth falls short), I wonder if there has been made Lisp implementations with full macro support (on CONS source tree data) but with malloc style data handling, for lookup by offset and memory efficiency?

My Forth targets the atmega328p with 2Kb of SRAM. To a certain extent the stack nature of Forth becomes "bearable" when writing code, but Lisp syntax is much more explicit. I am interested in mapping a Lisp parser/compiler onto the bytecode machine I have defined for my Forth-like language.


r/lisp • • 16d ago

Scheme SonicBoom documentation for Lispers

Thumbnail hardenedvault.com
0 Upvotes

r/lisp • • 16d ago

UK Racket meet-up (London) Tuesday 17 November 2026

6 Upvotes

UK Racket meet-up (London) Tuesday 17 November 2026

7:30pm at The City Pride 🍕 28 Farringdon Ln, London EC1R 3AU

Presentations and pizza: Grammar of Graphics and Picture Definition Language.

All welcome.😁!

https://luma.com/pk1fn5qh

https://racket.discourse.group/t/uk-racket-meet-up-london-tuesday-17-november-2026/4479


r/lisp • • 17d ago

An attempt at an OS

Post image
67 Upvotes

Hello, I've been reading about lisp for a while now and really got fascinated by its syntax and simplicity. So I started writting an OS while taking inspiration from it with some differences form x86_64. At this point it is very primitive as I'm writting a from scratch compiler in Lua so I can only show you this screenshot from the most recent version. The code in plain text is this:

;; This is the kernel

(func u8 :draw_vga (u16 :color)
  (var u64 :i 0)

  (loop

    (set [u16 (+ 0hB8000 1600 :i)] :color)

    (cond
      ((< :i (- 800 4)) (set :i (+ :i 4)))
      (else (break))
    )
  )

  (return 55)
)

(func u8 :calc ()
  (return 6)
)

(func :kmain ()
  (var u16 :value (+ 0h1F54 (:calc)))
  (var u64 :color :value)

  (:draw_vga :color)

  (loop))

If you wanna browse more its at staticos.org


r/lisp • • 18d ago

A Review of The Art of the Metaobject Protocol (1993) [pdf]

Thumbnail dreamsongs.com
51 Upvotes

r/lisp • • 19d ago

The entirety of "Let Over Lambda" is now freely available online

Thumbnail letoverlambda.com
186 Upvotes