Turns out the problem causing the infinite loop in the Brainfuck interpreter was, well, an infinite loop. I know, I know, it must've been hard for me to catch. Please hold the applause.
I had forgotten to implement the somewhat important part where, you know, the while loop actually works. I had forgotten to add a check to see if the current cell is 0, thus making the loop somewhat useless.
Now I'll go try some other code and probably find new bugs.
Oh boy.
Showing posts with label I suck at python. Show all posts
Showing posts with label I suck at python. Show all posts
Tuesday, December 9, 2008
I am a complete idiot and I suck at not being a complete idiot
Posted by
Commodore Guff
at
8:13 PM
0
comments
Labels:
brainfuck,
brainfuck interpreter,
I really suck at python,
I suck at python,
python

About that interpreter...
Unsurprisingly, it's not working on its maiden voyage. Not unlike the Titanic, except that killed fewer people.
It worked on a small snippet of code, but not the 'hello world' script posted earlier. Rather than doing what it's supposed to, it's not. I expected about that much, though. At least it's going out in an infinite loop instead of some sissy syntax error.
More as this catastrophe develops further.
It worked on a small snippet of code, but not the 'hello world' script posted earlier. Rather than doing what it's supposed to, it's not. I expected about that much, though. At least it's going out in an infinite loop instead of some sissy syntax error.
More as this catastrophe develops further.
Subscribe to:
Posts (Atom)