r/todayilearned • • Oct 12 '23

TIL about Malbolge, a programming language designed to be nearly impossible to use. It took 2 years for the first program to appear and its author has never written a program with it.

https://en.wikipedia.org/wiki/Malbolge
15k Upvotes

525 comments sorted by

View all comments

5.5k

u/MarstonsGhost Oct 12 '23

Hello, World!

(=<`:9876Z4321UT.-Q+*)M'&%$H"!~}|Bzy?=|{z]KwZY44Eq0/{mlk**

hKs_dG5[m_BA{?-Y;;Vb'rR5431M}/.zHGwEDCBA@98\6543W10/.R,+O<

2.2k

u/Spindrune Oct 12 '23

Fuck me.

520

u/rubbery__anus Oct 12 '23

It's even more insane when you consider that someone had to write a program to generate that code, because it's beyond the capabilities of any human being to even write something as foundational as a bog standard Hello World in Malbolge by hand. Crazy.

204

u/N1ghtshade3 Oct 12 '23

That's not really that crazy; that's just how encryption algorithms work--simple inputs, outputs that are practically impossible to reverse.

If I converted every word in your comment into a different one based on a pattern that only I know, that wouldn't take much effort from me at all. But anyone trying to piece your comment back together would really struggle.

→ More replies (1)

36

u/LickingSmegma Oct 12 '23 edited Oct 12 '23

There was apparently one guy who cranked out a few programs (comparatively many by the standards of the language), and said vaguely that he figured out how to beat Malbolge into shape with his magic stick. But of course, afaik he never shared his knowledge.

Might be Hisashi Iizawa, who wrote ‘99 bottles of beer’ in Malbolge, but idk for sure.

→ More replies (1)

316

u/[deleted] Oct 12 '23

[removed] — view removed comment

→ More replies (10)
→ More replies (8)

536

u/Catfrogdog2 Oct 12 '23

I prefer Brainfuck, which is far easier to understand:

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

563

u/quantumprophet Oct 12 '23

I like Brainfuck, it has a lot of plusses compared to other languages.

88

u/WayNerdee Oct 12 '23

A lot greater than some, but less than some others.

32

u/[deleted] Oct 12 '23

The crocodiles are fat and happy in Brainfuck land.

→ More replies (3)
→ More replies (4)

73

u/recycled_ideas Oct 12 '23

The best thing about brain fuck is that it's trivial to build an interpreter for it. It could be done in an afternoon.

53

u/[deleted] Oct 12 '23 edited Mar 07 '24

Perhaps we should all stop for a moment and focus not only on making our AI better and more successful but also on the benefit of humanity. - Stephen Hawking

28

u/Boukish Oct 12 '23

That's a specific form of compiler known as a transpiler - when you go from one source to another source at the same level of abstraction.

42

u/HapticSloughton Oct 12 '23

I think those are illegal in Florida.

→ More replies (1)
→ More replies (3)
→ More replies (1)

30

u/pjanic_at__the_isco Oct 12 '23
>-/o
>-|o
>-\o
>~!o
>~¡o

76

u/Hillbillyblues Oct 12 '23

Heeyyyyy Macarena

→ More replies (1)
→ More replies (6)

327

u/HowAboutShutUp Oct 12 '23

All the cool kids are using Arnold C now.

IT'S SHOWTIME
TALK TO THE HAND "hello world"
YOU HAVE BEEN TERMINATED

54

u/shaid_pill Oct 12 '23

Get to the pointa!

→ More replies (2)

67

u/AyrA_ch Oct 12 '23

54

u/nothing_but_thyme Oct 12 '23

The comments in that post are fantastic. If you want to know what it looks like to truly be passionate about something there might be no better example. Even the creator of the program comments and congratulates the author … and jokingly threatens he might make an even more difficult language one weekend if he’s bored.

24

u/sprcow Oct 12 '23

I love that 16 years ago, someone managed to wander into this site dedicated to a fairly esoteric topic with a bunch of other comments already posted, and was able to entirely miss the point anyway and commented "I don't know why you didn't just write this in Java".

It's strangely reassuring to know that even in the comparatively earlier days of the internet, proto-redditor behavior was still commonplace.

→ More replies (1)
→ More replies (2)
→ More replies (7)

60

u/Jonax Oct 12 '23

This is why compilers are designed to not be cat-friendly.

140

u/Kessarean Oct 12 '23

Fun experiment, Chatgpt can write some Malbolge

→ More replies (14)
→ More replies (23)