📜 ⬆️ ⬇️

Code examples in 39 esoteric programming languages

Someone as a joke, someone to prove the existence or disprove the hypothesis, someone to warm up the brain (traveling on the surface of a Klein bottle or in four-dimensional space), but hundreds of people have created "esoteric" programming languages. I have flipped through about 150 such languages ​​and can never be the same again.



“Argh!”, “Oof!”, “2-ill”, “Nhohnhehr”, “Noit o 'mnain gelb”, “DZZZZ”, “Ypsilax”, “YABALL”, fuckfuck are spells , poetry is just the names ... under katom - examples of code in the most vigorous programming languages.
')
The rabbit hole is deep.

INTERCAL (turing-full)



Don Woods and Jim Lyon

One of the oldest esoteric programming languages. According to the creators, its name means “Programming language with an unprovable abbreviation” (English Compiler Language With No Pronounceable Acronym). The language was created in 1972 by students Don Woods and James M. Lyon as a parody of existing programming languages ​​and mind gymnastics.

Hello, world

Each program command can be given the probability with which it will be executed when the program is started. In addition, there are commands that block the execution of subsequent commands of a certain type or change variables.
Article about INTERCAL on Habré

Brainfuck (turing-full)


One of the most famous esoteric programming languages, invented by Urban Muller (German Urban Müller) in 1993.

Hello, world!


Befunge


Stack esoteric programming language. It is considered two-dimensional, since the program on Befunge is recorded in a table with stitched edges (torus), along which the interpreter moves in different directions, executing commands located in its cells. Written by Chris Press in 1993. According to the author, his goal was to develop a language that is as difficult to compile as possible. The difficulty is provided by the p and g commands modifying the program text.

Hello, world!


Malbolge


The language is designed to be as difficult as possible to write programs. Got its name from Malebolge, Dante's eighth circle of hell.

Hello, world!



or



Piet


The Piet language uses multi-colored images as programs. The program on Piet looks like a post-pictorial abstraction. Piet got its name from the name of the Dutch artist Piet Mondrian.

Hello, world!



1L_a (expected to be Turing-complete, but this has not been proven)


Program to print the character "A"


The original of the program at the left, on the right - the integrated version

2L (turing-full)


A simple cycle that gets 9 by multiplying 5 by 2 and subtracting 1



4DL


In 4DL, a four-dimensional grid is used to represent the program, and the directions for its implementation, respectively, are 8.

The program that prints the sum of the numbers from the input line:



The execution path of the above program in 4-dimensional space:

image

Aheui


Aheui (아희 in Korean) is the first PL, which is developed in the Korean alphabet Hangul.

Hello, world!


99bottles

[ source ]


