SLOBOL (2005 language)

From Esolang
Jump to navigation Jump to search

SLOBOL is a simple language, designed to fill in another gap in the lesser known programming languages. It is essentially the same as Foobar and Foobaz and Barbaz, oh my!, except for the form that each program is in — a series of SHA-512 hashes.

To convert a Foobar program into a SLOBOL program, just take its SHA-512 hash, then rotate the lines upward, take the hash again, perform another rotation, etc. until you end up back where you started.

The "cat program" in SLOBOL:

015e64bbf2a429e22c41c40398b47a04
9f891454580e8ae175a9b4f159d2fe01
2ec028f86e383f9b45db509d93748ff7
268bff0da11ed8ba5545793796db4d40
9dbe93d00141819d5cd527c7d428d04e
b7ab7384c2cdcf879e07daba0819c76c
36ca3c7a9d31b7dadb492f4e397e1b6b
d94bc1fec2a41c2fd95b04915283db41

For anybody who can't stand to look at a one-way hash without seeing what it was made from, they're the hashes of the following:

? and 255 and 0, oh my.
0 and 0 and 0, oh my...

and

0 and 0 and 0, oh my...
? and 255 and 0, oh my.

User:Ihope127 says that a compiler is encouraged to first bruteforce each hash until they all are valid Foobar programs, then check to see if all the results match the hashes. If they don't, bruteforcing should be done all over again, except with these non-matches rejected with the syntax checking.