citizen428.blog()

Try to learn something about everything

Getting Brainf*cked

After knowing Brainfuck for quite a while alreay, I today have decided to write my very first “program” in this funny little language. It does nothing more than displaying the string “CARGAL!” followed by a newline, but nonetheless it was good excercise for getting used to BF.
Here we go for the source:

1
2
3
4
5
6
7
8
>++++++++[<++++++++>-]<+++.
--.
>++++++++[<++>-]<+.
>+++++[<-->-]<-.
------.
>++[<+++++>-]<+.
>[-]+++++++[<------>-]<-.
[-]++++++++++.

Programming in BF gives me a rewarding feeling in a very strange way, which makes me fear that I will spend more time with it, especially now that I know about app-vim/brainfuck-syntax… ;) However, I still wonder how Markus Schaber had the patience to implement a multi-threading library for (and of course in) BF.

Comments