NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲Show HN: Code like a Viking (Hávamál programming language) (joisig.com)
ratio53 4 days ago [-]
I did something similar pre-AI, where programs read like poems with specific stylistic constraints. “Hello world!” example: https://raw.githubusercontent.com/mxschll/goethe/refs/heads/...
joisig 4 days ago [-]
Very cool, and even more obfuscated! Goethe looks like a good fit for this kind of fun :)
pi-rat 4 days ago [-]
joisig 4 days ago [-]
I was a student of Dr. Snorri Agnarsson and remember Fjölnir fondly! :)
rzzzt 4 days ago [-]
Less-than-obligatory ArnoldC: https://lhartikk.github.io/ArnoldC/
SiempreViernes 4 days ago [-]
The obvious objection being that modern Islandic is not the primary language of the history Viking cultures.
joisig 4 days 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).

The 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.

vidarh 4 days ago [-]
Close enough that as a Norwegian who can kinda make out a reasonable part of the meaning of either if I squint right, I can't really tell the difference without some effort.
_tardigrade_ 4 days ago [-]
code is no longer meant to be read by humans though
4 days ago [-]
bita_nidir 4 days ago [-]
A slip of the tongue and you'll accidentally trigger Ragnarök or call Hel as your garbage collector.
theraido 4 days ago [-]
Has someone already forked it to be written in Elder Futhark?
jeltz 4 days ago [-]
The Vikings primarily used the younger futhark. The older futhark had almost entirely fallen out of use when the Viking Age started.
vintermann 4 days ago [-]
And the younger futhark is notorious for being a really terrible alphabet, with only 16 characters, and not even the 16 most useful ones for writing old Norse arguably.
macintux 4 days ago [-]
Sample code, orthographically transliterated (via LLM, so assume errors). Seems like it would be a fun project, and would love to print some code like this, but wouldn't want to try to read it to troubleshoot.

ᛏᚹᛖᛁᛗᚢᚱ ᚨᚾᚾ

   ᛏᛁᚱ ᚺᛁᚾᚾ ᛖᛁᚾᚺᛖᚾᛏᛁ,
ᚦᚢᛊᚢᚾᛞ ᛊᚲᚨᛚ ᚺᚨᚾᚾ ᚦᛖᚾᛃᚨ;

ᛏᚢᛏᛏᚢᚷᚢ ᛊᛖᚱ

   ᛏᛁᚱ ᛁ ᚺᚨᚢᛊᛏᛗᚢᚱᚲᚱᛁ,
ᚠᛃᛟᛚᚷᚨᚱ ᚦᛖᛁᛗ ᚨ ᚠᛃᚨᛚᛚᛁ.
ModernMech 4 days ago [-]
We need a Havamal to Futhark transpiler. https://futhark-lang.org
cree1116 4 days ago [-]
[dead]
leopoldcongo 4 days ago [-]
[flagged]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 10:42:52 GMT+0000 (Coordinated Universal Time) with Vercel.