quine
+상밢밢밣밦발받밧밥밣밦밦받밦밢밝받밝받밦밧밢받발받밧밣밦밥발받밝밥밧밦밦받밧받붑
+붇벌벖벒벖벌벋벖법벍벒벖벋벍벌벍벍벖버벋벌벍벌벗벌벋벌법벓벖벗벋벌벓법벋벖벋벌벓
+밦밦발받발받밧밣밦밥발받발밦밧밣발받밦밦발받발받밧밣밦밥발받발밦밧밣발받밦밦발붇
+붉벗벋벌벓벓벋벒벋벌벓벗벖벌벋벌법벖벓벗벋벌벋벌벖벖벋벌벓벗벖벌벋벌법벖벓벗벋벌
+밧밣밦받밦밣밦밝발받밧받밢발밦받밦밥밧밣발받밧밦받밢발받바밦밝밢밥밦받밧밧발밣불
+붒벓벍벋벌벋벍법벖벋벖법벒벍벖벋벌벓벌벋벓벋벖법벒벍벖벋벌벗벍벗벗벋벖법벒벍벖벋
+밧밦받밧받밦밢발받밦밧밢받발받밧밝밝받밦받밦밦발밧밦받바밧밝밝받밦받밦받밣밧밦붇
+붏법법벋벋벌벋벒벗벖벋벌벓법법벖벋벌벌벍벒벖벋벖벓벓법벖벋벖벓벖벋벗벋벌벒벌법벗
+발받발밥밥밣발받밧밥받밥발받밦밝밧받밝받밧밢발밣발받밝밝밥밧밦받밦밥밥밣발받밦붏
+불벓벓벗벖벋벌벓벌벗벗벋벌벒벍벗벗벋벖법벋벒벖벋벌벒벍벗벗벋벖벋벗벍벍버벋벌벓벍
+받밦밧밧받발받발받밥밣발받밧밝발밦발받밧받밥밣발받밧밣밦밧밝받밧밢받밥밝받밧밦붏
+붇벌벓법법벌벋벍벋벗벍벖벋벌벓법벋벗버벋벌벋벍법벖벋벖벋벓벓벗벋벖벗벖벌벖벋벍벗
+밧밢밧밦밦받밦받밢밢발받밧발밥밣밦받밦받밥밣발받밦받밥밣발받밦발밥발발받밧받밥붏
+붓벋벌벌벗법벗버벋벌벌벗법벗벋벌벓벒벒벋벋벖벓벓법벖벋벌벒법벌벗벋벖벖벗벒벗벋벌
+밣밦밥발받밦밦밧밣발받밦밦밧밣발받밝발밧밣발받밝밧발밧밦받발밥받밝발받밦밧밝밥붒
+붓벌벍벋벌벓벗벖벖벋벌법벖벓벗벋벌법벖벓벗벋벌벋벌벖벖벋벖벋벖벋벗벋벖벗벌벓벖벋
+밣발받밦발밦밧밦받밣밥받밣발받밦받밦발발받바밧밢발밣발받밧밧발밧밝받밦밧밢받발붇
+붑벍벒벖벋벌벋벌벖벖벋벖벗벌벗벍벋벌벒벍벗벗벋벌벓벗벖벓벋벌벓벋법벍벋벌법벒벌벗
+밦받밣발받밣발받밦밢밝밥밦받밧밥발밧발받밦밢밝밥밦받밧밥받밣발받밦밢밝밥밦받발붑
+불벓벓법벗벋벌벌벗법벗벋벌벓벋법벖벋벌벓벌벒벖버벋벌법벍벍벗벋벖벋법벖벋벋벌벍벋
+받밧밧밝밢발받받밦밧밣발받밧발밢받밦받밦밝밧받밝받밧밥받밥발받발밦밧밣발받받밦붓
+붓벋벌벒벋벖벗벋벖벓벖벋벗벋벖벓벓법벖벋벌벌벒벍벖벋벌벓벗벖벖벋벌벋벒벗벖벋벌벓
+밣밣밢발받밦밧밣밣발받바밧밣밧받밦받밧밥밧발발받밢받밝밝발받밦밦발받발받받받밣붏
+붉벗벋벌벓벗벌벗벋벍벗벌벗벗벋벍법벋벒벗벋벖벗벓벋벖벋벌벒벒벋벖벋벌벌벗법벗벋벌
+발밦발받발발밧밣발받밦밧밧받발받밦밧밣밣발받밧밥받밣발받밧밧밝밢발받밦밢받밥밦붇
+붎벋벗벋벖벋벗벌벗벋벖벓법벌벗벋벖벗법벍벖벋벌벖벒벖벌버벋벖벋벌벒벗벋벖벋벗벌벗
+발밦받밧밥받밥발받밦받밣받발받밧밥받밣발받밝밝밥밧밦받밦발밥발발받밦발밧밣발받붒
+불벓벗벌벗벋벍벋벗벍벖벋벌벓벗벖벌벋벖벌벒벋벗벋벌벒벒벋벖벋벖벓벗벍벗벋벌벓벗벌
+받밝밝밧받밦받바밧밦밣밥발받밧밦밣밥발받받받밥밣발받밧밣밦밧밝받발밥받밝발받밝붏
+붇벌벒벌법벗벋벍벗벖벓벗벋벌벓법벋벗벋벌법벓벖벗벋벌벒벌법벗벋벌벓법벋벖벋벖벗벖
+밧밦밣밥발받밣밥밥밣발받밝받밥밣발받밦밥밝받발받밧밦밣밥발받밝받밥밣발받밧밦밣붑
+불벋벌벓벗벌벗벋벌법벖벓벗벋벌법벖벓벗벋벌벌법벌벖버벋벌법벋법벗벋벌벓법벋벓벋벌
+발밧밣발받받발밧밣발받받발밧밣발받밝발밧밣발받밧밧발밧밝받밧발밧밣발받밧밣밦밥불
+붑벍벖벋벌벓벗벌벌벋벖벋벌벒벋벋벌벓벗법벖벋벖벋벌벒법벋벌벓벗벌벍벋벌벒벋벖벗벋
+밧밦받사받싹바싺밝빠따반타밝밙밙받반따따뚜
+두벎떠벍떠더벍벖떠뻐터번떠뻐벌섵멓터벉떠떠
+숭반투밣쟈뿌차발발뚜삭뱐뎌두쟈수처사맣
+싸수쑼뽀뱐분누받루반타푸소뿌또붉다뭏또숰
+분뾰빠초추러밤도밡밣두투쏘밡뽀붐또뱔볼
+땨슡멓야뱐야냐야뱞야다샅뽀밦뱕뗘도타본
+뜌뱖서밝밤따따다쌈샴아멓샅밝밤밤따또
+또뷹추뺘져번뚜벌벌처뿌져벓투번
+더쎰서토푸터번루벋누분변뽀쑼뽀숭
+뵴범삭본투두벓벑도범라추초뻐소써
+샤써도뼈섵더여볎여녀여변여
+빠바쟈무차붏밣따다밣따다밣따다밣따다맣야희
+뫃떠벌번정따도퍼즐릿

