Skip to main content
67 votes

Write a brain-flak classic interpreter!

Brain-Flak Classic, 1271 1247 1239 bytes ...
Nitrodon's user avatar
  • 10.8k
43 votes

Fastest Mini-Flak Quine

Mini-Flak, 6851113 cycles The program (literally) I know most people aren't likely expecting a Mini-Flak quine to be using unprintable characters and even multi-byte characters (making the encoding ...
ais523 - high effort answers's user avatar
33 votes

Expand compressed brain-flak

Brain-Flak, 952 916 818 bytes ...
Kamil Drakari's user avatar
30 votes

Find the First Bracket Match

Brain-Flak, 685, 155, 151, 137 bytes ...
DJMcMayhem's user avatar
  • 59.6k
26 votes

Tips for Golfing in Brain-Flak

Use the Third Stack If you have read the title you might be a bit confused. Surely there are only two stacks in Brain-Flak? However I assure you that it exists and it is one of the most powerful if ...
Wheat Wizard's user avatar
  • 100k
24 votes

Surprise Party for Brain-Flak

Haskell (before GHC 8.4), (10119 7767 7626 7540 bytes), score 15 14 10 ...
Laikoni's user avatar
  • 26.3k
23 votes

Tips for Golfing in Brain-Flak

Finding modulus/remainder Finding n modulo m is one of the basic arithmetic operations, important for many challenges. For cases m > 0 and n >= 0, the following 46-byte snippet may be used. It ...
feersum's user avatar
  • 31.5k
22 votes

Surprise Party for Brain-Flak

Python 2, 39 37 36 34 bytes -1 thanks to dzaima -2 thanks to Erik the Outgolfer ...
Wheat Wizard's user avatar
  • 100k
20 votes

The Third Flak!

Brain-Flak, 276 bytes ...
Nitrodon's user avatar
  • 10.8k
18 votes

Fastest Mini-Flak Quine

128,673,515 cycles Try it online Explanation The reason that Miniflak quines are destined to be slow is Miniflak's lack of random access. To get around this I create a block of code that takes in a ...
Wheat Wizard's user avatar
  • 100k
16 votes

Golf a Brain-Flak Integer

Brain-Flak, 64664 Try it Online! Here is my annotated code ...
Wheat Wizard's user avatar
  • 100k
16 votes

Balance the Brackets

Brain-Flak, 1350 bytes ...
Nitrodon's user avatar
  • 10.8k
14 votes

Text to Brain-Flak

Brain-Flak, 130 bytes ...
hyperneutrino's user avatar
  • 42.6k
13 votes
Accepted

Balance the Brackets

Retina, 254 252 264 248 240 232 267 bytes Thank you to @AnthonyPham, @officialaimm, and @MistahFiggins for pointing out bugs ...
math junkie's user avatar
  • 7,277
12 votes

Tips for Golfing in Brain-Flak

Push-Pop Redundancy This is a big one. It is also a little bit of a nuanced one. The idea is that if you push something and then pop it without doing anything you should not have pushed it at all. ...
Wheat Wizard's user avatar
  • 100k
12 votes

Find the First Bracket Match

05AB1E, 17 16 10 bytes -1 thanks to carusocomputing -6 thanks to Adnan for his amazing insight that "after incrementing, the second last bit is 0 for an opening bracket and 1 for an closing ...
Riley's user avatar
  • 11.7k
12 votes

Surprise Party for Brain-Flak

Jelly, 7 6 bytes “”Lb⁹Ọ Inside the “” you need to put the output of this Jelly program: ...
Erik the Outgolfer's user avatar
12 votes

Surprise Party for Brain-Flak

Retina, 59 - 24 = 35 bytes Su{p()se!¶Ha<<>[]i{thd}>,[](a)n-Fl}k! T`<>()[]{}`\pyri Bra Try it online! By comparison, the boring solution takes ...
Neil's user avatar
  • 177k
11 votes

Find the First Bracket Match

Vim, 23 bytes :se mps+=<:> %DVr<C-a>C1<esc>@" Try it online! I'm really sad about this answer. This solution is beautifully elegant and short, ...
DJMcMayhem's user avatar
  • 59.6k
11 votes

Surprise Party for Brain-Flak

Lenguage, 0 bytes Just ...
Erik the Outgolfer's user avatar
10 votes

Find the First Bracket Match

Retina, 26 24 bytes M!`^.(?<-1>([[({<])*.)* Try it online! Result is 1-based. Explanation A very different Retina solution that is essentially based ...
Martin Ender's user avatar
10 votes

Horizontally mirror a brainflak program

Charcoal, 3 bytes S‖T Try it online! Link is to verbose version of code. Explanation: reads the input and implicitly echos ...
Neil's user avatar
  • 177k
9 votes

Surprise Party for Brain-Flak

Haskell, (12006 13485 bytes), score 18 17 EDIT: -1 byte: Got the toEnum version to work without extensions by moving the toEnum...
Ørjan Johansen's user avatar
8 votes

Golf a Brain-Flak Integer

Lua 5.3, 57522 I actually started working on this back when the question was posted, but forgot about it until the Brain-Flak anniversary. ...
tehtmi's user avatar
  • 526
8 votes

Write a brain-flak classic interpreter!

APL (Dyalog Classic), 146 bytes ...
ngn's user avatar
  • 15.3k
8 votes

Surprise Party for Brain-Flak

Haskell, (1965 3131 18073 bytes), score 31 23 19 ...
Laikoni's user avatar
  • 26.3k
8 votes

Surprise Party for Brain-Flak

Japt, 19 14 13 10 9 8 bytes "(()()...()()<"q>)m(l)m(d)q where the string at the beginning is: ...
ETHproductions's user avatar
7 votes
Accepted

Write a brain-flak classic interpreter!

Pip -n, 151 148 101 98 bytes ...
DLosc's user avatar
  • 39.2k
7 votes

Text to Brain-Flak

Python 3, 17744 bytes Edit: I've added a couple of options to help golf in stack safe situations. ...
Jo King's user avatar
  • 47.5k

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