00:03:23 -!- deltab has joined.
00:03:23 -!- SamB has joined.
00:04:05 -!- Taaus has joined.
02:19:48 -!- SamB has quit (Read error: 60 (Operation timed out)).
02:36:02 -!- calamari has joined.
03:12:44 <Taaus> Hello, Mr. Squid :)
04:01:57 <calamari> need to be able to tell whether a number is even or odd in bf
04:02:48 <calamari> then you compare to the original number
04:03:06 <calamari> but maybe there is a faster way
04:04:52 <calamari> could have a loop with two decrements
04:05:11 <calamari> if it hits zero with one of the decs it is even.. the other? odd
04:05:15 <Taaus> I guess you could do something like this: "distribute" the contents of the memory cell you wish to test into two other memory cells. You then end up with either N/2 and N/2+1 or two N/2... Subtract these from each other, and you get 0 or 1.
04:05:26 <Taaus> You could do that too. :)
04:05:44 <calamari> yeah i think it should be pretty fast
04:07:08 <calamari> hehe this esoteric stuff gets scary when you start thinking in bf code
04:07:39 <calamari> was showing my java instructor how to copy (add) in bf.. I think I might have freaked him out
04:08:13 <Taaus> He was awed by the elegance when compared to Java? ;)
04:22:02 <calamari> hrm.. was messing with the subtract twice idea.. yours seems simpler and actually faster than testing for 0 twice
04:23:36 <calamari> for example if it hits zero on the first one then you have to put in an if to not do the second one
04:24:25 <calamari> hrm.. yours has the same problem i guess
04:24:43 <Taaus> Yep... But I wouldn't call it a problem :)
04:26:21 <Taaus> We'll have to talk about it some other time, though... It's almost 6 AM here. I'm heading off to bed :)
04:38:34 <calamari> oh wait.. thats easier to fix than I first thought !
04:42:27 <calamari> and i dont even have to test for 0.. sweet!
05:28:18 -!- calamari has quit ("<=K").
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
13:43:39 -!- Aardappel has joined.
15:05:49 -!- Aardappel has quit (Read error: 110 (Connection timed out)).
15:13:27 -!- Aardappel has joined.
21:03:09 -!- docelic has joined.
21:03:17 -!- docelic has quit (Read error: 54 (Connection reset by peer)).