r/AskProgramming • u/UmPatoQualquer007 • Dec 27 '23
Why exists programming languages like "COW", "Brainfuck", "LOLCODE", etc?
22
5
u/glasket_ Dec 27 '23
Brainfuck was specifically designed to try to make the smallest possible compiler design. Some other esolangs are made as mockery (Rockstar, made to ruin the phrase "Rockstar Programmer"), some are made for fun, some are made as a challenge, etc.
Usually esolang designers will note what they were going for somewhere. The Esolang wiki can be a pretty good resource.
4
u/StupidWittyUsername Dec 27 '23
My favourite is Malbolge. The herculean effort required for someone to (finally) write a program that outputs "99 bottles of beer" was pure hilarity.
3
u/Ashamandarei Dec 27 '23
Not sure about COW and LOLCODE, but Brainfuck was a project by a graduate student to make the smallest compiler possible.
1
Jan 01 '24
LOLCODE was made by someone in collegue, but as someone learning it, it lacks stuff from other languages, but i guess is fun whatsoever
3
u/dramallamayogacat Dec 27 '23
The traits that attract some people to computer science are embodied in the design of programming languages that hyper-optimize for some factor.
1
1
1
u/Exypnosss Dec 27 '23
Also they are called esolang’s. Esoteric languages.
1
u/AverageMan282 Dec 27 '23
reminds me of conlangs. this year's circus was just the other month and I ended up catching a few videos.
1
u/Nondv Dec 27 '23
you'll need to ask their authors.
I imagine they were doing some research on implementation of programming languages and just did it for fun or as an experiment/PoC
I unironically think that brainfuck is great. Kinda reminds me of a practical impractical (oxymoron) turing machine
1
1
1
u/Mayedl10 Jan 13 '24
For fun. Maybe as a challenge? It certainly is one to code in bf. I know since I have a project that is an assembly-ish language that COMPILES TO BRAINFUCK (called BFIL. shameless self-plug, I know).
check out truttle1's youtube channel. He codes in esoteric languages (short "esolangs"). If you want to learn more about them, check out the esolang wiki.
0
Dec 27 '23
[deleted]
1
u/Felicia_Svilling Dec 27 '23
You forgot DreamBerd.
And a bot a thousand other essoteric programming languages. (It is not supposed to be an exhastive list.)
0
Dec 27 '23
[deleted]
1
u/ValentineBlacker Dec 27 '23
Erlang doesn't have loops either. Elixir lets you write a loop if you really want to but it doesn't execute it as a loop under the hood. I haven't written a loop in years 😌
27
u/tenexdev Dec 27 '23
Because it can be fun to make things like that. They weren't intended as real, usable languages.