04:37:16 -!- dbc has joined.
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
09:10:59 <dbc> >>,[----------[>>[>>>>]<<<<[[-]<[->>>>+>+>>>+[->+>>>]+>+[<<<<]<]>+<<<<]>++++
09:10:59 <dbc> ++[>------<-]>--[>[->>>>]+>+[<<<<]>>-],----------]>>>>+>>[<<-<+[>++++++++++<
09:10:59 <dbc> [>-<-]++++++++++>[[<->-]+[<<<<]]<[[-]>+>>>+>[-]]<]>>>[>[>>>>]<<<<[[-]<[+[->>
09:10:59 <dbc> >>]>+<]>[<+>[<<<<]]+<<<<]>>>[->>>>]+>+[<<<<]]>[[>+>>[<<<<+>>>>-]>]<<<<[-]>[-
09:10:59 <dbc> <<<<]]>>>>>>>]<<[+++++>>>>]<<<<[[<++++++++>-]<.[-]<[-]<[-]<]++++++++++.[-],]
09:16:07 <fizzie> I wrote one of the homework assignments of this stupid 'basics of imperative programming' course we had in brainf*ck. decided to return the C version, though.
09:16:33 <dbc> Which was shorter?
09:19:23 <fizzie> the C version, because converting numbers to decimal in brainf*ck is iffy.
09:20:08 <fizzie> if brainf*ck had a 'output as number' instruction, it would've been shorter.
09:21:20 <dbc> If they need to be output in decimal, I've usually found it easiest to store them in decimal to begin with...
09:21:23 <fizzie> actually it depends on which C version we're talking about.
09:21:44 <fizzie> the 'readable' C version is 21 lines.
09:22:21 <fizzie> less readable is 66 characters.
09:22:39 <fizzie> (we had a sort of a competition about the shortness.)
09:24:03 <fizzie> and the brainf*ck code is 75+217 (code + kludgy-ugly decimal conversion and printing routine)
09:26:53 <fizzie> [11:29:04] fizban@colin ~/hut/t-106.231-lop> cat hw2-code.bf
09:26:53 <fizzie> +[>,----------[>++++++[<------>-]<-->>[->++<]>[-<+>]<<<[>>+<<[-]]<+>]<-]>>>
09:26:53 <fizzie> >>>++++++++++>+<<<<[>>>>>+[->>+>+<[<<+>>-]<<[>+>+<<-]++++++++++>[<->-]<[[-]>>+++
09:26:57 <fizzie> +++++++>>-<<<<]>>---------->>+]+[-<<[<<+>>-]<<[>+>+<<-]>----------[<+>[+]]<]<-]>
09:27:00 <fizzie> >>>->>>>[>>>>]<<<<[<<++++++[>++++++++<-]>.<<<]++++++++++.
09:27:05 <fizzie> I don't remember what it does, though.
09:27:35 <fizzie> possibly converts a string like "11010" to a number like 26.
09:31:40 <fizzie> probably my very first brainf*ck thing that could be called a program.
09:32:32 <dbc> Ah. That's clear.
09:41:19 <dbc> Hm. Designed to accept "02506" as meaning "01101"?
09:42:55 <fizzie> I thought it did some input validation, but can't be sure.
09:43:53 <fizzie> apparently not. oh well, we had some arguments whether the 'shortest C version' contest entries can assume perfectly valid input. (mine didn't (assume, that is))
15:18:55 -!- dbc has quit ("you have no chance to survive make your time.").
19:53:28 -!- lament has joined.
20:26:57 -!- lament has quit (Read error: 104 (Connection reset by peer)).
21:02:26 -!- lament has joined.
21:52:11 -!- lament has quit ("Leaving").
21:53:33 -!- lament has joined.