hn.today

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

joisig.com58 points15 comments
Screenshot of Show HN: Code like a Viking (Hávamál programming language)

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.

Read on joisig.com15 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Show HN: Rust Commander

Show HN: Rust Commander

Rust Commander is a Rust terminal file manager modeled on Midnight Commander, with dual-pane navigation, a persistent shell, archive and remote browsing, and background file operations. Version 0.3.1 adds file-change alerts, viewer copy controls, customizable skins, and faster SFTP previews and copying. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.