[ source ]


BiTrax


Hello, world!



Brainloller


Hello, world!


On the right - the original, on the left - an enlarged version.

DOBELA


Dot-Based Esoteric LAnguage.

Hello, world!



Floater


Hello, world!

image

Hexagony


Hexagony is the first language where instructions are located inside a hexagonal grid. The name comes from the words “hexagon” (hexagon) and “agony” (agony), because programming will be difficult.

Hello, world!


Lll


The language of logic gates and digital circuits.

Hello, world!



Manufactoria


Language and play in one person.

Hello, world!



ObjectArt


Hello, world!


Pogo


Hello, world!


Copy


Hello, world!



Sir. Cut


There are wires, currents, logic gates and I / O.

Hello, world!



SNUSP


Hello, world!



Spiral


Hello, world!


Spleenmap


Hello, world!



Surface


In Surface, program instructions are located on a 2D grid around a Klein bottle .

Hello, world!



Tree


Hello, world!



Zetaplex


Hello, world!



Ziim


Hello, world!



Lazy k


Turing bog based on combinatorial logic.

Hello, world!



Spoon


Command codes are selected in such a way that they allow recognition of all commands without an additional separator when parsing a program from left to right.

Hello, world!

1111111111001000101111111010111111111101011101010
11011011011000001101011001010010100101011111110
01010001010111001010010110010100110111111111111
1111100101001000101011100101000000000000000000
000101000000000000000000000000000101001010010
10010001010


Velato


Hello, world!



Listen


Whitespace


Whitespace (English space) - esoteric programming language created by E. Brady and C. Morris. Its essential difference is that only unprintable characters are used for control structures, namely: space, line feed and tabulation. An interesting consequence of this fact is that the Whitespace program text can be “hidden” inside the source code of another program.

Hello, world! ( "Gopher is not visible, but it is" )



backlit special characters

S = Space T = Tab


Frankly comic YAP



HQ9 +


HQ9 + comic language with four instructions:

H: Print "hello, world"
Q: Print the program's source code
9: Print the lyrics to "99 Bottles of Beer"
+: Increment the accumulator

LOLCODE


An esoteric programming language inspired by the Internet meme of lolcat. There is a specification of this language and there are several working interpreters and compilers of this language. LOLCODE is a Turing complete language.

Hello world



l33t



// "Hello World" by Stephen McGreal.
// Note that the author: o)

Gr34t l33tN3 $$?
M3h ...
iT 41n't s0 7rIckY.

l33t sP33k is U8er keWl 4nD eA5y wehn u 7hink 1t tHr0uGh.
1f u w4nn4be UB3R-l33t u d3f1n1t3lY w4nt in 0n a b4d4sS h4xX0r1ng s1tE !!! ; p
w4r3Z c0ll3cT10n2 r 7eh l3Et3r!

Qu4k3 cL4nS r 7eh bE5t tH1ng 1n teh 3nTIr3 w0rlD !!!
g4m3s wh3r3 u g3t to 5h00t ppl r 70tAl1_y w1cK1d !!!
I'M teh fr4GM4stEr an I I'lL t0t41_1Ly wIpE teh phr34k1ng fL00r *** j3d1 5tYlE *** wItH y0uR h1dE !!! L0L0L0L!
t3lEphR4gG1nG l4m3rs wit mY m8tes r34lLy k1kK $ A $$

