Is there any practical use of the Brainfuck language? [closed]
Want to improve this question? Reformulate the question so that it can be answered based on facts and quotations.
Closed 5 years ago.
Improve the questionWhere and how is it used?
6 answers
There is no particular practical use of the language. It is mainly used at Olympiads and programming competitions.
Such languages are not intended for practical use. Developed solely for the sake of a joke.
A bit of necroposting, but I didn't see the correct answer.
The Brainfuck language has fantastic simplicity. Write a Brainfuck emulator in some language - automatically prove its completeness by Turing. The Turing completeness of a certain language automatically removes a lot of questions, for example, it is immediately clear that this language is completely equivalent to any other, the running time of the program is unpredictably long, etc.
In my opinion, this is just a joke. Well, tell me: who needs a language in which, in order to display our favorite "hello world!" on the screen, you need to fuck your brain for two hours and write THIS:
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]
<.>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[
<++++>-]<+.[-]++++++++++.
Personally, I think this is a good exercise in mindfulness and knowledge of the ASCII table. Isn't the name clear?
It all depends on the purpose for which the language was created. if its purpose is to blow up the brain of the developer, then I dare assume that there is a benefit from it
Since this language has a very simple syntax, it can be explained very quickly (not the fact that the program can then be written). It is for this reason that it is good as a language for learning how to write compilers, interpreters, and learn optimizations. Not with the c++ compiler to start with . And the knowledge will come in handy.
How many languages are known, the full description of which fits on a piece of paper and they are Turing complete.