Skip to main content
82 votes

Interpret brainfuck

brainfuck, 843 691 bytes Edit: decided to revisit this and found a surprising number of ways to golf off bytes ...
Jo King's user avatar
  • 47.2k
62 votes

bfcat - encode a file as a brainf*** program

Brainfuck, 55 51 bytes ,[>+++[>+++++++<-]>[<++>>+++<-]<+<[>.<-]>+++.>>-.,] Try it online! Example output for ...
Martin Ender's user avatar
47 votes

Minify Brainfuck

Brainfuck, 579 bytes ...
Mitch Schwartz's user avatar
41 votes

Interpret brainfuck

Vim, 809 580 bytes -229 bytes because shenanigans and balderdash. ...
Aaroneous Miller's user avatar
37 votes

bfcat - encode a file as a brainf*** program

Brainfuck, 39 33 32 31 bytes -[-[>]<--<--],[[>.<+]>+.--.+<,] The algorithm that places 45 on the tape is taken from Esolang's Brainfuck ...
Dennis's user avatar
  • 210k
24 votes
Accepted

Brainf*ck Loop Problem

27 24 bytes ++[<++[++<]>>>+]<[-<-.>] Spent a whole day basically writing up a brute forcer and watching the results come in. Now I can ...
Sp3000's user avatar
  • 61.9k
24 votes

RLE Brainfuck dialect

Python 2, 62 61 bytes lambda s:eval(re.sub('(\d*)(.)',r'+1*\1*1*"\2"',s)) import re Try it online! The regex substitution expands ...
lynn's user avatar
  • 68.8k
21 votes

Is it a brainfuck instruction?

brainfuck, 105 103 95 bytes Outputs \x00 for false and \x01 for true. ...
Uriel's user avatar
  • 13.2k
21 votes

Write a Stack Exchange compliant brainfuck explainer

brainfuck, 811 775 709 701 bytes ...
tjjfvi's user avatar
  • 7,350
19 votes
Accepted

bfcat - encode a file as a brainf*** program

Jelly, 8 bytes O”+ẋp“.> Try it online! Sample run For input hi, this program prints ...
Dennis's user avatar
  • 210k
19 votes

RLE Brainfuck dialect

Pyth, 2 bytes r9 Try it here! How it works r9 - Full program receiving the String from STDIN. r - Pyth's set of extended string operations. 9 - The ninth ...
Mr. Xcoder's user avatar
  • 42.4k
19 votes

The cell at the end of the rainbow

54 Bytes ------[>+++<--]>[->----[-[->+<]<[->+<]>>]<]>>>>>>>>>>. 119 x 252 = 29988. ...
Bubbler's user avatar
  • 77.1k
17 votes
Accepted

Zero an arbitrarily large cell in Brainf***

l+r = 0+2 = 2, 55 53 51 bytes [>+[-<+>>+<]<[>]>[+[-<+<->>]<[->+<]]>[-<+>]<<]>[-]< l+r = 1+2 = 3,...
JungHwan Min's user avatar
  • 13.8k
17 votes

RLE Brainfuck dialect

Lua, 65 64 63 Bytes Great ! For once, Lua beats Python ! Edit: Saved one byte thanks to @Jarhmander, thanks to him for the useful trick to force a single result ...
Katenkyo's user avatar
  • 3,125
17 votes
Accepted

Print 'A' 1000 times with BrainFuck

The method you seem to currently be using is 39 bytes: >>+++[<-[-<.>]>-]++++[<----->-]<-[-<.>] (not including getting the ...
hyper-neutrino's user avatar
  • 42.4k
16 votes

Generate Brainfuck for the numbers 1–255

Perl 6, 224 + 3964 = 5834 4188 bytes ...
Jo King's user avatar
  • 47.2k
16 votes

Generate Brainfuck for the numbers 1–255

Brainfuck, 77 75 73 + 32894 = 32967 32969 32971 bytes ...
jonatjano's user avatar
  • 611
15 votes

Interpret brainfuck

TypeScript Types, 1807 1771 bytes ...
tjjfvi's user avatar
  • 7,350
15 votes

Brainf*ck Loop Problem

30 bytes -<-[>+>-[---<]>]>++>+[---<.->] Try it online! 85 and 171 are fairly easy to generate in brainfuck (modular inverses of 3 and ...
primo's user avatar
  • 33.3k
15 votes

Make a longer lenguage program

8437495638205698686671 bytes This translates to the brainfuck program: -[>>[>]+[->[>]+.[<]+<]<-] Which prints exactly \$...
Jo King's user avatar
  • 47.2k
14 votes

Interpret brainfuck

C (gcc) Linux x86_64, 884 621 525 487 439 383 358 347 bytes ...
ceilingcat's user avatar
  • 7,605
14 votes

Tips for golfing in brainfuck

A few tips here: Constants: The Esolangs' constants page has an extremely useful list of the shortest ways to create specific values. I find myself consulting this page at least twice per program. The ...
Jo King's user avatar
  • 47.2k
13 votes

Implement QuickSort in BrainF***

brainfuck (178 bytes) Even if brainfuck is cumbersome, it helps to work with the grain of the language. Ask yourself "Do I have to store this value explicitly in a cell?" You can often gain speed and ...
Daniel Cristofani's user avatar
13 votes

Bootloader golf: Brainf***

171 bytes1 Wooohoooo! It took half the day, but it was fun... So, here it is. I think it conforms to the specs (wraparound of cell pointer, echo of characters on input, reading char by char, echo of ...
dim's user avatar
  • 8,558
13 votes
Accepted

The cell at the end of the rainbow

50 bytes >+[>+[<]>->+]>-<<[>>-------[[>]+[<]>-]<<-]>>>[>]>. Try It Here! The first section (...
Jo King's user avatar
  • 47.2k
12 votes

bfcat - encode a file as a brainf*** program

Brainfuck, 3513 43 bytes ++[>+<------],[[>.>+<<-]>+++.->[<.>-]<--<,] This answer makes no assumptions about the interpreter of ...
Dennis's user avatar
  • 210k
12 votes

Is it a brainfuck instruction?

unsure, 1302 bytes ...
Rydwolf Programs's user avatar
11 votes

Interpret brainfuck

Vyxal, 150 149 148 bytes ...
lyxal's user avatar
  • 33.6k
11 votes

Interpret brainfuck

Brainfuck, 948 bytes Well, that took a while. I golfed a Brainfuck self-interpreter by ... not me. ...
MD XF's user avatar
  • 13.9k
11 votes

RLE Brainfuck dialect

Scala, 73 69 bytes "(\\d+)(.)".r.replaceSomeIn(_:String,m=>Some("$2"*m.group(1).toInt)) Try it online!
oowekyala's user avatar
  • 211

Only top scored, non community-wiki answers of a minimum length are eligible