What is BrainF**k Computer Language in 3 minutes.

iefan
3 min readNov 25, 2022

Brainfuck a minimal esoteric programming language designed to make your brain hurt it’s turning complete but not designed to build actual software. It’s more like a work of art that challenges the status quo. It was created in 1993 by swiss physics student urban muler where the goal was to create a language with the smallest possible compiler it was built for the amiga 2.0 operating system and the compiler weighs in at under 200 bytes.

Brainfuck program starts with a 30,000 byte one-dimensional array all values are initialized to 0 then it provides a movable pointer that you can manipulate with eight different commands use angle brackets to move the pointer left to right by one cell at a time then increment or decrement the value in a cell using plus or minus use a period to output . The byte at the pointer’s current location or use a comma to accept input and store it at the pointer’s current location and finally use opening and closing brackets to create a loop notice. How brainfuck doesn’t require silly things like variables functions and classes to get started with brain fuck delete your operating system and install Amiga OS then create a file ending .bf which stands for brainfuck.

Any characters that are not the aid i mentioned previously will be ignored as a common at this point we have an array with thirty thousand eight bit numbers all set to zero to say hi mom well need to set each number to its corresponding ascii character we can increment the first cell then enter a loop within opening bracket for each iteration of the loop we’ll decrement that current cell by five then use an angle bracket to move one cell to the right’ll increment that cell by three then move back to the left and close the loop the loop will continue until the original cell goes back to zero it which point it will exit we now have a value of one zero three at index one we can move the pointer to it increment it to one zero four then use a period to output it that corresponds to the letter h and ascii we can increment it again to get one zero five which corresponds to the letter i now we continue this process of manipulating memory like cavemen until we output all the characters that we need now to run your code use right click copy and paste it into one of the many online interpreters congratulations you just said hi to your mom and this has been brainfuck in one 2 minutes.

Thanks for reading.

Hey iefan here, I will be posting every week about Programming, Cyber Security, Cloud Computing & more. Please follow, share & Subscribe to Newsletter https://iefan.substack.com/

--

--

iefan

Machine Learning (AI) Dev | Crypto & Defi enthusiast | Space Guy.