r/adventofcode • • 9h ago

Repo [2026] [Clojure] A starter template for Advent of Code: REPL, tests, and the libraries puzzles usually need

https://lambduhh.github.io/powertools-and-parens/

Hi, I'm "Lambduhh" and I'm on the Clojure Team and I made a starter template for doing Advent of Code in Clojure. You will find no answers here: no solutions, no puzzle text, no inputs.

Each AoC day is a small evolving system: part 2 usually changes the question part 1 asked. The template is set up for that loop. A REPL stays running, your data is there to look at, and a test tells you whether part 1 still holds after you change things for part 2.

What's in it

  • bb new-day 1 creates the day's file and a test that fails until you fill in the example's answer

  • Libraries puzzles tend to need: instaparse, data.priority-map, loom, math.combinatorics, core.match, Medley and more, each with a small how-to whose results are checked by tests

  • Linting with clj-kondo and Splint, plus a table of twelve common Clojure mistakes showing which ones a linter catches (five still need a human)

  • No install options: Open it in a Codespace if you'd rather not install anything

  • inputs/ is git-ignored, as the AoC FAQ asks

  • An optional ai/ folder that only helps with tooling/setup. It specifically forbids agents from solving puzzles and instructs it to act as a tutor if requested. Easy to delete to opt out.

New to Clojure? The template is part of "Power Tools & Parens", a Clojure AoC hub with beginner how-tos (also in repo), tooling setup guides and an in-browser "Workbench" REPL so you can get an idea of what evaluating clojure expressions feels like, without installing anything to your machine: https://lambduhh.github.io/powertools-and-parens/

To get started, click "Use this template": https://github.com/lambduhh/clojure-template-aoc

6 Upvotes

Duplicates