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.
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.
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.
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
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.
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.
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" )
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" 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 !!!
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.
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]