Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 2.4 KB

File metadata and controls

61 lines (39 loc) · 2.4 KB

Advent of Code 2025

All my Advent of Code repos:

 

This year it is a Clojure time, again. (May 2026 EDIT: And a Common Lisp time, for the first time ever. See below.)

Last year's experiment with Clerk notebooks was a success (IMO; you can see my AoC 2024 notebooks for yourself), so I'll use the notebook format once again.

To make this notebook format "work", I'll have to write the code in a different way than I usually do: I'll not just present the final solution, but the whole process from reading the input and then slowly building the required blocks until we come with the solution.

Solutions

Clojure

It is the best to not read the raw code in this repo. Instead, read the notebooks.

The notebooks are available at: https://narimiran.github.io/aoc2025

Common Lisp

Common Lisp solutions were written in May 2026 and are loosely based on my existing Clojure solutions. This is my first time using Common Lisp: if you have any advice how to improve the solutions and/or write them more idiomatically, I would love to hear it - please open an issue.

The solutions are in the lisp/src directory. To run them (this is mostly a note to myself, so I don't forget):

  • open a REPL
  • run (ql:quickload "aoc")
  • run (in-package #:aoc)
  • now, for each day there is a function which runs both parts, e.g. (day01), (day11), etc.
  • to get some evaluation statistics, use (time (day05))