l33t hAxX0r $ CrE4t3 u8er- k3wL 5tUff lIkE n34t pR0gR4mm1nG lAnguidGe $ ...
s0m3tIm3 $ teh l4nGu4gES l00k jUst l1k3 rE41_ 0neS 7o mAkE ppl Th1nk th3y'r3 ju $ t n0rMal lEE7 5pEEk but th3y're 5ecRetLy c0dE !!!
n080DY unDer5tAnD $ l33t SpEaK 4p4rT fr0m j3d1 !!!
50mE kId 0n A me $$ 4gEb04rD m1ghT 8E a r0xX0r1nG hAxX0r wH0 w4nT2 t0 bR34k 5tuFf, 0r mAyb3 ju5t sh0w 7eh wAy5 l33t ppl cAn 8E m0reIcI hE i5 teh u8ER !!!
1t m1ght 8E 5omE v1rus 0r a Pl4ySt4tI0n ch34t c0dE.
1t 3v3n MiTe jUs7 s4y "H3LL0 W0RLD !!!" u ju5t cAn'T gu3s5.
tH3r3's n3v3r anY p0iNt l00KiNg sC3pT1c4l c0s th4t, be1_1Ev3 iT 0r n0t, 1s whAt th1s 1s !!!

5uxX0r5 !!! L0L0L0L0L !!!

ArnoldC


Terminator programming language.

Hello, world!



Ook!


Whether the language of orangutans, or the dream of William Occam.

Hello, world!



Chef


Esoteric programming language developed by David Morgan-Mar, the program which is similar to culinary recipes. Each program in the language consists of a name, a list of variables and their values, a list of instructions. Variables can only be called basic food names. The stack in which the values ​​of variables are placed is called English. mixing bowl (“mixing bowl”), and operations for manipulating variables - mix (“mix”), stir (“shake”) and so on.

Hello world
Hello World Souffle.

Ingredients.
72 g haricot beans
101 eggs
108 g lard
111 cups oil
32 zucchinis
119 ml water
114 g red salmon
100 g dijon mustard
33 potatoes

Method.
Put potatoes into the mixing bowl.
Put dijon mustard into the mixing bowl.
Put lard into the mixing bowl.
Put red salmon into the mixing bowl.
Put oil into the mixing bowl.
Put water into the mixing bowl.
Put zucchinis into the mixing bowl.
Put oil into the mixing bowl.
Put lard into the mixing bowl.
Put lard into the mixing bowl.
Put eggs into the mixing bowl.
Put haricot beans into the mixing bowl.
Liquefy contents of the mixing bowl.
Pour contents of the mixing bowl into the baking dish.

Serves 1.


Shakespeare


An esoteric programming language developed by John Aslaud and Carl Hasselstrom. The Shakespeare language is intended to disguise the source code of the program under Shakespeare's plays.

Hello, world!
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.
Prince 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]
Scene II: The praising of Juliet.
[Enter Juliet]
Hamlet:
Thou art as sweet as the sum of the sum of Romeo and his horse and his
black cat! Speak thy mind!
[Exit Juliet]
Scene III: The praising of Ophelia.
[Enter Ophelia]
Hamlet:
Thou art as lovely as the product of a large rural town and my amazing
bottomless embroidered purse. Speak thy mind!
Thou art as loving as the product of the bluest clearest sweetest sky
and the sum of a squirrel and a white horse. Thou art as beautiful as
the difference between Juliet and thyself. Speak thy mind!
[Exeunt Ophelia and Hamlet]

Act II: Behind Hamlet's back.
Scene I: Romeo and Juliet's conversation.
[Enter Romeo and Juliet]
Romeo:
Speak your mind. You are as worried as the sum of yourself and the
difference between my small smooth hamster and my nose. Speak your
mind!
Juliet:
Speak YOUR mind! You are as bad as Hamlet! You are as small as the
difference between the square of the difference between my little pony
and your big hairy hound and the cube of your sorry little
codpiece. Speak your mind!
[Exit Romeo]
Scene II: Juliet and Ophelia's conversation.
[Enter Ophelia]
Juliet:
Thou art as good as the quotient between Romeo and the sum of a small
furry animal and a leech. Speak your mind!
Ophelia:
Thou art as disgusting as the quotient between Romeo and twice the
difference between a mistletoe and an oozing infected blister! Speak
your mind!
[Exeunt]


Yoba


The answer is Russian Gopnik Shakespeare.

Caution mats

[ source ]

Read more






Publishing support is Edison , which developed an online lottery system for an African gaming company and automated the tedious routine for the distribution network.

Social Architecture: stratagems for success in open source projects

Source: https://habr.com/ru/post/313334/


All Articles