This forum is for discussing of esoteric programming languages. (Matters pertaining specifically to the wiki should go on its talk pages.)
The name field is optional and you are welcome to post anonymously if you like. URLs automatically turn into links. To make a link to a previous post in the same thread, use >>number, e.g. >>2 for post 2.
does anyone know how to perform fast bitwise operations like xor, and, or in brainfuck?
Not sure, is it on the bf algorithms page?
nothing there.
NOT seems to be very easy.
from http://www.nieko.net/bf.php
AND:
Output is 1 if both inputs are true. p1 is output, p2 and p3 are inputs:
[-] ;p1v0
> ;p2
[ ;enter loop if p2 is true
> ;p3
[ ;enter loop if p3 is also true
<<+>> ;p1v1
[-] ;empty p3
]
< ;empty p2
[-]
question was about bitwise