Open devyn opened 12 years ago
Brainfuck programs get big really quickly. Aren't we gonna hit the IRC message length?
Doesn't matter; has brainfuck.
Really though, you can do enough interesting things in a single IRC-line of brainfuck for it to be a fun (although gimmicky) feature.
Hi chaps-
Doesn't matter; has brainfuck.
What about the inevitable infinite loops? +[]?
Alistair
Re. infinite loops, just limit the execution to, say, 100 000 brainfuck instructions.
Not really sure how input would work.
IIRC what fungot (another IRC bot) does is to separate code and input by a '!'.
Separating code and input by a ! is something a bunch of things do, especially self-interpreters.
We already have multiline execution support:
|> +++[>
|> ++++++++++
|> <]
bf> ++.
This works for all languages.
As for input, yes, !
seems the best way to go. I had forgotten about that.
Not really sure how input would work. Maybe just give it the next thing they say if it's hanging on a ',' command.