Show HN: Code like a Viking (Hávamál programming language)
22 points by joisig 4 hours ago | 9 comments
A puzzle programming language where programs look like Hávamál, in the specific metre with alliteration required. Designed as a fun way to do Advent of Code style puzzles. Make it work, make it a poem, make it beautiful.
pi-rat 2 hours ago
Obligatory Fjölnir: https://en.wikipedia.org/wiki/Fj%C3%B6lnir_(programming_lang...
replyjoisig 29 minutes ago
I was a student of Dr. Snorri Agnarsson and remember Fjölnir fondly! :)
replyrzzzt 50 minutes ago
Less-than-obligatory ArnoldC: https://lhartikk.github.io/ArnoldC/
replySiempreViernes 3 hours ago
The obvious objection being that modern Islandic is not the primary language of the history Viking cultures.
replyjoisig 3 hours ago
You're right, but the two are pretty close, most verses of the original Hávamál read as straight Icelandic with some spelling differences and some ancient words that have fallen out of use or have new meanings these days (source: I'm an Icelander).
replyThe main reason to go with modern Icelandic rather than actual Old Norse was to be able to use BÍN (Beygingarlýsing íslensks nútímamáls) which is credited in the repo and on the playground page. It is a dataset that allows working with Icelandic in all its various declensions and such. The language extracts the Heiti and nouns from that dataset in all declensions and they are all allowed, which means you can write more natural-sounding poems.
bita_nidir 53 minutes ago
A slip of the tongue and you'll accidentally trigger Ragnarök or call Hel as your garbage collector.
reply