Esoteric programming languages

Esoteric programming languages are designed as a proof of concept or as a joke. It is rarely meant to be usable. Nonetheless, these languages are Turing complete, this means that any program a general computer can run can be written in that language.

Without further ado, here are some of my favourite esoteric languages:

LOLCODE

http://en.wikipedia.org/wiki/LOLCODE

Here the language is composed of words from internet memes.

An example:

 HAI
 CAN HAS STDIO?
 PLZ OPEN FILE "LOLCATS.TXT"?
     AWSUM THX
         VISIBLE FILE
     O NOES
         INVISIBLE "ERRROR!"
 KTHXBYE

There is a javascript compiler for it found here.

Whitespace

http://en.wikipedia.org/wiki/Whitespace_(programming_language)

The entire language consists of only spaces, tabs, and linefeeds. So the whole code is just blank. Pretty cool huh.









Brainfuck

http://en.wikipedia.org/wiki/Brainfuck

One of the best known esoteric language is Brainfuck and it is famously hard to read. It has just 8 commands.

Example for hello world:

>+++++++++[<++++++++>-]<.>+++++++[<++++>-]
<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.
+++.------.--------.>>+.

Here’s a visualiser for it.

Advertisements

Published by

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s