04:37:16 -!- dbc has joined. 07:59:59 -!- clog has quit (ended). 08:00:00 -!- clog has joined. 09:10:59 >>,[----------[>>[>>>>]<<<<[[-]<[->>>>+>+>>>+[->+>>>]+>+[<<<<]<]>+<<<<]>++++ 09:10:59 ++[>------<-]>--[>[->>>>]+>+[<<<<]>>-],----------]>>>>+>>[<<-<+[>++++++++++< 09:10:59 [>-<-]++++++++++>[[<->-]+[<<<<]]<[[-]>+>>>+>[-]]<]>>>[>[>>>>]<<<<[[-]<[+[->> 09:10:59 >>]>+<]>[<+>[<<<<]]+<<<<]>>>[->>>>]+>+[<<<<]]>[[>+>>[<<<<+>>>>-]>]<<<<[-]>[- 09:10:59 <<<<]]>>>>>>>]<<[+++++>>>>]<<<<[[<++++++++>-]<.[-]<[-]<[-]<]++++++++++.[-],] 09:16:07 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:24 Ah. 09:16:33 Which was shorter? 09:19:23 the C version, because converting numbers to decimal in brainf*ck is iffy. 09:20:08 if brainf*ck had a 'output as number' instruction, it would've been shorter. 09:20:39 Ah. 09:21:07 hmmmn. 09:21:20 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 actually it depends on which C version we're talking about. 09:21:44 the 'readable' C version is 21 lines. 09:21:56 Ah. 09:22:21 less readable is 66 characters. 09:22:39 (we had a sort of a competition about the shortness.) 09:24:03 and the brainf*ck code is 75+217 (code + kludgy-ugly decimal conversion and printing routine) 09:24:38 Ah. 09:26:53 [11:29:04] fizban@colin ~/hut/t-106.231-lop> cat hw2-code.bf 09:26:53 code 09:26:53 +[>,----------[>++++++[<------>-]<-->>[->++<]>[-<+>]<<<[>>+<<[-]]<+>]<-]>>> 09:26:53 print 09:26:53 >>>++++++++++>+<<<<[>>>>>+[->>+>+<[<<+>>-]<<[>+>+<<-]++++++++++>[<->-]<[[-]>>+++ 09:26:57 +++++++>>-<<<<]>>---------->>+]+[-<<[<<+>>-]<<[>+>+<<-]>----------[<+>[+]]<]<-]> 09:27:00 >>>->>>>[>>>>]<<<<[<<++++++[>++++++++<-]>.<<<]++++++++++. 09:27:05 I don't remember what it does, though. 09:27:35 possibly converts a string like "11010" to a number like 26. 09:31:40 probably my very first brainf*ck thing that could be called a program. 09:32:32 Ah. That's clear. 09:41:19 Hm. Designed to accept "02506" as meaning "01101"? 09:42:37 hm, it does? 09:42:55 I thought it did some input validation, but can't be sure. 09:43:53 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.