Brain F*** The Programming Language with 8 Possible Characters

Brain F*** is an esoteric programming language which means it was made as a proof of concept. Brain F*** is an extremely minimal language with only 8 possible characters: + - . [ ] , anything besides those will be considered a comment. The pointer starts at position 0 and each position starts at value 0.

  • + will increment the pointer value
  • - will decrement the pointer value
  • . will output the ASCII of the pointer value
  • , will set the current pointer value to the number that represents the ASCII of the next button press
  • [ begins a loop and will loop until the pointer value is 0
  • ] closes the loop note: this is similar to end it doesn’t stop the loop it closes it

Now that you know what Brain F*** is let’s see some code.
Here is the module, it should be run on the client Module

local BF = require(script.Parent)
print(BF:Execute("++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>."))

that code will print “Hello World!”

local BF = require(script.Parent)
print(BF:Execute(",."))

this will print the key you press but only once

Because of the minimal nature of the language, it only took like 2 hours to make. I made this because not many people know about it and I want to see what this community can come up with. If you made something cool please post it here I would love to see what you made. I am going to be making a UI for this module so it is easier to use in-game and I will be posting it here. Here’s a link to get some ideas of what you can make link

15 Likes

Yeah, I can definitely see why they decided to call it that. Esolangs are so strange. I’ve heard of one and had to work with one before: the one I heard of was ArnoldC and the one I worked with was Rockstar.

I find it pretty unique and interesting that you can make a language out of only 8 characters among the other crazy little points esolangs have. Safe to say I will never actually touch this though and I can’t see the utility, though I don’t assume it’s meant to be formally used given it’s a proof of concept.

Thanks for sharing though? Pretty cool but it’s quite literally killed my brain.
Implying it’s not already dead, but whatever.

3 Likes

I’ve not come across this kind of thing for a long time. Nice to see people are still making implementations of these.

Just as an interesting fact for anybody who is interested, there is actually another esolang based on this one designed as a joke to teach Orangutans to program. They basically replaced every character from this language to a chimp word: “Ook”. In fact, every command is a permutation of the word “ook” with different punctuation.

You could probably take your code from this to make an Ook! interpreter.

Have fun and please help keep these fun little brain teasers alive!

Some more stuff on ook: Ook! - Esolang!

1 Like

I made one in Java once. It was buggy but I fixed mostly all of them.