20:14:35 -!- esowiki has joined. 20:14:36 -!- glogbot has joined. 20:14:39 -!- esowiki has joined. 20:14:39 -!- esowiki has joined. 20:14:39 -!- EgoBot has joined. 20:15:35 -!- Phantom_Hoover has quit (Ping timeout: 255 seconds). 20:28:20 O_o 20:28:39 THE DEAD BOTS ARE RISING 20:30:14 -!- Sprocklem has joined. 20:31:04 cue for metasepia? 20:31:30 metasepia seems to be dependent on its human 20:31:43 > map(tail.tails).(init.inits)$"1234" 20:31:45 [[],[""],["2",""],["23","3",""]] 20:31:57 > map(init.tails).(tail.inits)$"1234" 20:31:59 [["1"],["12","2"],["123","23","3"],["1234","234","34","4"]] 20:32:38 Needs some reordering. 20:33:04 > concat.transpose.map(tail.inits).(init.tails)$"1234" 20:33:05 ["1","2","3","4","12","23","34","123","234","1234"] 20:33:13 way too long 20:33:20 Now I guess we've got a bfjoust conflict, then. :/ 20:33:24 !bfjoust 20:33:24 fizzie: "!bfjoust progname code". See http://zem.fi/bfjoust/ for documentation. 20:33:25 ​Use: !bfjoust . Scoreboard, programs, and a description of score calculation are at http://codu.org/eso/bfjoust/ 20:33:27 Yes. 20:33:55 What's the CONSENSUS on how to PROCEED? 20:33:58 !help 20:33:58 elliott: I do !bfjoust; see http://zem.fi/bfjoust/ for more information. 20:33:58 ​help: General commands: !help, !info, !bf_txtgen. See also !help languages, !help userinterps. You can get help on some commands by typing !help . 20:34:01 !help userinterps 20:34:02 ​userinterps: Users can add interpreters written in any of the languages in !help languages. See !help addinterp, delinterp, show | !userinterps. List interpreters added with !addinterp. 20:34:05 !help addinterp 20:34:06 ​addinterp: !addinterp . Add a new interpreter to EgoBot. This interpreter will be run once every time you type ! , and receive the program code as input. 20:34:14 (uh, this output seems broken.) 20:34:23 (unless it's just mosh) 20:34:27 no, that was definitely "hlp" 20:34:33 !addinterp bfjoust sh true 20:34:34 ​Interpreter bfjoust installed. 20:34:35 !bfjoust a 20:34:35 elliott: "!bfjoust progname code". See http://zem.fi/bfjoust/ for documentation. 20:34:36 ​Use: !bfjoust . Scoreboard, programs, and a description of score calculation are at http://codu.org/eso/bfjoust/ 20:34:39 aw 20:34:40 !delinterp bfjoust 20:34:41 ​Interpreter bfjoust deleted. 20:34:44 ok, wtf? 20:34:46 interpreer? 20:34:56 I'm not seeing anything weird. 20:35:14 -!- Bicyclidine has joined. 20:35:15 I mean, anything weirder than the usual. 20:35:51 maybe my irssi or mosh or terminal is choking on the weird stuff it uses to prevent botloops 20:37:24 i should make a bot that triggers on zero-width spaces only 20:38:46 int-e: you don't need the init. before tails, also id=<< is shorter than concat if things fit 20:40:13 elliott: HackEgo uses the same stuff afaik 20:40:26 `help 20:40:26 Runs arbitrary code in GNU/Linux. Type "`", or "`run " for full shell commands. "`fetch " downloads files. Files saved to $PWD are persistent, and $PWD/bin is in $PATH. $PWD is a mercurial repository, "`revert " can be used to revert to a revision. See http://codu.org/projects/hackbot/fshg/ 20:40:38 well EgoBot's output definitely looks weird to me 20:40:58 i see none of your weirdness 20:41:49 20:34:41: Interpreter bfjoust deleted. 20:41:52 int-e: that problem really chose an awkward ordering of sets. 20:42:19 of strings. yes. 20:44:04 -!- centrinia has joined. 20:45:19 -!- AndoDaan has quit (Ping timeout: 272 seconds). 20:47:44 oerjan: I thought it was a very natural ordering. 20:48:22 it's awkward to produce programmatically. 20:48:34 at least in Haskell 20:49:52 sorted by increasing length, then lexicographically? 20:50:09 not lexicographically 20:50:12 olsner: "THE DEAD BOTS ARE RISING" sounds like a promising movie title 20:50:34 someone's tab completion is acting up *cough* 20:50:39 mroman: yes, or maybe DEAD BOT RISING 20:50:41 olsner: nah, substrings of length 1 in order of appearance, the those of length 2 in order of appearance, etc. 20:50:59 oh, so a stable sort on length, like? 20:53:03 something like that 20:53:36 i suppose sortBy (comparing length) would work to make that from a simpler construction 20:53:46 but so does concat.transpose 20:55:19 all of which are disgustingly long and require importing Data.List 21:23:19 what? isn't transpose in Prelude? 21:23:24 nope 21:23:29 ouch 21:23:42 neither are inits or tails 21:23:56 ok 21:24:08 although i found a reasonably short replacement for tails... 21:30:55 -!- idris-bot has quit (Quit: Terminated). 21:31:14 -!- Melvar has quit (Quit: rebooting). 21:32:24 i found a 45-46 char Prelude-only thing that constructs the substrings 21:32:40 which means it's shorter than the transpose version if you include the import 21:35:27 -!- Melvar has joined. 21:46:35 -!- idris-bot has joined. 21:49:39 better than mine 21:59:54 -!- Bicyclidine has quit (Ping timeout: 240 seconds). 22:08:21 `` perl -e '$_=1234;/.+(?{print"$&\n"})(*F)/' # I think the Perl people would also be happier with another order. 22:08:22 1234 \ 123 \ 12 \ 1 \ 234 \ 23 \ 2 \ 34 \ 3 \ 4 22:08:56 -!- Bicyclidine has joined. 22:09:13 int-e: what? the order is completely defined by the docs, and reliable 22:09:24 int-e: what order would you prefer? 22:10:24 b_jonas: I meant using another order in the specification of http://golf.shinh.org/p.rb?Prime+Substrings 22:12:31 `perl -e hello=~/.+(?{print$&," "})(?!)/ 22:12:32 hello hell hel he h ello ell el e llo ll l lo l o 22:12:39 `perl -e bravo=~/.+(?{print$&," "})(?!)/ 22:12:40 bravo brav bra br b ravo rav ra r avo av a vo v o 22:12:44 `perl -e bravo=~/.+?(?{print$&," "})(?!)/ 22:12:44 b br bra brav bravo r ra rav ravo a av avo v vo o 22:12:52 `perl -e bravo=~/.*\K.+(?{print$&," "})(?!)/ 22:12:53 o vo v avo av a ravo rav ra r bravo brav bra br b o vo v avo av a ravo rav ra r o vo v avo av a o vo v o 22:12:57 `perl -e bravo=~/.*\K.+?(?{print$&," "})(?!)/ 22:12:58 o v vo a av avo r ra rav ravo b br bra brav bravo o v vo a av avo r ra rav ravo o v vo a av avo o v vo o 22:13:13 you can get any order from regexen 22:13:22 well, maybe not any 22:13:29 sorted by length is probably more difficult 22:13:31 hmm 22:13:44 --> b r a v o br ra av vo bra rav avo brav ravo bravo 22:13:55 yeah... 22:13:57 it's unnatural! 22:14:00 I wonderr how to get that 22:15:59 it's something like a breadth first search 22:17:40 perl -e 'bravo=~/.{$_}(?{print"$&\n"})(*F)/ for(1..5)' 22:17:45 `` perl -e 'bravo=~/.{$_}(?{print"$&\n"})(*F)/ for(1..5)' 22:17:46 Eval-group not allowed at runtime, use re 'eval' in regex m/.{1}(?{print"$&\n"})(*F)/ at -e line 1. 22:18:07 -!- nys has joined. 22:18:16 funny. works for me. 22:18:32 `run perl --version 22:18:32 ​ \ This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi \ (with 88 registered patches, see perl -V for more detail) \ \ Copyright 1987-2011, Larry Wall \ \ Perl may be copied only under the terms of either the Artistic License or the \ GNU General Public License, which may be found in the Perl 5 source kit 22:18:38 V. new. 22:19:07 Right. v5.20.1 here. 22:19:57 -!- `^_^ has joined. 22:20:23 but v5.14.2 on anagol, so it won't work there either 22:22:08 `` perl -e 'use re "eval";bravo=~/.{$_}(?{print"$&\n"})(*F)/ for(1..5)' 22:22:09 b \ r \ a \ v \ o \ br \ ra \ av \ vo \ bra \ rav \ avo \ brav \ ravo \ bravo 22:22:27 -!- Sprocklem has quit (Ping timeout: 250 seconds). 22:23:05 -!- nycs has quit (Ping timeout: 244 seconds). 22:23:38 How can you convert a timestamp in a text format (including the timezone) into a UNIX timestamp number, in a C code? 22:24:19 `run perl -e '@a = ("bravo"); while ($a[-1] =~ /\S\S/) { push @a, $a[-1] =~ s/(\S)(\S*)(\S)/$1$2 $2$3/rg; } print join(" ", @a)' # probably not a useful direction, but fun nevertheless 22:24:20 bravo brav ravo bra rav rav avo br ra ra av ra av av vo b r r a r a a v r a a v a v v o 22:25:23 I think the appropriate answer to that is "with difficulty", because POSIX strptime is entirely useless when it comes to time zones. 22:29:53 Then is there better way? 22:33:56 I think I've seen some attempts that are based on recognizing the time zone separately, (temporarily) doing tzset and parsing the rest via normal strptime. But that seems quite nasty. 22:34:53 How does that do? I require it to work both Windows and UNIX computers. 22:37:20 I somewhat suspect it wouldn't really work on Windows. 22:42:00 now if i only knew a good haskell golf prime test that worked up to 999... 22:42:14 also, if i could make my trivial one work on 0 and 1. 22:43:10 > nubBy(((>1).).gcd)[2..] 22:43:11 [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,... 22:43:35 not a list, a test hth 22:43:51 also nubBy is no good, it's not in Prelude. 22:44:47 :t nubBy 22:44:49 (a -> a -> Bool) -> [a] -> [a] 22:46:34 how bout using fermat's test and avoiding the 3 exceptions? 22:46:51 there are only 3? 22:47:15 under 1000, yes 22:47:16 but naive is better than that 22:47:40 yes, naive shorted and much slower 22:47:44 shorter 22:47:51 speed shouldn't be a problem? 22:48:51 it doesn't seem to be a problem, since i already ran one that failed because i forgot about 0 and 1 22:49:58 yeah. not a problem at all. 22:50:21 -!- AndoDaan has joined. 22:52:17 Argh. How annoying, the input isn't newline-terminated 22:53:35 success 22:54:27 but it feels too long, anyway 22:57:42 -!- boily has joined. 23:01:00 -!- oerjan has quit (Quit: Good night). 23:02:07 -!- Bicyclidine has quit (Ping timeout: 264 seconds). 23:07:55 -!- boily_ has joined. 23:10:02 Someone told me to use Kronisk but that is C++ and not C. 23:11:12 -!- Bicyclidine has joined. 23:13:24 -!- boily_ has quit (Quit: DUPLICATE CHICKEN). 23:26:55 -!- nys has quit (Ping timeout: 264 seconds). 23:27:18 -!- nys has joined. 23:32:05 FireFly: I would estimate that roughly 98% of the problems are missing the newline on the last line. 23:32:29 -!- mihow has quit (Quit: mihow). 23:41:09 -!- `^_^ has quit (Quit: This computer has gone to sleep). 23:52:54 -!- Phantom_Hoover has joined.