
Malbolge: Computer Coding For the Brave
When it comes to complicated things, you will be hard-pressed to find anything that is worse than Malbolge. It takes the complexity of computer programming, the nuances of foreign languages, and mixes them together with a generous helping of insanity.
Malbolge was created by Ben Olmstead in 1998. He named the language after the eighth circle of hell in Dante’s Inferno. The name is no mere coincidence. Olmstead intentionally designed it to be virtually impossible to use. It is so complicated, in fact, that Olmstead has never been able to successfully write a program with it.
Malbolge uses base-three arithmetic, self-altering codes, and a counter-intuitive “crazy operation.” Although the creator has not been able to write a program with Malbolge, it is possible to do so. It took two years before the first Malbolge program was written. That was done by a beam search algorithm.
The Most Complex Computer Language You Can Find
To give you an idea of the complexity of the language, consider the following command to generate the message “Hello, World!” on the computer screen:
(=<`#9]~6ZY32Vx/4Rs+0No-&Jk)”Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:’8dc
Malbolge has eight instructions. Malbolge figures out which instruction to execute by taking the value [c], adding the value of c to it, and taking the remainder when this is divided by 94. The final result tells the interpreter what to do. The eight instructions, are as follows:

After each instruction is executed, the guilty instruction gets encrypted (see below) so that it will not do the same thing next time, unless a jump just happened. Right after a jump, Malbolge will encrypt the innocent instruction just prior to the one it jumped to instead. Then, the values of both c and d are increased by one and the next instruction is executed.
Crazy operation
For each ternary digit of both inputs, use the following table to get a ternary digit of the result. For example, crz 0001112220, 0120120120 gives 1001022211.

After an instruction is executed, the value at [c] (without anything added to it) will be replaced with itself mod 94. Then, the result is enciphered with one of the following two equivalent methods.
Method 1
Find the result below. Store the ASCII code of the character below it at [c].
0000000000111111111122222222223333333333444444444455555555556666666666777777777788888888889999
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123
———————————————————————————————-
9m<.TVac`uY*MK’X~xDl}REokN:#?G”i@5z]&gqtyfr$(we4{WP)H-Zn,[%\3dL+Q;>U!pJS72FhOA1CB6v^=I_0/8|jsb
Method 2
Find the result below. Store the encrypted version at [c].

Lou Scheffer’s cryptanalysis of Malbolge mentions six different cycles in the permutation. They are listed here:
โข 33 โ 53 โ 45 โ 119 โ 78 โ 49 โ 87 โ 48 โ 123 โ 71 โ 83 โ 94 โ 57 โ 91 โ 106 โ 77 โ 65 โ 59 โ 92 โ 115 โ 82 โ 118 โ 107 โ 75 โ 104 โ 89 โ 56 โ 44 โ 40 โ 121 โ 35 โ 93 โ 98 โ 84 โ 61 โ 100 โ 97 โ 46 โ 101 โ 99 โ 86 โ 95 โ 109 โ 88 โ 47 โ 52 โ 72 โ 55 โ 110 โ 126 โ 64 โ 81 โ 54 โ 90 โ 124 โ 34 โ 122 โ 63 โ 43 โ 36 โ 38 โ 113 โ 108 โ 39 โ 116 โ 69 โ 112 โ 68 โ 33 …
โข 37 โ 103 โ 117 โ 111 โ 120 โ 58 โ 37 …
โข 41 โ 102 โ 96 โ 60 โ 51 โ 41 …
โข 42 โ 114 โ 125 โ 105 โ 42 …
โข 50 โ 80 โ 66 โ 62 โ 76 โ 79 โ 67 โ 85 โ 73 โ 50 …
โข 70 โ 74 โ 70 …
These cycles can be used to create loops that do different things each time and that eventually becomes repetitive. Lou Scheffer used this idea to create a Malbolge program (included in his cryptanalysis linked below) that repeats anything the user inputs.
At this point, we freely admit that we were lost after the second paragraph of this article. If you are similarly confused by all of this, take comfort in the knowledge that you are supposed to be lost. You might want to try this Tutorial. If you can figure it out, you will have no trouble with the Pentagon’s 26-page recipe for brownies.
You may also enjoy…
Ithkuil: the Most Complicated Language in the World
Frequent readers of Commonplace Fun Facts know that we like languages. They also know that we probably need to spend more time learning the nuances of English before we delve into others. Honestly, we wish we had followed that advice before we invested countless hours trying to wrap our minds around Ithkuil. It is, byโฆ
Toki Pona — the Language With Only 120 Words
This writer recently tackled the thankless tasks of explaining the insanely-complicated language Ithkuil. The experience was so traumatic that threats of resignation and civil disobedience could only be assuaged through promises of a much-simpler assignment. As if made to order, we find ourselves looking at Toki Pona, a language that consists of only 120 words.โฆ
From Corporate Scandal to Chatbot Charm: How the Enron Email Corpus Taught Computers to Talk Back
Discover how the Enron Email Corpus, a trove of corporate emails from a historic scandal, became a cornerstone for AI development, spam filters, and modern tech innovation.






Leave a Reply