The case for brainfuck
Brainfuck is a widely known programming language but it lacks recognition from the competitive programming comunity. I am here to fix that.
Advantages
Brainfuck has many advantages over c++:
- Builtin fast i/o.
- Builtin O(1) time complexity (there is a finite number of states so you can either end up in a cycle or finish execution).
- Builtin O(1) space complexity (memory is limited to 30 000 bytes).
- Only 8 commands (no room for human error).
- You now have the power to understand any Benq source (really)
- Immune to hacks (except from 3000+ rated users who learn brainfuck before they can walk).
How to use
You might notice that there is no brainfuck option when choosing a language for your source code. This is no problem! You can use this C++ interpreter for brainfuck. This resource also contais a few classic examples (dfs, bfs, djikstra, Roy-Floyd etc.).
Conclusion
I thank you all for reading. Upvote for more quality content.
Brainfuck doesn't optimise for modern CPU architectures.
Maybe your brainfuck compiler doesn't. But that's like saying C++ doesn't optimize for modern CPU architectures when you've only tried msvc.
That's a lot of words to dance around the fact that your brainfuck compiler doesn't do it either.
But, but, brainfuck has fewer possible symbols/characters than C++, so it must be easier to optimise!!!
So when will Codeforces add Brainfxxk compiler?
Tag Mike and you will find out...
or you can use jsfuck 114794320
That is nice and all, but could you link an implementation to bitset in brainfuck? That would make your code complexity O(1) * O(1) = O(0), and that would really make the case
Holy heck it works!!1!
Legend