> For the complete documentation index, see [llms.txt](https://cajac.gitbook.io/ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cajac.gitbook.io/ctf-notes/prog/other-languages/malbolge.md).

# Malbolge

Malbolge is a [public domain](https://en.wikipedia.org/wiki/Public_domain) [esoteric programming language](https://en.wikipedia.org/wiki/Esoteric_programming_language) invented by Ben Olmstead in 1998, named after the eighth circle of hell in [Dante](https://en.wikipedia.org/wiki/Dante_Alighieri)'s [*Inferno*](https://en.wikipedia.org/wiki/Inferno_\(Dante\)), the [Malebolge](https://en.wikipedia.org/wiki/Malebolge). It was specifically designed to be almost impossible to use, via a counter-intuitive 'crazy operation', base-three arithmetic, and self-altering code. It builds on the difficulty of earlier challenging esoteric languages (such as [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) and [Befunge](https://en.wikipedia.org/wiki/Befunge)), but exaggerates this aspect to an extreme degree, playing on the entangled histories of [computer science](https://en.wikipedia.org/wiki/History_of_computer_science) and [encryption](https://en.wikipedia.org/wiki/Encryption). Despite this design, it is possible to write useful Malbolge programs.

## Hello, World!

Sample code for Hello world-program

<pre><code><strong>(=&#x3C;`#9]~6ZY327Uv4-QsqpMn&#x26;+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:`H%c#DD2^WV>gY;dts76qKJImZkj
</strong></code></pre>

## Online Services

You can use one of these online services to decode/execute Malbolge code:

Malbolge - interpreter online: <https://www.malbolge.doleczek.pl/>

Online Malbolge Compiler - Tutorialspoint: <https://www.tutorialspoint.com/execute_malbolge_online.php>

Try It Online - Malbolge: <https://tio.run/#malbolge>

## Resources

Malbolge - Esolang: <https://esolangs.org/wiki/Malbolge>

Malbolge - Wikipedia: <https://en.wikipedia.org/wiki/Malbolge>

Malbolge programming - Esolang: <https://esolangs.org/wiki/Malbolge_programming>
