The smallest, yet also the weirdest Roman Numerals converter
You heard that right.
This is objectively the shortest number to Roman Numeral program I've ever written, and I think it may be the shortest one ever. It is three lines long with a total of forty-two characters.
It does come with a negative side, though.
The language I coded this in is called INTERCAL, which stands for Compiler Language With No Pronounceable Acronym. It is considered the first esoteric language to have ever been designed, and as such, it is very limited in what it can do and how it works.
INTERCAL cannot read Arabic numbers, so simply entering 5081 will not work. Instead, you have to spell out the number in English, all caps. FIVE OH EIGHT ONE and FIVE ZERO EIGHT ONE are both valid inputs. Also, according to the manual:
Attempting to write in a value greater than or equal to SIX FIVE FIVE THREE SIX for a 16-bit variable
will result in the error message, “DON’T BYTE OFF MORE THAN YOU CAN CHEW.”
Thanks to @cbrewster for helping me wrap my head around Nix Repls and ultimately making this possible.
So uh, yeah. Have fun.
@DynamicSquid yeah the plan is to eventually move everything over to Nix, but we are still early in that process and things are subject to change :)
But overall, Nix gives people access to many more tools & compilers than Polygott does and it removes a large maintenance burden from us. Win win!