r/todayilearned • u/IveHadEnoughThankYou • 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
2.7k
u/[deleted] Oct 12 '23
This, from the Wikipedia:
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<
4.8k
u/Eroe777 Oct 12 '23 •
And somewhere out there, a corporate recruiter is seeking a Malbolge programmer with at least 5 years experience.
258
u/Goukaruma Oct 12 '23
Esoteric programming languages are fun but usually not intended to be used. For example there is a language called "white space" and it only works with "empty" symbols like space and return.
1.1k
u/Alfreds16 Oct 12 '23
It's real. I thought it was made up for that show.... Elementary
326
u/Rich4477 Oct 12 '23
It reminds me of apl. Lots of symbols. About 20 years ago we had to hire one of the few people who knew it and he was about 70 years old.
96
u/_bagelcherry_ Oct 12 '23
This is what non tech people see when you show them source code
251
u/ArcadianBlueRogue Oct 12 '23
Fuuuuuuck that lol. So he made it out of spite for all reason?
663
u/[deleted] Oct 12 '23
Here's ChatGPT's response to attempting to write "Hello world!"
Unfortunately, writing a Malbolge program to print "Hello world!" is not straightforward and might require an exhaustive search or specially designed tools.
However, I can provide you with a known Malbolge program that prints "Hello World!" (note the capital "W"):
If the exact capitalization and punctuation of "Hello world!" is necessary, I'm afraid the task becomes even more complex. Given the unpredictable and obfuscated nature of Malbolge, it would require an extensive search or a specialized tool to generate the exact desired output.
42
u/[deleted] Oct 12 '23
How did they make sure it worked as intended though, if they did not write a program at all
38
u/SanDiegoDude Oct 12 '23
Okay, wtf is going on with Daytime TV?
53
u/pulsingTruth Oct 12 '23
('&%$#
CB]V?Tx<uVtTRpo3NlF.Jh++FdbCBA@?]!~|<9876543210/.-,+*)('&%$#CB]V?Tx<uVtTRpo3NlF.Jh++FdbCBA@?]!~|<9876543210/.-,+*)('&%$#24
u/Diligent-Floor-156 Oct 12 '23
There are a lot of quite obfuscated programming languages, check "Code golf" on StackExchange. It's full of programming challenges where the goal is to solve them with a code having the smallest footprint (size in bytes), therefore people got creative with languages performing all sorts of complex tasks with mono-characters instructions.
21
u/BostonDodgeGuy Oct 12 '23
You know, maybe I've treated JavaScript too hard over the years.
19
u/[deleted] Oct 12 '23 edited Oct 12 '23
There exists a whole treasure trove of these oddball languages.
Programmers have a very, very weird sense of humor. Some of us, anyway.
Edit: My favorite is Unlambda. This program prints a graph of Fibonacci numbers:
(Yes, a graph. Like I said, weird.)
20
u/ersentenza Oct 12 '23
Fun fact: Malebolge is the eight circle of Hell
18
u/Rev_LoveRevolver Oct 12 '23
The heads of the International Obfuscated C Code Contest just shake them.
9
u/CosmicDriftwood Oct 12 '23
Named after a demon lmao
23
u/rubbery__anus Oct 12 '23
If you think Malbolge is esoteric, wait until you learn about DreamBerd, aka C, a language in which setting constant constant constants makes them immutable for all users, globally, forever.
7
u/BobExAgentOfHydra Oct 12 '23
Isn't Malbolge the BBEG from Spawn?
7
u/otah007 Oct 12 '23
Just to explain what makes this language so insane: every time an instruction is executed, that instruction is encrypted so that the next time you execute it it will do something different.
5
u/mittiresearcher Oct 12 '23
The creator of rollercoaster tycoon: splendid, finally a language good enough for Rollarcoaster Tycoon 2
50
u/[deleted] Oct 12 '23
That dude must be absolutely insufferable
9
u/minegen88 Oct 12 '23
I prefer ArnoldC
4
u/0x4765654b Oct 12 '23
Yeah, I had to write in server side Javascript too
4
u/Ktrout743 Oct 12 '23
So I guess this is the programming equivalent of a Rube Goldberg machine?
4
u/Leading-Translator81 Oct 12 '23
AI will learn it recode it’s self with it so it can’t be changed by humans and then sky net baby!
12
u/[deleted] Oct 12 '23
Then you have things like ArnoldC.
3
u/Capital-Economist-40 Oct 12 '23
Isnt Malbolge the Demon that Spawn is bound to ?
3
u/KawasakiDeadlift Oct 12 '23
This is the programming language we will need to use to disable the killer AI machines.
3
u/remghoost7 Oct 12 '23
Dang, even ChatGPT can't write a functional Malbolge script.
9
u/[deleted] Oct 12 '23
The notability criteria for programming languages on Wikipedia must be pretty broad
24
u/Destination_Centauri Oct 12 '23
Still not as bad as Javascript.
2
u/andsens Oct 12 '23
Now make a quine with it.
2
u/[deleted] Oct 12 '23
('&%$#}{zyxwvutsrqponmlkjihgfe}|{zyxwvutsrqponmlkjihgfedcba
_^]\[ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-,+*)(&%$#"This program is a simple factorial calculator in Malbolge. It will take an integer as input and produce its factorial.
2
u/Snorefezzzz Oct 12 '23
Looks like regular expressions
2
u/Hoosteen_juju003 Oct 12 '23
So gibberish. I can make that language too
2
u/BootyWhiteMan Oct 12 '23
When AI takes over civilization, this is what it will use to keep out pesky human hackers.
2
u/ClownfishSoup Oct 12 '23
Stuff like this is why Jeff Goldblum could never have wirelessly uploaded a virus from his Mac to an Alien spaceship.
2
u/Good_ApoIIo Oct 12 '23
Wait until an AI overlord uses this code to enslave us, making it nearly impossible for us to reverse-engineer and create attacker programs against it.
2
u/Unhappy_Emphasis5690 Oct 12 '23
Needs additional commenting
2
u/Age- Oct 12 '23
How do you make a programming language capable of functioning without being able to write code with it? Did he just make it and then run the whole thing through a cipher or some obfuscation to make it seem nonsense?
2
u/Larry97EU Oct 12 '23
ChatGPT says:
Given the current trajectory of both Al and programming, there's no foreseeable future where games of the caliber of Cyberpunk 2077 would be developed in Malbolge It's not a limitation of Al but the impracticality of the language itself for such tasks.
Unfortunate!
2
u/TronOld_Dumps Oct 13 '23
Why?