Advent of Code manages to nerd-snipe me almost every year, leading me to waste/enjoy a few hours.
The 2026 edition got me thinking that solving it is way too easy now with AI, which of course also takes all the fun out of it.

I’m not exactly sure where the idea came from, but my next thought was, wouldn’t it be fun if there was a brand new puzzle language to write solutions in, where it’s not only a question of correctness but also of beauty? This “logically” led to the new language Hávamál, which is in ljóðháttur form (closer to modern Icelandic than to Old Norse), with alliteration (stuðlar og höfuðstafir) and a specific metre that must hold.
I had made an attempt a couple of years ago to get through at least some of AoC in a concatenative language (BQN) and more or less failed, but I thought it’d be fun this time to try another concatenative stack/box processing language, so Hávamál is inspired by APL and by Joy. There is also a simpler to write (closer to Joy) internal representation called Kjarni that you can write in before transposing to Hávamál.
You can write your own Hávamál programs, edit, debug and run them, in this online editor, or by running the code from the GitHub repo. No data leaves your browser.
There is a lot of freedom to choose the way you word things in Hávamál, but you also need to fit your implementation to the metre, with correct alliteration, and to the available Heiti (commands). Thus, you end up with a puzzle language: Solve the AoC (or similar) puzzle in code, find Heiti that alliterate, make it fit the metre, try to make it sound like wisdom from up on high.
I tried to ensure that most AoC style puzzles would be achievable without too much hassle in Hávamál, by verifying against my full set of solutions for AoC 2020. This led to a few language additions like priority queues named Dísir (in honor of Dijkstra, whose algorithm they are typicaly needed for), automatically memoized functions (e.g. “Eikarþáttur” is a function, “Eikarþáttur Munins” is that same function memoized), and bitwise operations (e.g. hamskipti for xor).
This art project is brought to you by me and Claude, courtesy of nerd-sniping by the friendly Christmas elves over at AoC.