I'm fascinated by brainfuck, truly captivated... I can't stop working with it.
I think this is going to be a pet project for quite some time, I have spent most of the evening playing around with copying cells and figuring out how to do basic operations. Blood brilliant, awesome waste of time though.. I wonder what I will work on next.
Tuesday, 28 June 2011
Day one, 28th June 2011
I'm sick, work don't care about me and I'm extremely bored whilst awake.. I need to do something interesting, challenging and worthwhile.. I enjoy hacking away, but now it is time to concentrate on my future and the current place of employment is a joke and has been this way from day one virtually.. I was just too stubborn to give up, so now, here we are, sick and unappreciated.. Let's make a portfolio of fresh coolness!
I have decided to drop anything that I maybe have worked on in the past, forgetting as much as possible, so that I can concentrate on each day and learn whatever I can.. Then briefly document it so that I can move forward the next day.
Today I was bored, looking around online, when I saw something about brainfuck (programming language) and realised that I had never actually written anything in it and nor did I really give it more than a giggle and move on..
___ ____ ____ _ _ _ ____ _ _ ____ _ _
|__] |__/ |__| | |\ | |___ | | | |_/
|__] | \ | | | | \| | |__| |___ | \_
077 111 114 114 105 115 033
++++++++++[>+>+++>++
+++++>++++++++++<<<<
-]>>>+++++++.>++++++
+++++.+++..---------
.++++++++++.<<+++.<.
I have decided to drop anything that I maybe have worked on in the past, forgetting as much as possible, so that I can concentrate on each day and learn whatever I can.. Then briefly document it so that I can move forward the next day.
Today I was bored, looking around online, when I saw something about brainfuck (programming language) and realised that I had never actually written anything in it and nor did I really give it more than a giggle and move on..
___ ____ ____ _ _ _ ____ _ _ ____ _ _
|__] |__/ |__| | |\ | |___ | | | |_/
|__] | \ | | | | \| | |__| |___ | \_
077 111 114 114 105 115 033
++++++++++[>+>+++>++
+++++>++++++++++<<<<
-]>>>+++++++.>++++++
+++++.+++..---------
.++++++++++.<<+++.<.
After writing a little program in brainfuck (above) I decided to write a program to parse that code, do what is needed to make it output correctly and gave myself a pat on the back.
$ gcc my.c && ./a.out
Morris!
Yep it works fine.. Now I am aware of two problems, the first being that there is no keyboard input yet and the second issue due to the looping mechanism. In order for my input code to work, I could completely ignore nested loops and assume there aren't any but now that I hope to extend the parser I will add that feature as well.
Truth be told I have already added keyboard support, trying to talk in past tense etc, but the looping isn't fixed yet as I haven't added support for loading files as I compiled the brainfuck code directly in my binary.
I'm considering extending brainfuck to add network support, I've seen it done somewhere already but quite fancy the extra mileage that may bring but first I do intend writing a brainfuck interpreter in assembly language first. I don't know if I have time this evening, I hope so, not sure how strict I want to be with rules but a themed group of projects each day would require me to drop any unfinished work I guess.
Wish me luck :)
$ gcc my.c && ./a.out
Morris!
Yep it works fine.. Now I am aware of two problems, the first being that there is no keyboard input yet and the second issue due to the looping mechanism. In order for my input code to work, I could completely ignore nested loops and assume there aren't any but now that I hope to extend the parser I will add that feature as well.
Truth be told I have already added keyboard support, trying to talk in past tense etc, but the looping isn't fixed yet as I haven't added support for loading files as I compiled the brainfuck code directly in my binary.
I'm considering extending brainfuck to add network support, I've seen it done somewhere already but quite fancy the extra mileage that may bring but first I do intend writing a brainfuck interpreter in assembly language first. I don't know if I have time this evening, I hope so, not sure how strict I want to be with rules but a themed group of projects each day would require me to drop any unfinished work I guess.
Wish me luck :)
Subscribe to:
Posts (Atom)