cd /news/developer-tools/show-hn-code-like-a-viking-havamal-p… · home › topics › developer-tools › article
[ARTICLE · art-180125] src=joisig.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Show HN: Code like a Viking (Hávamál programming language)

Developer Joisig released Hávamál, an esoteric programming language for solving Advent of Code puzzles, built in ljóðháttur form with alliteration and a required metre, inspired by APL and Joy and written with assistance from Claude. Hávamál includes a simpler internal representation called Kjarni and adds priority queues named Dísir, automatically memoized functions, and bitwise operations after Joisig verified the language against his full set of Advent of Code 2020 solutions. An online editor at joisig.com/havamal lets users write, edit, debug and run Hávamál programs without data leaving the browser.

key takeaway

Hávamál is a concatenative stack language whose commands (Heiti) must fit a required alliterative metre, with a Joy-like internal representation called Kjarni for writing programs before transposing them to Hávamál.

by read2 min views4 publishedDec 2, 2026

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.

── more in #developer-tools 4 stories · sorted by recency
── more on @hávamál 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-code-like-a-…] indexed:0 read:2min 2026-12-02 · —