The Eccentric World of Weird Programming Languages
FSMD Fahid Sarker
Senior Software Engineer · July 8, 2024
The Eccentric World of Weird Programming Languages
Welcome, curious coders! Today, we embark on a journey through the quirky and eccentric corners of the programming world. Forget about Python, JavaScript, or C++—we're diving into some of the weirdest programming languages that have ever existed. Brace yourselves; this is going to be a fun and bizarre ride!
Brainf**k - Minimalism Gone Too Far
First up, we have Brainfk, a language with a name that says it all. Created by Urban Müller in 1993, Brainfk is designed to challenge and amuse programmers while achieving Turing completeness with minimal means.
Here's a simple "Hello World!" example in Brainf**k:
Code.brainf>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-] <.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++.
Honestly, deciphering this feels like trying to read hieroglyphics after a long night out. But the reward? Sweet satisfaction when that "Hello World!" finally prints out.
Brainf**k is intentionally obtuse, making it a great exercise in minimalist designs and, well, brain-cramping fun! It's a perfect language if you're looking to prank a developer friend or show off some hardcore coding chops.
INTERCAL - The Language That Hates You
Next, let's delve into the quirky realm of INTERCAL, which stands for Compiler Language With No Pronounceable Acronym. Created in 1972 by Don Woods and James Lyon, INTERCAL is more of a joke than a serious programming language.
Consider the following code meant to print "Hello World!":
Code.intercalDO ,1 <- #13 PLEASE DO ,1 SUB #1 <- #238 DO ,1 SUB #2 <- #108 DO ,1 SUB #3 <- #112 DO ,1 SUB #4 <- #0 DO ,1 SUB #5 <- #64 DO ,1 SUB #6 <- #194 PLEASE DO ,1 SUB #7 <- #48 DO ,1 SUB #8 <- #26 DO ,1 SUB #9 <- #244 PLEASE DO ,1 SUB #10 <- #168 DO ,1 SUB #11 <- #24 DO ,1 SUB #12 <- #16 DO ,1 SUB #13 <- #162 PLEASE READ OUT ,1 PLEASE GIVE UP
INTERCAL proudly rejects many established programming conventions and employs verbiage like PLEASE
to make the code unnecessarily polite. This language is a masterclass in creating syntactic and semantic confusion, ensuring no one can read or write INTERCAL without developing a pounding headache.
Befunge - A Two-Dimensional Esoteric Delight
Leaving the linear throwbacks behind, let’s venture into Befunge, a two-dimensional esolang invented by Chris Pressey in 1993. Befunge codes are written on a two-dimensional grid and can move up, down, left, or right.
Here's how you would print "Hello World!" in Befunge:
Code.befunge>25*"!dlroW olleH":v v:,_@ > ^
In Befunge, instructions can be pushed onto a stack and move throughout the grid, encouraging some very "creative" problem-solving techniques. It’s like mixing programming with a classic 2D puzzle game, which can be both entertaining and... confounding.
LOLCODE - The Language of Cat Memes
Finally, a language for the internet meme generation: LOLCODE. Designed by Adam Lindsay in 2007, LOLCODE makes coding feel like chatting with a feline internet star.
Here's a simple "Hello World!" program in LOLCODE:
Code.lolcodeHAI 1.2 CAN HAS STDIO? VISIBLE "HELLO WORLD!" KTHXBYE
With keywords like HAI
and KTHXBYE
, LOLCODE aims to bring some humor into programming. If you’ve ever felt coding could benefit from more LOLs, this might just be the language for you.
Conclusion
We've explored the whimsical, baffling, and downright bizarre corners of programming languages today. While Brainf**k, INTERCAL, Befunge, and LOLCODE might not land you a job or help you build the next unicorn startup, they offer invaluable insights into the art and humor of coding. These esoteric languages remind us that programming doesn't always have to be serious; it can be a playground of creativity and fun.
So next time you’re looking for a break from the daily grind of mainstream coding, why not take one of these quirky languages for a spin?
Happy coding, and don't forget to bring your sense of humor along for the ride!