Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Implement brainfuck language support #9

Open
devyn opened this Issue · 6 comments

5 participants

@devyn
Owner
< devyn> bf> ++++++++++[>++++++++++<-]+++[>>++++++++++<<-]>++++.+.>++.<----.---.+++++++++++++.++++++++++. 
< oftn-bot> devyn: [0, 32, (121)] hi eboy

Not really sure how input would work. Maybe just give it the next thing they say if it's hanging on a ',' command.

@mathiasbynens

Brainfuck programs get big really quickly. Aren't we gonna hit the IRC message length?

@FireyFly
Owner

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.

@prophile
Owner
@FireyFly
Owner

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 '!'.

@cmr
Owner

Separating code and input by a ! is something a bunch of things do, especially self-interpreters.

@devyn
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.