Hávamál is a programming language designed to turn puzzle-solving into both a technical and poetic challenge. Its creator developed it after Advent of Code prompted the thought that AI makes coding puzzles easier but can drain some of their enjoyment. Programs must not only produce correct answers; they must also follow ljóðháttur-inspired metre, use alliteration, and draw commands from a vocabulary of Norse-style poetic terms called Heiti. The result is a language where a solution’s wording and sound matter alongside its logic.
Underneath the verse, Hávamál is a concatenative stack-and-box language inspired by APL and Joy. Programmers can first write in Kjarni, a simpler internal representation, then adapt their code to Hávamál’s poetic rules. An online editor supports writing, debugging, and running programs in the browser, with no data leaving the user’s device; the implementation is also available on GitHub. To check that the language could handle familiar challenges, its creator tested it against a complete set of Advent of Code 2020 solutions. That exercise led to features including priority queues, automatically memoized functions, and bitwise operations. The project was built with help from Claude and presents programming as an artful constraint puzzle: solve the problem, then make the code read like elevated Norse wisdom.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.