5 Most Weirdest Programming Languages

Some people say learning to program is hard, tedious and excruciating. It’s like learning a new language, just to talk to a machine which needs to be told in very specific commands what to do and execute. For some reason, a group of people seem to think that programming itself isn’t complicated enough, and thus ‘esolang’ was born.

Welcome to the world of esoteric programming languages (aka esolang), where programmers push the conventions of language design. These languages are not meant to be easy to use. Quite the opposite, they are designed to challenge, frustrate and amuse programmers with their difficulty. There are many esolangs out there for you try but here are 5 Most Weirdest Programming Languages.

Brainf*ck

True to its name, this programming language will give any programmer an instant headache. It was created by Urban Müller in 1993, as a language that could be implemented by a really small compiler, to amuse the programmer. The language uses only eight commands and an instruction pointer, each made up of a single character, making this an incredibly minimalistic language. Below is a sample of the headache-inducing code, one that will print out ‘Hello World!’:

+++++ +++               Set Cell #0 to 8
[
    >++++               Add 4 to Cell #1; this will always set Cell #1 to 4
    [                   as the cell will be cleared by the loop
        >++             Add 2 to Cell #2
        >+++            Add 3 to Cell #3
        >+++            Add 3 to Cell #4
        >+              Add 1 to Cell #5
        +                  Add 1 to Cell #2
    >+                  Add 1 to Cell #3
    >-                  Subtract 1 from Cell #4
    >>+                 Add 1 to Cell #6
    [>.                     Cell #2 has value 72 which is 'H'
>---.                   Subtract 3 from Cell #3 to get 101 which is 'e'
+++++ ++..+++.          Likewise for 'llo' from Cell #3
>>.                     Cell #5 is 32 for the space
>+.                    Add 1 to Cell #5 gives us an exclamation point
>++.                    And finally a newline from Cell #6

LOLCODE

LOLCODE is made up of lolspeak, the ‘language’ used by lolcats. The language was designed by Adam Lindsay in 2007, a researcher at Lancaster University’s Computing Department. The language isn’t as complete as traditional ones, with syntax and operator priorities not clearly defined but there are functioning compliers for that available out there. The hilarity and cuteness of the language more that makes up for this though. Just take a look at the ‘Hello World!’ code below:

HAI
CAN HAS STDIO?
VISIBLE "Hello World!"
KTHXBYE

Befunge

Similar to Brainf*ck, Befunge was developed by Chris Pressey in 1993, with the aim of creating a language that would be as hard to compile as possible. He does this by implementing self-modifying code and having the same instruction being executed in four different ways, not to mention the instruction set itself. However, a number of compilers were eventually created. Below is the source code for ‘Hello World!’:

>              v
v  ,,,,,"Hello"48*,          v
v,,,,,,"World!"25*,@

ArnoldC

Here is a programming language made entirely out of one-liners from movies featuring Arnold Schwarzenegge, classics such as Terminator, Predator and Total Recall. ArnoldC was created by Lauri Hartikka, who swapped out standard commands with their equivalent Arnold one-liner. Example includes False and True, which becomes “I LIED” and “NO PROBLEMO”, respectively. Here’s how a “Hello World!” code would look like:

IT'S SHOWTIME
TALK TO THE HAND "Hello World!"
YOU HAVE BEEN TERMINATED

Shakespeare

f bodybuilding Austrian actors isn’t your thing, you may prefer the Shakespeare programming language. Created by Jon Aslund and Karl Hesselstörm, the aim was to make a programming language that didn’t look like one. In this case, the source code looks exactly like a Shakespeare play. Variables must be named after Shakespearian characters and constants are decided by positive or negative nouns.

A “Hello World!” sample is quite long, reading exactly like a play, so here is only part of the source code (the full one is available here):

The Infamous Hello World Program.
 
Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.
 
 
                    Act I: Hamlet's insults and flattery.
 
                    Scene I: The insulting of Romeo.
 
[Enter Hamlet and Romeo]
 
Hamlet:
 You lying stupid fatherless big smelly half-witted coward!
 You are as stupid as the difference between a handsome rich brave
 hero and thyself! Speak your mind!
 
 You are as brave as the sum of your fat little stuffed misused dusty
 old rotten codpiece and a beautiful fair warm peaceful sunny summer's
 day. You are as healthy as the difference between the sum of the
 sweetest reddest rose and my father and yourself! Speak your mind!
 
 You are as cowardly as the sum of yourself and the difference
 between a big mighty proud kingdom and a horse. Speak your mind.
 
 Speak your mind!
 
[Exit Romeo]

These Are 5 Most Weirdest Programming Languages. Hope You Get Something New….

Like
Like Love Haha Wow Sad Angry
Sachin Sharma

Sachin Sharma

I am a programmer and Tech Enthusiast who loves to use my creative skills to solve complex problems.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *