Brainfive
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
Brainfive is an esoteric programming language based on brainfuck created by DarkLoyd255 in 2025. It has all of the instructions in brainfuck, plus extra. Therefore it is turing complete.
Overview
Brainfive runs multiple instances of brainfuck all at the same time, each sharing the same program and output. This effectively multiplies the amount of addressable memory space. An individual instance of brainfuck running in brainfive is called a thought process, and a group of thought processes is called a brainstorm.
In a brainfive program, there are 5 thought processes labeled 0-4, and each has its own memory pointer. Each thought process has 65536 bytes of memory. The complete brainstorm has 327680 bytes of memory for you to use. This adds up to about 327 KB of memory, which is a bit overkill.
It should be noted that no comments can include the lowercase letter 'x'. It will be interpreted as the instruction that clears the memory from the current thought process.
Instructions
Brainfuck Instructions
A few instructions are just the ones from brainfuck. You can read about those here. The only difference is that they operate on the selected thought process at its memory pointer.
Unique Instructions
Instruction | Meaning |
---|---|
^ | Switches the current thought process to the one directly after. If you are on thought process 4, it will just loop back to 0. |
v | Switches the current thought process to the one directly before. If you are on thought process 0, it will just loop back to 4. |
0-4 | Switches the thought process to the corresponding number. |
? | Switch to a random thought process. |
x | Clears all memory from the current thought process. |
Programs
Hello, World!
Outputs "Hello, World!". This program is a bit long, but with multiplication it can be improved. This makes use of one of some of the new features too, allowing it to keep its position in memory on the first thought process, and then clear it and return, kind of like a "let" statement in a function.
Shift up to the next thought process ^ +++++++++++++++++++++++++++++++++ ! > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ d > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ l > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ r > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ o > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ W > ++++++++++++++++++++++++++++++++ space > ++++++++++++++++++++++++++++++++++++++++++++ comma > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ o > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ l > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ l > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ e > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ H Output everything previous then clear the thought process and shift down to the one we were just at, leaving it unmodified after output > <.<.<.<.<.<.<.<.<.<.<.<.<.x v
Interpreters (Unreleased)
The interpreter was written by Darkloyd about a day after the language was invented, and requires his brainfuck interpreter to function.
Neither his brainfuck OR brainfive interpreters have been released yet, so the language remains unexecutable until further notice.