Hacker News new | ask | show | jobs
by lifthrasiir 3029 days ago
Oh, you are right; I simply overlooked that part of the readme. In my opinion that should have been 8-bit cells mainly because AFAIK simulating 16-bit or 32-bit in 8-bit cells is reasonable [1] but doing the other way without slowing it down too much is highly dependent to the program.

[1] https://esolangs.org/wiki/Brainfuck_bitwidth_conversions

1 comments

I didn't know about the idiom of using [+] for zeroing. Are the cells supposed to be signed ?
Signedness depends on your interpreter. In practice it hardly matters since there's no print function anyways, so if you want 2s complement you'll end up implementing it yourself anyways.

[+] should always overflow to 0 at some point, which is entirely doable for 8 bit, but less so for 32bit. as for choosing between [-] and [+] you'll just have to guesstimate if 0 or intmax is on average closer to your value.