2012-10-07T00:09:43 *** cyphase has joined #aichallenge 2012-10-07T00:52:53 *** mpstyler has joined #aichallenge 2012-10-07T02:11:51 *** pairofdice has joined #aichallenge 2012-10-07T03:05:56 *** mpstyler has quit IRC (Read error: Connection timed out) 2012-10-07T03:19:14 *** loglog has joined #aichallenge 2012-10-07T03:20:32 *** foRei has joined #aichallenge 2012-10-07T03:22:41 *** mpstyler has joined #aichallenge 2012-10-07T03:32:12 *** mceier has quit IRC (Ping timeout: 244 seconds) 2012-10-07T03:34:03 *** mceier has joined #aichallenge 2012-10-07T04:03:52 *** curious_ has joined #aichallenge 2012-10-07T04:04:31 Hello from curious :P 2012-10-07T04:06:31 *** curious_ has quit IRC (Client Quit) 2012-10-07T05:09:12 *** fallheur has joined #aichallenge 2012-10-07T05:09:20 hello 2012-10-07T05:10:05 is there anything new about the next challenge? 2012-10-07T05:10:55 nobody here? 2012-10-07T05:11:41 sorry i didn't want to trouble your sleep 2012-10-07T05:11:59 bye 2012-10-07T05:12:23 *** fallheur has quit IRC (Client Quit) 2012-10-07T05:15:04 *** bqf has quit IRC (Ping timeout: 240 seconds) 2012-10-07T06:38:24 *** bqf has joined #aichallenge 2012-10-07T07:31:26 *** kilae has joined #aichallenge 2012-10-07T07:31:33 *** Kakwa has joined #aichallenge 2012-10-07T07:32:07 *** mpstyler has quit IRC (Read error: Operation timed out) 2012-10-07T07:32:38 *** mpstyler has joined #aichallenge 2012-10-07T07:36:15 *** ChanServ has quit IRC (*.net *.split) 2012-10-07T07:45:42 *** ChanServ has joined #aichallenge 2012-10-07T07:45:42 *** card.freenode.net sets mode: +o ChanServ 2012-10-07T08:10:50 *** Scooper has joined #aichallenge 2012-10-07T08:50:01 *** loglog has quit IRC (Remote host closed the connection) 2012-10-07T08:50:16 *** loglog has joined #aichallenge 2012-10-07T08:51:00 *** mpstyler has quit IRC (Read error: Operation timed out) 2012-10-07T08:57:26 *** thestinger has joined #aichallenge 2012-10-07T08:57:41 *** mpstyler has joined #aichallenge 2012-10-07T08:58:26 *** thestinger has quit IRC (Read error: Connection reset by peer) 2012-10-07T08:59:52 *** thestinger has joined #aichallenge 2012-10-07T09:14:54 *** mleise has quit IRC (Quit: Leaving.) 2012-10-07T09:18:44 *** kilae_ has joined #aichallenge 2012-10-07T09:20:40 *** kilae has quit IRC (Ping timeout: 260 seconds) 2012-10-07T09:48:08 *** thestinger has quit IRC (Ping timeout: 252 seconds) 2012-10-07T09:53:05 *** thestinger has joined #aichallenge 2012-10-07T10:26:21 *** mleise has joined #aichallenge 2012-10-07T11:24:45 *** kilae has joined #aichallenge 2012-10-07T11:26:17 *** kilae_ has quit IRC (Ping timeout: 245 seconds) 2012-10-07T11:44:19 *** Accoun has quit IRC (Read error: Connection reset by peer) 2012-10-07T11:44:40 *** Accoun has joined #aichallenge 2012-10-07T11:46:41 *** Sideslitter has joined #aichallenge 2012-10-07T11:50:37 *** thestinger is now known as strcat 2012-10-07T11:56:03 *** Sideslitter has quit IRC (Quit: Page closed) 2012-10-07T11:58:42 *** UncleVasya has joined #aichallenge 2012-10-07T12:03:40 @later tell mcstar I've added a simple AI for the card game. Now playable (with some bugs). 2012-10-07T12:03:40 UncleVasya: I think that worked... 2012-10-07T12:04:33 *** ermau has quit IRC (Remote host closed the connection) 2012-10-07T12:05:22 UncleVasya: s/bugs/character/ 2012-10-07T12:06:57 huh? 2012-10-07T12:08:33 *** mcstar has joined #aichallenge 2012-10-07T12:08:39 did somebody call my name? 2012-10-07T12:09:36 strcat: gtkperf takes 6 seconds under awesome vs. the 20 under kde 2012-10-07T12:09:41 heh 2012-10-07T12:09:48 mcstar: still slower than intel! :P 2012-10-07T12:09:58 although, without SNA on it takes about that long 2012-10-07T12:09:59 slowe than your machine, yes 2012-10-07T12:10:04 but not that terribly slow 2012-10-07T12:10:15 mcstar: well, in the XDC2012 talks they explained it 2012-10-07T12:10:22 UncleVasya: what kind of ai? 2012-10-07T12:10:23 2d "acceleration" is usually slower than software rendering 2012-10-07T12:10:33 on every single driver that's not intel+sna, it's slower 2012-10-07T12:10:44 by "acceleration" what is really meant is "offloading" 2012-10-07T12:10:52 strcat: decelerations is acceleration too 2012-10-07T12:10:57 -s 2012-10-07T12:11:03 just with a - sign 2012-10-07T12:11:10 mcstar: stupid random ai 2012-10-07T12:11:23 @last 2012-10-07T12:11:23 strcat: [12:11:10] mcstar: stupid random ai 2012-10-07T12:11:26 @last --help 2012-10-07T12:11:26 strcat: (last [--{from,in,on,with,without,regexp} ] [--nolimit]) -- Returns the last message matching the given criteria. --from requires a nick from whom the message came; --in requires a channel the message was sent to; --on requires a network the message was sent on; --with requires some string that had to be in the message; --regexp requires a regular expression the message must match; (1 more message) 2012-10-07T12:11:43 UncleVasya: random in what way? 2012-10-07T12:12:15 mcstar: he randomly decides what to do: check, lie, say truth. 2012-10-07T12:12:24 @last --regexp "/(?:[^`';]+|([`'])(?:\1\1|.)*\1)+;/" 2012-10-07T12:12:24 strcat: Error: I couldn't find a message matching that criteria in my history of 1000 messages. 2012-10-07T12:12:54 lies 2012-10-07T12:13:21 strcat: are you learning regexp? 2012-10-07T12:14:04 no :P 2012-10-07T12:14:21 mcstar: I've just made another commit, previous was a wrong one (didn't compiled). 2012-10-07T12:14:22 meaning, you are already fluent in it? 2012-10-07T12:14:35 *** Simas_J has joined #aichallenge 2012-10-07T12:14:43 yes, excluding the evil perl extensions like infinite recursion 2012-10-07T12:15:50 im ashamed that im ignorant of regexp 2012-10-07T12:16:20 *** Accoun has quit IRC (Ping timeout: 255 seconds) 2012-10-07T12:16:22 mcstar: go have fun with ragel :P 2012-10-07T12:16:45 strcat: like, grep -ragel, awk -ragel? 2012-10-07T12:16:52 mcstar: http://www.complang.org/ragel/ 2012-10-07T12:16:59 im mean,surely they can deal with ragel, cant they? XD 2012-10-07T12:17:01 it can draw graphviz graphs of the state machine 2012-10-07T12:17:24 *** ermau has joined #aichallenge 2012-10-07T12:17:24 *** ermau has joined #aichallenge 2012-10-07T12:17:32 anyway that's an extension of the usual regex 2012-10-07T12:17:43 oh 2012-10-07T12:17:48 i thought it was totally new 2012-10-07T12:18:01 at least it sounded that way when you told me about it 2012-10-07T12:18:14 like a new system for pattern matching 2012-10-07T12:18:23 well it's a different regex dialect, but it's special 2012-10-07T12:18:33 lets you embed actions into the state machine 2012-10-07T12:18:50 strcat: what does your regexp above mean? 2012-10-07T12:19:26 that has backreferences so it's not really a regexp :P 2012-10-07T12:19:34 * strcat 's failed attempt at freezing contestbot 2012-10-07T12:19:47 lol 2012-10-07T12:19:54 mcstar: (?:foo) is just a grouping 2012-10-07T12:20:00 like parens as dividers in C/haskell 2012-10-07T12:20:03 why the / / ? 2012-10-07T12:20:12 that's the syntax supybot wants 2012-10-07T12:20:21 not part of the regex 2012-10-07T12:20:32 ()+; 2012-10-07T12:20:47 [abc] is a set 2012-10-07T12:20:51 [^abc] is a set complement 2012-10-07T12:20:57 + means 1 or more 2012-10-07T12:20:58 yeah 2012-10-07T12:21:05 ah, yeah 2012-10-07T12:21:10 * any number of times 2012-10-07T12:21:11 * is kleene star (zero or more) 2012-10-07T12:21:18 also, greedy 2012-10-07T12:21:27 the more the better? 2012-10-07T12:21:36 ; ? 2012-10-07T12:21:43 just a character to match 2012-10-07T12:21:57 and why did you put it in? 2012-10-07T12:22:00 [^`';] means 'anything that's not a backtick, apostrophe or semicolon' 2012-10-07T12:22:07 little hackers :D 2012-10-07T12:22:21 | is or 2012-10-07T12:22:25 yes 2012-10-07T12:22:31 . is any character 2012-10-07T12:22:39 and \1 are backreferences and you don't want to think about them 2012-10-07T12:22:45 and I failed at using them apparently 2012-10-07T12:22:49 because it finished way too quickly :( 2012-10-07T12:23:13 strcat: it is still not clear to me the use of ?: 2012-10-07T12:23:26 () is a group 2012-10-07T12:23:30 it actually extracts something 2012-10-07T12:23:40 (?:foo) is just a group without extracting anything 2012-10-07T12:23:58 can you give a small example? 2012-10-07T12:24:19 >>> m = re.match("(\w+) (\d+)", "abcdef 123456") 2012-10-07T12:24:21 >>> m.groups() 2012-10-07T12:24:23 ('abcdef', '123456') 2012-10-07T12:24:43 (* upd 04.10.2012: CODE BECAME VERY UGLY. DO NOT SHOW ANYONE! *) 2012-10-07T12:24:47 with (?:\d+), it won't capture the value 2012-10-07T12:25:04 *** Simas_J has quit IRC (Read error: Connection reset by peer) 2012-10-07T12:25:26 oh and I missed an r there :P 2012-10-07T12:25:50 r"(\w+) (\d+)" 2012-10-07T12:26:05 strcat: so it matches it and discards it? 2012-10-07T12:26:11 mcstar: yeah 2012-10-07T12:26:19 why do you need that? 2012-10-07T12:26:26 speed I guess 2012-10-07T12:26:28 i mean, why not just match what you want? 2012-10-07T12:26:46 you might want to parse a date 2012-10-07T12:27:09 and capture each part separately 2012-10-07T12:27:11 so you'd use () 2012-10-07T12:27:18 ok 2012-10-07T12:27:22 but there might be some group you want to ignore, thus (?:) 2012-10-07T12:27:23 whats \d \w? 2012-10-07T12:27:28 \d -> digit 2012-10-07T12:27:30 still backreferences? 2012-10-07T12:27:32 \w -> word 2012-10-07T12:27:47 \d is equivalent to [0-9], usually 2012-10-07T12:28:05 a word cannot contain digits? 2012-10-07T12:28:16 it can 2012-10-07T12:28:20 well 2012-10-07T12:28:32 \d and \w depend on the dialect :P 2012-10-07T12:29:39 does pacman understand regexp? 2012-10-07T12:29:42 i forgot 2012-10-07T12:29:44 mcstar: yes 2012-10-07T12:29:45 i think it does 2012-10-07T12:29:54 have to quote it so the shell doesn't interfere 2012-10-07T12:30:00 yeah 2012-10-07T12:30:18 zsh globbing is nice 2012-10-07T12:30:25 zsh can do regexp too :P 2012-10-07T12:30:25 i need a printed reference though 2012-10-07T12:30:44 mcstar: I remember some of them just cause they're the ls -F symbols 2012-10-07T12:31:21 echo "test... test... test..." | perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see' 2012-10-07T12:31:21 | is a fifo, @ is a symlink, = is a socket, / is a dir, * is executable 2012-10-07T12:31:28 and > is a .... door 2012-10-07T12:31:33 no idea what the fuck a door is 2012-10-07T12:31:36 but I remember. 2012-10-07T12:31:41 theres - too 2012-10-07T12:31:45 isnt there? 2012-10-07T12:31:54 not in ls -F 2012-10-07T12:31:55 thats a file i think 2012-10-07T12:32:06 yeah, thats the normal ls 2012-10-07T12:32:10 zsh extends that ofc though 2012-10-07T12:32:12 ls -l 2012-10-07T12:32:18 ls -lF 2012-10-07T12:32:46 for people without colors :P 2012-10-07T12:33:41 what does that line to UncleVasya ? 2012-10-07T12:34:01 i know :-@ 2012-10-07T12:34:10 rm -rf / 2012-10-07T12:34:19 mcstar: you are talking about scary lines :D 2012-10-07T12:34:21 * strcat ran it in a chroot 2012-10-07T12:35:25 anyway, whats that? 2012-10-07T12:35:37 obviously a perfectly normal perl program 2012-10-07T12:35:41 but still, wtf is that 2012-10-07T12:36:17 somehow runs rm -rf / 2012-10-07T12:36:18 .. 2012-10-07T12:36:29 it is an old and famouse joke from linux.org.ru. 2012-10-07T12:36:47 you can safely run it outside of a chroot though 2012-10-07T12:36:51 doesn't do --no-preserve-root 2012-10-07T12:36:57 one guy asked on forum to help to debug this program. 2012-10-07T12:37:05 i get that 2012-10-07T12:37:07 its funny 2012-10-07T12:37:16 he could actually delete a users home 2012-10-07T12:37:20 and some linux users launched it as roots. 2012-10-07T12:37:22 contents of it.. 2012-10-07T12:37:27 yeah 2012-10-07T12:37:29 and were very angry then 2012-10-07T12:37:45 i just dont understand how does that transform to a command 2012-10-07T12:37:51 and what will execute it 2012-10-07T12:37:57 apprently, the shell will 2012-10-07T12:38:23 there is a detailed explanation but its on Russian. 2012-10-07T12:38:30 in russian 2012-10-07T12:38:47 *yep, in, thanks 2012-10-07T12:39:01 i dont think that echo has any significance 2012-10-07T12:39:13 it doesn't 2012-10-07T12:39:31 http://lurkmore.to/Rm_-rf 2012-10-07T12:42:32 because that it is the language of voodoo 2012-10-07T12:43:06 :) 2012-10-07T12:45:19 i'd delete perl from my system if arch wouldnt depend on it 2012-10-07T12:45:52 also, i hope weechat is not easily hackable 2012-10-07T12:46:16 one buffer overflow, and someone has root access :) 2012-10-07T12:46:32 mcstar: arch's python package depends on perl 2012-10-07T12:46:38 through openssl :P 2012-10-07T12:46:55 i think the system tools also do 2012-10-07T12:47:02 like the initscripts? 2012-10-07T12:47:08 initscripts is dead 2012-10-07T12:47:29 what do you mean? 2012-10-07T12:47:33 it's dead :P 2012-10-07T12:47:39 not on my system 2012-10-07T12:47:40 *** coeus has joined #aichallenge 2012-10-07T12:47:56 mcstar: well it's not developed any more beyond some temporary maintenance 2012-10-07T12:48:12 latest ISO switched to systemd by default, next step is removing initscripts from base 2012-10-07T12:48:33 well, initscripts depends on systemd-tools 2012-10-07T12:48:38 but i dont have systemd-tools 2012-10-07T12:48:42 systemd provides it 2012-10-07T12:48:47 oh 2012-10-07T12:48:50 mcstar: but it only uses some utilities from it 2012-10-07T12:49:00 not actually systemd itself 2012-10-07T12:49:14 look in /usr/lib/tmpfiles.d/ for an example 2012-10-07T12:49:23 it uses systemd-tmpfiles for that 2012-10-07T12:50:20 strcat: isnt pacman -Sg core supposed to list all core packages? 2012-10-07T12:50:31 -Sl core 2012-10-07T12:50:40 -Sg base would work 2012-10-07T12:51:03 systemd package provides udev, systemd-tools, etc. 2012-10-07T12:51:03 "Display all the members for each package group specified." 2012-10-07T12:51:08 ah 2012-10-07T12:51:14 it is not called core anymore? 2012-10-07T12:51:20 core is the repo 2012-10-07T12:51:22 oh wait, i get it 2012-10-07T12:51:24 base is the group within that 2012-10-07T12:51:24 yeash 2012-10-07T12:51:32 base is the group from repo core 2012-10-07T12:51:40 and base-devel 2012-10-07T12:51:47 and some stuff isn't in either 2012-10-07T12:53:18 well 2012-10-07T12:53:23 im trying to make a regexp 2012-10-07T12:59:30 hm 2012-10-07T13:04:40 for what? :P 2012-10-07T13:09:41 im failing 2012-10-07T13:09:45 mcstar: a regexp implementation? 2012-10-07T13:09:54 mcstar: what do you need to match 2012-10-07T13:10:02 that's easy to fail with ^^ 2012-10-07T13:10:13 SET=''; typeset -U SET; SET=`pacman -Slq core | xargs pacman -Si | grep '^Depends' | awk -F: '{print $2}' | tr ' ' '\n'` 2012-10-07T13:10:23 mcstar: expac. 2012-10-07T13:10:25 im trying to list the unique dependencies of all core packages 2012-10-07T13:11:09 on gentoo, the core packages have no dependencies, they are all just listed in a big text file 2012-10-07T13:11:28 gentoo can go to hell XD 2012-10-07T13:11:28 and they include stuff like python 2012-10-07T13:13:13 strcat: can you show me a working solution? 2012-10-07T13:13:21 so, all depends of packages in core? 2012-10-07T13:13:23 anyway, whats expac? 2012-10-07T13:13:26 yeah 2012-10-07T13:13:42 oh i guess core is the same as the big text file 2012-10-07T13:13:47 expac -S "%r %D" | grep '^core' | cut -f2- -d ' ' 2012-10-07T13:14:10 maybe there's a way to tell expac a repo 2012-10-07T13:14:40 whats expac? 2012-10-07T13:14:51 a tool like eix on gentoo 2012-10-07T13:14:56 whats eix? 2012-10-07T13:14:59 it queries the database quickly 2012-10-07T13:15:08 strcat: do it with pacman 2012-10-07T13:15:08 and in computer readable layout 2012-10-07T13:15:25 mcstar: ;[ 2012-10-07T13:15:25 but it is not part of a default installation 2012-10-07T13:15:39 what package does expac live in? 2012-10-07T13:15:46 nvm 2012-10-07T13:16:12 strcat: thats not a solution 2012-10-07T13:16:16 i said 'unique' 2012-10-07T13:16:25 then... use "uniq" ? 2012-10-07T13:16:38 *** jacob_strauss has joined #aichallenge 2012-10-07T13:16:41 mleise: first you need to split lines 2012-10-07T13:16:42 expac -S "%r %D" | grep '^core' | cut -f2- -d ' ' | tr ' ' '\n' | sort -u 2012-10-07T13:16:59 some are versioned deps though 2012-10-07T13:17:12 strcat: now, why doesnt zsh's set not working for me? 2012-10-07T13:17:29 it works like an array 2012-10-07T13:17:37 a+=(foo) 2012-10-07T13:17:39 *** jacob_strauss has quit IRC (Client Quit) 2012-10-07T13:17:39 appends 2012-10-07T13:17:49 mcstar: you have to tell it to split the input 2012-10-07T13:18:02 oh 2012-10-07T13:18:06 thats 1 entry? 2012-10-07T13:18:11 yeah 2012-10-07T13:18:13 here 2012-10-07T13:18:13 fuck 2012-10-07T13:18:19 ${=$(some command)} 2012-10-07T13:18:20 splits it 2012-10-07T13:18:30 local -U foo 2012-10-07T13:18:41 foo=${=$(something)} 2012-10-07T13:18:51 *** jacob_strauss has joined #aichallenge 2012-10-07T13:19:08 well, missing () 2012-10-07T13:19:11 close enough :P 2012-10-07T13:19:15 anyway my command works 2012-10-07T13:19:33 mcstar: you probably want recursive deps though 2012-10-07T13:19:37 so, pactree 2012-10-07T13:19:56 pactree -u pkg 2012-10-07T13:20:04 gives recursive, unique deps 2012-10-07T13:21:11 strcat: can this be made simpler? grep '^Depends' | awk -F: '{print $2}' | tr ' ' '\n' 2012-10-07T13:21:18 i think awk could do it alone 2012-10-07T13:21:21 yes 2012-10-07T13:21:39 /pattern/{ print $2 } 2012-10-07T13:22:58 *** mleise1 has joined #aichallenge 2012-10-07T13:23:26 *** mleise has quit IRC (Read error: Connection reset by peer) 2012-10-07T13:23:40 expac -S "%r %n" | grep '^core' | cut -f2- -d ' ' | xargs -n 1 pactree -su | sort -u 2012-10-07T13:23:42 recursive deps 2012-10-07T13:24:13 and it lists providers 2012-10-07T13:24:13 slow 2012-10-07T13:24:15 systemd systemd-tools 2012-10-07T13:24:19 mcstar: not *that* slow :P 2012-10-07T13:24:25 no output yet 2012-10-07T13:24:35 still none 2012-10-07T13:24:39 at last 2012-10-07T13:24:39 it will redo all the work for each package 2012-10-07T13:25:55 *** wentam has quit IRC (Remote host closed the connection) 2012-10-07T13:30:18 mleise1: watched prometheus in good quality 2012-10-07T13:32:03 mcstar: yes, I watched it in a cinema. which is pretty good and 3d :-) 2012-10-07T13:32:43 but some scenes were to fast and too dusty for 3D to work out. it was just hard on the eye 2012-10-07T13:33:01 i know you watched it in 3d 2012-10-07T13:34:48 I wonder if you can just evolve a regex 2012-10-07T13:34:56 anyway except for a few wide angles you didn't miss much. how did you first watch it? VCD? 2012-10-07T13:34:56 probably too slow 2012-10-07T13:39:12 caugh cam caugh 2012-10-07T13:39:36 my opining didnt change much 2012-10-07T13:39:59 sucks 2012-10-07T13:39:59 it visuals turned out to be quite detailed/spectacular 2012-10-07T13:40:06 but the story still sucks 2012-10-07T13:40:08 mostly 2012-10-07T13:40:13 opinion* 2012-10-07T13:40:25 it? 2012-10-07T13:40:28 not it 2012-10-07T13:40:31 the 2012-10-07T13:40:34 the movie sucks. 2012-10-07T13:40:44 sort of 2012-10-07T13:40:49 its a mess 2012-10-07T13:41:02 too much black goo 2012-10-07T13:41:31 those 'scientist', fifield and milburn are literal jokes 2012-10-07T13:42:26 strcat: do you like the alien tetralogy otherwise? 2012-10-07T13:42:55 you belong to a different generation than mleise1 and i 2012-10-07T13:44:15 ah, and i absolutely dislike noomi rapace 2012-10-07T13:44:33 as i said, i say that swedish trilogy 2012-10-07T13:44:35 it was ok 2012-10-07T13:44:45 weird ugly hacker girl, whatever 2012-10-07T13:44:53 hehe, yes. they had to cater to the sitcom watchers I guess ;) 2012-10-07T13:44:57 but in this movie, they tried to make her good looking 2012-10-07T13:45:04 well, that doesnt fit her well 2012-10-07T13:45:20 say->saw 2012-10-07T13:45:31 you should have seen the original movie, not the remake of milennium trilogy 2012-10-07T13:45:34 the real shit 2012-10-07T13:45:47 then again i didn't read the books ^^ 2012-10-07T13:45:51 mcstar: I've still seen all the alien movies, but I don't have any nostalgia for them 2012-10-07T13:45:51 when did they make that? 2012-10-07T13:45:52 :P 2012-10-07T13:46:32 strcat: what about blade runner? do you like that? 2012-10-07T13:46:36 not long before "the girl with the dragon tatoo" or what it was called 2012-10-07T13:46:42 mcstar: yes but that's a classic 2012-10-07T13:46:45 imo aliens isn't 2012-10-07T13:46:50 they are 2012-10-07T13:46:54 :) 2012-10-07T13:46:55 nooooo :) 2012-10-07T13:47:03 yes they are 2012-10-07T13:47:05 http://en.wikipedia.org/wiki/Millennium_series#Film_adaptations 2012-10-07T13:47:07 you ignorant child 2012-10-07T13:47:08 only a classic if strcat likes it 2012-10-07T13:47:09 XD 2012-10-07T13:47:54 mleise1: i dont understand, i said ive seen the trilogy 2012-10-07T13:48:20 mleise1: do you mean by original, the miniseries? 2012-10-07T13:48:52 yes, the original 2012-10-07T13:49:17 the original is always more classic, like "open your eyes" or "stauffenberg" 2012-10-07T13:49:32 remakes are cheap -.- 2012-10-07T13:49:34 is that different form the noomi rapace's 3 movies? 2012-10-07T13:49:49 and Mikael Blomkvist, that ugly man 2012-10-07T13:49:49 i haven't seen them 2012-10-07T13:50:15 it had some rather harsh scenes in it 2012-10-07T13:50:20 (the original) 2012-10-07T13:50:29 where you want to turn away 2012-10-07T13:50:51 mleise1: wait, i think theres a misunderstanding 2012-10-07T13:50:51 and it was told like a deep thriller 2012-10-07T13:51:22 mleise1: the one you saw, did noomi play the main actres' role? 2012-10-07T13:51:28 no 2012-10-07T13:51:46 I've only seen the swedish ones 2012-10-07T13:51:55 me too 2012-10-07T13:52:02 why would I watch a crappy american remake, censored for an american audience? :P 2012-10-07T13:52:04 but apparently, not the 'original' 2012-10-07T13:52:06 I bet they left out those rape scenes entirely 2012-10-07T13:52:49 entire movie is probably a chase scene 2012-10-07T13:52:50 mcstar: oh wait that swedish actress is noomy 2012-10-07T13:52:55 noomi 2012-10-07T13:52:58 fuck 2012-10-07T13:53:00 great 2012-10-07T13:53:08 and she played in prometheus? 2012-10-07T13:53:10 what? 2012-10-07T13:53:10 so theres no other movie 2012-10-07T13:53:14 I'm confused 2012-10-07T13:53:14 mleise1: yes! 2012-10-07T13:53:25 mleise1: thats what i meant by misunderstanding 2012-10-07T13:53:31 i kept rereading the wiki pacge 2012-10-07T13:53:34 page* 2012-10-07T13:53:54 lol, but at least we know now that there is a remake with Daniel Craig 2012-10-07T13:54:02 i knew that already 2012-10-07T13:54:08 (not as the girl of course) 2012-10-07T13:54:10 its been in the news for quite some time 2012-10-07T13:55:16 ok, so where can I play UncleVasya's card game? 2012-10-07T13:55:34 clone the repo, and load/compile it 2012-10-07T13:56:19 so caml works as an interpreter like python? 2012-10-07T13:56:29 not like python 2012-10-07T13:56:36 but yeah, it compiles to bytecode 2012-10-07T13:56:44 damn someone mentioned haskell in the d newsgroup again 2012-10-07T13:56:57 and you can compile to machine code too 2012-10-07T13:57:16 mleise1: they should mention rust instead 2012-10-07T13:57:18 mleise1: https://github.com/UncleVasya/DoYouBelieve 2012-10-07T13:57:20 crappy trolls 2012-10-07T13:57:23 pfff 2012-10-07T13:57:28 rust away 2012-10-07T13:57:36 rasta wat 2012-10-07T13:57:40 rasta way 2012-10-07T13:57:43 . 2012-10-07T13:57:44 there is one guy, bearophile, who continually mentions Rust 2012-10-07T13:57:52 and what they did better there 2012-10-07T13:58:02 everything :) 2012-10-07T13:58:10 um... no 2012-10-07T13:58:36 mleise1: i think there is a HUGE difference between your expectations and what you'll see :) 2012-10-07T13:59:10 goo is the new systems programming language 2012-10-07T13:59:12 D doesn't even have lightweight threads :p 2012-10-07T13:59:20 mleise1: btw, there is an exe-file on github too ;) 2012-10-07T13:59:39 what a great thing, lets provide and exe! 2012-10-07T13:59:41 UncleVasya: wait a moment, I have to discuss something ^^ 2012-10-07T13:59:44 an* 2012-10-07T13:59:45 let alone supervision trees 2012-10-07T13:59:46 strcat: no 2012-10-07T13:59:51 wat? 2012-10-07T13:59:53 it doesn't 2012-10-07T13:59:54 but it has parallel foreach 2012-10-07T14:00:01 and message passing 2012-10-07T14:00:05 so does C++ 2012-10-07T14:00:09 and worker threads 2012-10-07T14:00:10 library features. 2012-10-07T14:00:28 yes, all in the library, but the language uses thread local storage by default 2012-10-07T14:00:37 D can't spawn 1 thread per connection, or task - you have to write a server with horrible async stuff :P 2012-10-07T14:00:43 and there is the shared keyword that was never developed to the end ^^ 2012-10-07T14:01:12 mleise1: and rust has no sharing between tasks at all, it has copy-free moves of ownership 2012-10-07T14:01:13 mcstar: :-P 2012-10-07T14:01:19 strcat: well, the only server written in D that I know is vibe.d and it is fast 2012-10-07T14:01:26 probably uses async stuff 2012-10-07T14:01:33 which is really painful to write 2012-10-07T14:01:40 not in f# 2012-10-07T14:01:52 async tasks are as natural as 2 + 2 2012-10-07T14:02:06 mcstar: I specifically meant async callbacks + event-loop 2012-10-07T14:02:14 strcat: in D you have immutable data as well, which allows you to move this data between threads as well 2012-10-07T14:02:38 it is transitive, so there can't be a pointer in it which references mutable data 2012-10-07T14:02:48 mleise1: but they aren't lightweight tasks 2012-10-07T14:02:50 also, D has a horrible GC, i find myself not using it because it really sucks with strings 2012-10-07T14:02:52 it's not the same thing 2012-10-07T14:03:19 mcstar: shhh don't mention the GC 2012-10-07T14:03:30 i was paraphrasing you XD 2012-10-07T14:03:33 D also doesn't have ADTs yet 2012-10-07T14:03:41 or gadts 2012-10-07T14:03:47 or functors 2012-10-07T14:03:56 and type classes are a lot less painful to use than templates 2012-10-07T14:04:04 what's functor? a function that creates an object? 2012-10-07T14:04:12 no 2012-10-07T14:04:24 mleise1: rust also has fully safe pointers/references 2012-10-07T14:04:24 in ocaml, it is mainly a parameterized module 2012-10-07T14:04:30 it's impossible to ever dereference a null pointer 2012-10-07T14:04:38 in haskell, it something you can 'map over' 2012-10-07T14:04:40 and you can't end up with dangling pointers 2012-10-07T14:04:43 yes I miss not-null pointers in D 2012-10-07T14:04:46 it's all analyzed at compile-time 2012-10-07T14:05:03 borrowed references are lightweight pointers + language support for unique/shared boxes 2012-10-07T14:05:20 strcat: how do you compare rust and go? 2012-10-07T14:05:31 go has no generics - preiod 2012-10-07T14:05:41 haha i'm soo ignorant 2012-10-07T14:05:41 go requires global gc, no generics, every type is nullable 2012-10-07T14:05:47 no generics, no type classes, just void * basically 2012-10-07T14:05:54 i wonder what were they trying to accomplish 2012-10-07T14:05:54 go is a better java 2012-10-07T14:05:58 google loves java 2012-10-07T14:06:06 go is java without OOP 2012-10-07T14:06:09 but it's slower. 2012-10-07T14:06:22 i dont see the benefits so far 2012-10-07T14:06:29 are you going to list them too? 2012-10-07T14:06:34 mcstar: over java? :P 2012-10-07T14:06:43 no, in general 2012-10-07T14:06:50 what are the benefits of goo 2012-10-07T14:06:54 lightweight threads, small/simple language 2012-10-07T14:07:00 go is a product for a special type of application that runs on multiple servers 2012-10-07T14:07:04 *** kilae_ has joined #aichallenge 2012-10-07T14:07:09 mleise1: or, one server 2012-10-07T14:07:13 as far as I've heard 2012-10-07T14:07:13 but it's a DSL for servers 2012-10-07T14:07:30 cause, ppl really hype it 2012-10-07T14:07:40 yes, agreed. you need to work in this area to really see the benefits I guess 2012-10-07T14:07:55 mleise1: well, rust has those lightweight tasks too 2012-10-07T14:08:03 also, rust is alpha 2012-10-07T14:08:05 go will only be successful to any extent, because google made it 2012-10-07T14:08:06 goo is not 2012-10-07T14:08:09 for me it is like: I'm fine with the language I use, what does go offer me? no generics, meh. 2012-10-07T14:08:22 *** kilae has quit IRC (Ping timeout: 246 seconds) 2012-10-07T14:08:24 mcstar: rust has safety, type classes, supervision trees, etc. NOW 2012-10-07T14:08:25 goo and rust, ... 2012-10-07T14:08:25 go doesn't 2012-10-07T14:08:56 go has an auto-indent tool and a built-in package manager that doesn't understand versions or stable releases 2012-10-07T14:09:05 it has google behind it 2012-10-07T14:09:08 that's why people hype it 2012-10-07T14:09:17 anyways Rust isn't production ready yet, but I'll keep an eye on it 2012-10-07T14:09:30 also I like IDE support 2012-10-07T14:09:43 mleise1: go actually has a great completion tool (gocode) :P 2012-10-07T14:09:48 maybe someone will make one for rust 2012-10-07T14:09:55 well, complete+doc tool 2012-10-07T14:10:09 https://github.com/mozilla/servo that's the reason for rust existing anyway 2012-10-07T14:10:10 UncleVasya: how do I compile it on Linux? With Ocaml? 2012-10-07T14:10:21 *** smjm has joined #aichallenge 2012-10-07T14:10:24 ocamlc file.ml 2012-10-07T14:10:32 ocamlopt file.ml 2012-10-07T14:10:36 strcat: I know, I ... read about it when I was on the D news group 2012-10-07T14:10:37 maybe with a -o 2012-10-07T14:10:40 mleise1: lol 2012-10-07T14:10:44 and you probably need the unix paxkage 2012-10-07T14:10:48 let me try it 2012-10-07T14:11:02 mleise1: anyway yeah, I wouldn't dare to use that in production :P 2012-10-07T14:11:08 they removed half the language from 0.3 -> 0.4 2012-10-07T14:11:29 they add dozens of features, then remove duplicate ones 2012-10-07T14:11:29 wow, some experiment went wrong, as I ... read on the D news group 2012-10-07T14:11:46 well they intend to do that 2012-10-07T14:12:05 https://github.com/mozilla/rust/issues?state=open bugs! 2012-10-07T14:12:06 mleise1: I do something like ocamlopt Unix.cmxa Str.cmxa DoYouBelieve.ml -o DoYouBelieve 2012-10-07T14:12:07 but I didn't really understand what they removed. I never heard of that 2012-10-07T14:12:45 well they had records and structs and enums 2012-10-07T14:12:47 "Warning 8: this pattern-matching is not exhaustive." 2012-10-07T14:12:50 and they are simplifying that down to one thing 2012-10-07T14:13:02 strcat: enums become structs ? 2012-10-07T14:13:13 mleise1: they aren't structs like C structs 2012-10-07T14:13:33 true programmers never pay attention to warnings :D 2012-10-07T14:13:51 ok then : "Error: Cannot find file Str.cmxa" 2012-10-07T14:14:24 true programmers never pay attention to errors... 2012-10-07T14:14:48 true programmers write in php 2012-10-07T14:14:50 UncleVasya: you make it easy on yourself :p 2012-10-07T14:15:00 I'd rather be a false programmer 2012-10-07T14:15:32 mleise1: :-[ 2012-10-07T14:15:41 do I need the "ocaml-text" package? 2012-10-07T14:15:45 mleise1: ocamlfind ocamlopt -package str -linkpkg DoYouBelieve.ml -o uv 2012-10-07T14:16:06 -o uv == UncleVasya ? 2012-10-07T14:16:15 whatever 2012-10-07T14:16:19 the exe's name 2012-10-07T14:16:32 "zsh: command not found: ocamlfind" ^^ 2012-10-07T14:16:36 install it 2012-10-07T14:16:40 its a must have 2012-10-07T14:17:10 ive been repramended on #ocaml for not using ocamlfind :( 2012-10-07T14:17:14 i'd much rather just install the missing dependency :p 2012-10-07T14:17:52 reprimand* 2012-10-07T14:18:09 UncleVasya: you said I only need Ocaml to run your game. I'm disillusioned now :( 2012-10-07T14:18:27 if you need ocaml-text then you need it 2012-10-07T14:18:27 It's the same as with my stuff and mcstar's suff 2012-10-07T14:18:31 i didnt say you didnt need it 2012-10-07T14:18:54 but ocaml-text is marked unstable 2012-10-07T14:19:06 mleise1: I'm on Windows need only Ocaml. 2012-10-07T14:19:16 oh i see 2012-10-07T14:19:35 I guess you have everything you need too 2012-10-07T14:20:00 but under Unix you must type them a little different. 2012-10-07T14:20:18 mleise1: why do you think you need ocaml-text? 2012-10-07T14:20:22 I'll try findlib then 2012-10-07T14:20:36 mcstar: because it doesn't find the module "Str" 2012-10-07T14:20:48 *** strcat is now known as thestinger 2012-10-07T14:20:49 yeah, but is it in ocaml-text? 2012-10-07T14:21:07 instead of Unix.cmxa just Unix or something like that. 2012-10-07T14:21:08 no 2012-10-07T14:21:15 it is in the ocaml base installation 2012-10-07T14:21:26 and it works now! 2012-10-07T14:21:28 wow, now I know that strcat is thestinger :) 2012-10-07T14:21:45 mleise1: /usr/lib/ocaml/str.a is owned by ocaml 4.00.0-2 2012-10-07T14:21:51 UncleVasya: my alter-ego 2012-10-07T14:22:07 mleise1: how dod you make it work? 2012-10-07T14:22:18 he used my command properly 2012-10-07T14:22:22 I used mcstar's ocamlfind command 2012-10-07T14:22:23 i think, very arrogantly 2012-10-07T14:22:27 yay! 2012-10-07T14:22:33 I'll write down the instructions to compile on github later 2012-10-07T14:22:36 "ocamlfind ocamlopt -package str -linkpkg DoYouBelieve.ml -o uv" 2012-10-07T14:22:45 whatever that does :) 2012-10-07T14:22:50 hmm 2012-10-07T14:22:51 Just Works (tm) 2012-10-07T14:23:04 nah, there must be a simpler way :) 2012-10-07T14:23:13 you dont have to supply the paths to the modules by hand 2012-10-07T14:23:15 thats what it does 2012-10-07T14:23:25 a convenience build tool 2012-10-07T14:23:37 the game wants me to put someting on the table 2012-10-07T14:23:49 you can load up the file from the toplevel too 2012-10-07T14:24:29 rlwrap ocaml 2012-10-07T14:24:33 i'll play my 3 eights 2012-10-07T14:24:33 #use "DoYouBelieve.ml";; 2012-10-07T14:24:40 mleise1: you can try that ^^ 2012-10-07T14:24:50 i claim that these are aces 2012-10-07T14:25:24 oh that's not accepted, alright. kings then 2012-10-07T14:25:42 i have no idea how that game is played 2012-10-07T14:25:47 and it is too textual for me 2012-10-07T14:26:02 its like playing chess through phone 2012-10-07T14:26:09 haha the ai believed me 2012-10-07T14:26:41 Exception: End_of_file. 2012-10-07T14:27:11 mcstar: give us a little context 2012-10-07T14:27:18 i tried to exit 2012-10-07T14:27:56 that's to be expected of a higher-level language 2012-10-07T14:28:03 what is? 2012-10-07T14:28:20 that UncleVasya didnt handle ^D? 2012-10-07T14:28:28 that it just registers an end-of-file instead of ^D doing the right thing 2012-10-07T14:28:29 mleise1: the goal is to give away all the cards. When you get 4 cards of the same rank, they dissapear. But Aces do not dissapear. So you must give away Aces and try to not let AI to give them to you. 2012-10-07T14:29:36 when do i get cards? 2012-10-07T14:29:41 so, this is not poker? 2012-10-07T14:29:50 i can only play texas holdem 2012-10-07T14:30:00 no it is not strip poker with hot ascii art ladies 2012-10-07T14:30:05 mleise1: if you try to lie and ai catchs you - you take all the cards from table 2012-10-07T14:30:40 when you try to catch ai on lie and he says truth - you take table too 2012-10-07T14:30:44 so if I never lie i win 2012-10-07T14:31:09 i just have to play fair and never wake a sleeping dog 2012-10-07T14:31:59 UncleVasya: pls, wrap your playgame into an exception handler 2012-10-07T14:32:09 mleise1: if you have Aces you cannot give'em away without lies. 2012-10-07T14:32:31 mcstar: I thought I did it... 2012-10-07T14:32:34 o shit, right. I have a few of them 2012-10-07T14:33:39 oh, and theres 3 non exhaustive pattern match warning 2012-10-07T14:33:41 oh no, i thought the round was over, so i accidentially claimed I have more kings after all kings were on the table 2012-10-07T14:33:46 i just git pulled 2012-10-07T14:34:11 i regularly get these in D too, and it doesn't even have pattern matching 2012-10-07T14:34:37 im getting this error: card_of_string: two symbols, dude 2012-10-07T14:34:43 "switch-case without default not allowed" 2012-10-07T14:35:04 mcstar: always name cards as two letters 2012-10-07T14:35:13 "6C" or "AC" 2012-10-07T14:35:18 but i only give it a number 2012-10-07T14:35:24 and a space between cards 2012-10-07T14:35:24 XD 2012-10-07T14:35:49 "Take my 2nd card" is not understood I fear 2012-10-07T14:35:59 im soo stupid with games, you cant believe it 2012-10-07T14:36:58 haha, the computer placed the 5th and 6th eight 2012-10-07T14:37:06 and got caught 2012-10-07T14:37:36 i am not more stupid than the ai then, great! 2012-10-07T14:38:27 mleise1: it's ok to have 5+ 'kings' on the table, maybe in the begining everyone lied so players still have true kings 2012-10-07T14:38:50 i will try to write a sudoku solver, if ill have the time 2012-10-07T14:38:56 norvig has a really short one 2012-10-07T14:39:02 (no, i didnt look at it) 2012-10-07T14:39:14 mcstar: ffconsultancy? 2012-10-07T14:39:27 mcstar: and i have seen a really optimized one ;) 2012-10-07T14:39:29 peter norvig, ai researcher/ google director 2012-10-07T14:39:40 there is a pretty little ocaml sudoku solver too. 15 lines or something 2012-10-07T14:39:49 19 2012-10-07T14:40:03 I can do it in 1 line of obfuscated C, I swear! 2012-10-07T14:40:03 no, i didnt look at it either 2012-10-07T14:40:19 hm 2012-10-07T14:40:25 how long a line? 2012-10-07T14:40:30 and did you write it? 2012-10-07T14:40:31 very long 2012-10-07T14:40:33 no 2012-10-07T14:40:38 great 2012-10-07T14:42:29 def r(a):i=a.find('0');~i or exit(a);[m in[(i-j)%9*(i/9^j/9)*(i/27^j/27|i%9/3^j%9/3)or a[j]for j in range(81)]or r(a[:i]+m+a[i+1:])for m in'%d'%5**18] from sys import*;r(argv[1]) 2012-10-07T14:42:36 Python 2012-10-07T14:43:47 and this solves a 9x9 sudoku? 2012-10-07T14:43:58 I see a lot of 9s 2012-10-07T14:44:03 I'll go with yes. 2012-10-07T14:44:16 but the sudoku is a 1 liners too 2012-10-07T14:44:22 the input/output 2012-10-07T14:44:25 -s 2012-10-07T14:44:34 great 2012-10-07T14:44:42 mleise1, still playing? :D 2012-10-07T14:44:48 havent thought about the algorithm to solve it at all 2012-10-07T14:44:58 #define S(t) for(n=0;n<9;v[n++]=0);for(n=0;n<81;n++)if(i[n]){z=1<80)goto d;for(n=p;i[++p];);s[p]=n;i[p]=1;goto f;d:z=p<81;printf("\n%s!\n\n",z?"Fail": "Success");for(n=0;n<81;){p=i[n];printf("%c %s" 2012-10-07T14:45:01 but i thought it will be a bit more complicated 2012-10-07T14:45:03 <- C 2012-10-07T14:45:20 less then minus C? 2012-10-07T14:45:30 UncleVasya: on and off, yes. I have no more aces, but player 2. is winning 2012-10-07T14:45:59 mleise1: do you know anything about these solutions' complexity? 2012-10-07T14:46:16 are they only conscise or, efficient too? 2012-10-07T14:46:30 ⬅ C 2012-10-07T14:46:52 꿝 2012-10-07T14:46:52 no I just looked them up, but the C one has an analysis too... 2012-10-07T14:47:10 "Fast enough. Solving and generating are practically instant on my 1Ghz Duron. Of course, there could be some cases which take longer..." 2012-10-07T14:48:08 lol 2012-10-07T14:48:12 great analysis 2012-10-07T14:48:16 how precise 2012-10-07T14:48:25 ;) 2012-10-07T14:49:46 dexter is coming up :P 2012-10-07T14:49:55 i used :P for maybe the first time 2012-10-07T14:50:05 it is suppsed to be a man with his tongue out 2012-10-07T14:50:10 or woman 2012-10-07T14:51:20 Dexter Season 7 Episode 2.zip356.9 MB 2012-10-07T14:51:24 heh, seems legit 2012-10-07T14:52:27 especially if it is in HD 2012-10-07T14:52:44 mleise1: do you watch it? 2012-10-07T14:52:53 thestinger and I are fans 2012-10-07T14:52:58 also im a much bigger one 2012-10-07T14:53:01 nope, I don't even know what it is 2012-10-07T14:53:22 mleise1: you are missing out 2012-10-07T14:53:25 big time 2012-10-07T14:53:32 :) 2012-10-07T14:53:56 The Bay Harbour Butcher 2012-10-07T14:54:00 The Dark Defender 2012-10-07T14:54:05 Seamonster 2012-10-07T14:54:26 maybe ill change my nick to that 2012-10-07T14:54:36 most ppl wont get the reference 2012-10-07T14:54:39 what Seamonster? 2012-10-07T14:54:46 thestinger: do you get the reference: seamonster? 2012-10-07T14:54:58 you'll sound like a loch ness fan 2012-10-07T14:55:06 lol, i will risk that 2012-10-07T14:55:16 i used it a lot when i was playing urbanterror 2012-10-07T14:55:17 or maybe more likelely odysseus 2012-10-07T14:55:30 lol, likely 2012-10-07T14:55:51 skylla and charybdis 2012-10-07T14:55:53 reminds me of lekkerkerker 2012-10-07T14:56:10 lecker kerker? 2012-10-07T14:56:12 name of the author of some paper i read or something 2012-10-07T14:56:19 today is the best day in tv 2012-10-07T14:56:26 why? 2012-10-07T14:56:28 dexter, boardwalk empire *and* the good wife 2012-10-07T14:56:32 every sunday atm :P 2012-10-07T14:56:35 delicious dungeon ? 2012-10-07T14:56:40 its monday here XD 2012-10-07T14:56:52 mcstar: stop living in the wrong part of the world 2012-10-07T14:56:54 thestinger: do you watch it on tv? 2012-10-07T14:57:13 yes 2012-10-07T14:57:33 it's not tv, it's hbo 2012-10-07T14:57:41 oh, steve buscemi? 2012-10-07T14:57:49 its tv vs. computer 2012-10-07T14:58:16 boardwalk empire is incredible 2012-10-07T14:58:30 have to watch it from the start through, it's very story/character-based 2012-10-07T14:58:34 though* 2012-10-07T14:58:35 i see, its a gangster story 2012-10-07T14:58:40 well, not just that 2012-10-07T14:58:51 i dont watch gangster sotries 2012-10-07T14:59:03 though, dexter will turn out to be one, at least this season 2012-10-07T14:59:05 mcstar: not gangsters :P 2012-10-07T14:59:09 politicians and businessmen :) 2012-10-07T14:59:14 i think deb will use dexter to get rid of the mob 2012-10-07T14:59:32 no she'll fuck him 2012-10-07T14:59:40 no, hell fuck her 2012-10-07T14:59:43 and he wont 2012-10-07T14:59:47 she'll fuck him* 2012-10-07T15:00:20 and anyway, it is not what do you call it? insci... 2012-10-07T15:00:25 not incest 2012-10-07T15:00:29 incest 2012-10-07T15:00:31 cause they're not biological siblings 2012-10-07T15:00:32 it isnt 2012-10-07T15:00:38 yeah 2012-10-07T15:00:47 mcstar: https://en.wikipedia.org/wiki/Boardwalk_Empire watch it! 2012-10-07T15:00:57 im on imdb 2012-10-07T15:01:15 i like buscemi 2012-10-07T15:01:15 it's really the best thing on tv 2012-10-07T15:01:32 i would watch a comedy preferably 2012-10-07T15:01:36 two and a half men 2012-10-07T15:01:52 (but i wont, cause dexter is enough for the time being) 2012-10-07T15:02:06 i re-watched it 3 times 2012-10-07T15:02:07 mcstar: boardwalk empire has dark comedy mixed in :P 2012-10-07T15:02:21 not as much as dexter & six feet under though 2012-10-07T15:02:41 i didnt watch the last season of six feet under 2012-10-07T15:02:45 :0 2012-10-07T15:02:47 or did i? 2012-10-07T15:02:51 :00000 2012-10-07T15:02:52 i dont remember 2012-10-07T15:02:57 it was boring 2012-10-07T15:03:04 I'm going to make a wiki 2012-10-07T15:03:06 hmm 2012-10-07T15:03:07 nathan was good though 2012-10-07T15:03:52 it was a shock when i saw michael kiss another man 2012-10-07T15:04:01 that fireman? 2012-10-07T15:04:07 i think be was kind of black 2012-10-07T15:04:16 or latino 2012-10-07T15:04:52 thestinger: lol, i didnt even watch 24 2012-10-07T15:05:03 that was a terrible series 2012-10-07T15:05:06 be thankful 2012-10-07T15:05:08 friends of mine recommended it 2012-10-07T15:05:13 unfriend them irl 2012-10-07T15:05:19 i only saw like half an episode 2012-10-07T15:05:23 too much 2012-10-07T15:05:31 I'm sorry you had to see that 2012-10-07T15:05:45 they make fun of the ticking clock, in the 200th episode of stargate :) 2012-10-07T15:05:52 anyway 24 is old 2012-10-07T15:06:06 my parents made me watch it with them :[ 2012-10-07T15:06:11 lol 2012-10-07T15:06:20 * thestinger will never forgive 2012-10-07T15:06:27 "see son? that is torture, now go, study!" 2012-10-07T15:06:36 study, in 2001? pfft 2012-10-07T15:06:50 that was 11 years ago 2012-10-07T15:06:56 how old were you? 2012-10-07T15:07:02 9/10 2012-10-07T15:07:13 lol 2012-10-07T15:07:15 x = 11 + 2012 - 2001 2012-10-07T15:07:15 wtf 2012-10-07T15:07:19 wtf? 2012-10-07T15:07:29 they made you watch 24 when you were 10?? 2012-10-07T15:07:32 yeah 2012-10-07T15:07:36 isnt that a brutal show? 2012-10-07T15:07:40 I guess 2012-10-07T15:07:53 it had that girl from popular mechanics for kids 2012-10-07T15:07:56 little kiefer sutherland beating the crap out of terrorists 2012-10-07T15:08:05 * thestinger had a crush on her 2012-10-07T15:08:18 mcstar: https://en.wikipedia.org/wiki/Popular_Mechanics_for_Kids 2012-10-07T15:08:36 there are 4 girls on that picture 2012-10-07T15:08:55 is that brandon whatshisname? 2012-10-07T15:08:58 elisha cuthbert 2012-10-07T15:09:04 no 2012-10-07T15:10:17 mcstar: https://www.youtube.com/watch?v=mMWMKAo4Gyk 2012-10-07T15:10:35 wow that was a bad show 2012-10-07T15:10:58 *** mpstyler has quit IRC (Ping timeout: 260 seconds) 2012-10-07T15:11:26 i saw her in some movie i think 2012-10-07T15:11:39 some american pie maybe 2012-10-07T15:11:42 ok, when she's doing the show she actually looks nice. but my flash player is broken again 2012-10-07T15:11:49 every human turns into a blue alien 2012-10-07T15:12:03 lol 2012-10-07T15:12:06 mleise1: girl next door, after she sold out 2012-10-07T15:12:12 mine just crashes 5 times before it plays something 2012-10-07T15:12:13 mcstar: * 2012-10-07T15:12:19 she used to teach me science 2012-10-07T15:12:19 right 2012-10-07T15:12:20 gnd 2012-10-07T15:12:27 SCIENCE! 2012-10-07T15:12:28 what? 2012-10-07T15:12:36 to you? 2012-10-07T15:12:44 and every other canadian kid who watched discovery. 2012-10-07T15:12:47 :P 2012-10-07T15:12:48 oh 2012-10-07T15:12:58 she was hot in that movie 2012-10-07T15:12:58 she was the host of that show 2012-10-07T15:13:05 mcstar: lol 2012-10-07T15:13:13 girl next door 2012-10-07T15:13:13 mcstar: she was hotter when I was 8 years old :P 2012-10-07T15:13:15 *** Garf has joined #aichallenge 2012-10-07T15:14:12 thestinger: do you watch breaking bad? 2012-10-07T15:14:18 I watched some 2012-10-07T15:14:27 we had this conversation :P 2012-10-07T15:15:08 *** mpstyler has joined #aichallenge 2012-10-07T15:15:41 really? 2012-10-07T15:15:46 i dont remember 2012-10-07T15:16:04 UncleVasya: how can i say "truth" or "lie" 2012-10-07T15:16:05 i recently heard that it was good 2012-10-07T15:16:45 boardwalk empire is the best though 2012-10-07T15:17:07 curb your enthusiam is the best comedy :P 2012-10-07T15:17:16 UncleVasya: amazing, your A.I. tries to cheat the game engine 2012-10-07T15:17:23 "hand_finished: you cannot lie in your last move" 2012-10-07T15:18:17 mleise1: if you add cards - you take his words as a truth 2012-10-07T15:18:38 ok, so it is implicit 2012-10-07T15:18:49 what do I do if my last cards don't match? 2012-10-07T15:19:01 If you don't believe - check. 2012-10-07T15:19:15 noooo, the stupid ai won 2012-10-07T15:19:17 only check is legal in this case 2012-10-07T15:19:40 it's a mistake in my interpretation of rules 2012-10-07T15:19:41 whats the name of this card game? or did you come up with it yourself, UncleVasya 2012-10-07T15:19:41 omg, I crashed it 2012-10-07T15:20:03 Player 2 takes table.Fatal error: exception Invalid_argument("Random.int") 2012-10-07T15:20:17 I made so that you cannot lie if it is your last move. But this is sucks 2012-10-07T15:20:53 congratulations, you want then :D 2012-10-07T15:20:58 *won 2012-10-07T15:21:22 UncleVasya: no the AI won, I was second :p 2012-10-07T15:21:45 when I'll remove this stupid rule, this bug will go away. 2012-10-07T15:21:47 mleise1: the ai died, you are still alive, ergo, you won 2012-10-07T15:22:21 is thi really a card game? 2012-10-07T15:22:24 oh i thought the game host died 2012-10-07T15:22:24 this* 2012-10-07T15:22:47 > amazing, your A.I. tries to cheat the game engine Amazing that he can't :) 2012-10-07T15:23:06 is there any open AI challenge at the moment? 2012-10-07T15:23:28 rpscontest.com 2012-10-07T15:23:35 rpscontest is open I think, but not sure 2012-10-07T15:24:43 mcstar: it's a variation of bullshit card game from my childhood. 2012-10-07T15:25:12 my childhood favorite was asshole 2012-10-07T15:26:22 no wait, we use to call it bimbo. there is one king and one servant. the servant gives his/her two best cards to the king and gets whatever the kind decides in exchange 2012-10-07T15:26:38 thanks 2012-10-07T15:26:49 the other players don't have to exchange cards 2012-10-07T15:27:50 mleise1: I think we called that 'president' 2012-10-07T15:28:03 thestinger: yes that's another name for it 2012-10-07T15:28:10 it was a lot of fun 2012-10-07T15:29:51 i tried to write a 'perfect' A.I. for it, but the combinatorics killed me 2012-10-07T15:31:49 so what? the king wins? 2012-10-07T15:31:50 i couldn't find a good representation for the probability of certain cards in a player's hand. One that would be memory efficient and easy to process when I try and solve the game tree 2012-10-07T15:31:58 mcstar: most of the time, yes 2012-10-07T15:32:09 do you know Uno? 2012-10-07T15:32:38 that's the fun part. sometimes the king's cards are so bad from the beginning that he still loses to the 'neutral' players or even the servant 2012-10-07T15:32:39 we played that a lot on school 'translate kirandulas' 2012-10-07T15:32:53 mcstar: unfortunately no 2012-10-07T15:32:57 *** pairofdice has quit IRC (Quit: In girum imus nocte et consumimur igni.) 2012-10-07T15:33:11 but i can win against the ai in UncleVasya's game this time i think 2012-10-07T15:33:18 field trip/outing 2012-10-07T15:33:57 i didnt play much though 2012-10-07T15:34:08 i always fuck up other people's fun 2012-10-07T15:34:15 O.o 2012-10-07T15:34:38 the best is to sit in, with a group who tries to play some strategy game 2012-10-07T15:34:46 and you drink before that 2012-10-07T15:34:55 so make sure you are drunk when you play 2012-10-07T15:35:03 *** mpstyler has quit IRC (Ping timeout: 248 seconds) 2012-10-07T15:35:07 those turned out to be total successes 2012-10-07T15:35:34 mleise1: you can, this is a very basic ai for testing game mechanics. Its logic: 2012-10-07T15:35:40 this happened in my uni years of course, not in high school 2012-10-07T15:35:52 can finish? finish! else 2012-10-07T15:36:11 if some cards on the table: 2012-10-07T15:36:50 can say truth? then 70% truth, 20% lie, 10% check else 60% Check, 40% lie 2012-10-07T15:37:00 if no cards on the table: 2012-10-07T15:37:16 Fatal error: exception Invalid_argument("Random.int") 2012-10-07T15:37:53 pick a claim so bot has many cards of this rank. 2012-10-07T15:38:00 lol good timing 2012-10-07T15:38:13 *** wentam has joined #aichallenge 2012-10-07T15:38:18 pick cards in that way: 2012-10-07T15:38:23 mleise1: it was a joke, i copied your line 2012-10-07T15:38:33 mcstar: oh I never get your jokes 2012-10-07T15:38:51 (60 - 6*Ace_count)% say truth 2012-10-07T15:41:40 mcstar: this happens when bot has only aces. If player has 1 ace ad nothing more he cannot do anything to make a correct move. That's why I plan to make a change in rules. 2012-10-07T15:42:19 i wish you would factor your code 2012-10-07T15:43:07 oh... 2012-10-07T15:43:32 yeah 2012-10-07T15:44:41 I think I'm really close to it in todo list. :) 2012-10-07T15:45:29 if you feel brave, you can show it on #ocam XD 2012-10-07T15:45:33 l 2012-10-07T15:45:41 But it can be like 'so what's now? Refactoring? nah, I'm going to watch some tv-show' :) 2012-10-07T15:45:58 no-no, I'm not that suicidal 2012-10-07T15:46:10 does anyone know a good .zip file with sample sudoku games to feed into a sudoku solver? 2012-10-07T15:46:25 write a generator 2012-10-07T15:46:32 norvig has that too 2012-10-07T15:47:03 where it is from: Norvigs' sudoku? 2012-10-07T15:47:25 I mean is it from his book or from some paper or course? 2012-10-07T15:47:38 i think it is not related to those 2012-10-07T15:47:45 just do a search 2012-10-07T15:47:49 peter norvig sudoku solver 2012-10-07T15:48:23 ok 2012-10-07T15:48:31 ok 2012-10-07T15:48:34 ok 2012-10-07T15:49:31 ok? 2012-10-07T15:50:51 ok, he used some from here first: http://projecteuler.net/project/sudoku.txt 2012-10-07T15:51:37 then he switched to hard puzzles: http://magictour.free.fr/top95 2012-10-07T15:53:03 and then the hardest puzzles evar!!!11eleven: http://norvig.com/hardest.txt 2012-10-07T15:54:37 i'm going to print them and show my grandmother :) 2012-10-07T15:54:41 now we can hack together a nice sudoku solver. I'll chose D and solve the puzzles at compile time ^^ 2012-10-07T15:55:06 UncleVasya: not necessarily the fastest way to get the solutions :p 2012-10-07T15:55:24 mleise1: :D 2012-10-07T15:57:41 http://lorgonblog.wordpress.com/2010/02/14/how-to-_really_-be-an-evil-genius-with-f/ 2012-10-07T16:00:08 crap a youtube link on that page ... hangs up my flash player again 2012-10-07T16:00:33 a dramatic chipmunk, alright 2012-10-07T16:02:18 *** thestinger has quit IRC (Ping timeout: 246 seconds) 2012-10-07T16:03:15 mleise1: you dont know the puzzles at compile tiem 2012-10-07T16:03:48 mcstar: Sure, D is cool and can load files during compilation 2012-10-07T16:03:58 there are no files 2012-10-07T16:04:13 do you want to compile a program for each puzzle? 2012-10-07T16:04:13 enum grids = import("sudoku.txt"); 2012-10-07T16:04:19 there is no file 2012-10-07T16:04:34 of course there is, i linked them above 2012-10-07T16:04:40 but i say there is none 2012-10-07T16:04:48 your program has to solve any solvable puzzle 2012-10-07T16:04:50 but novak used them 2012-10-07T16:04:55 novak? 2012-10-07T16:05:00 or what was his name? 2012-10-07T16:05:03 norvig 2012-10-07T16:05:11 *** thestinger has joined #aichallenge 2012-10-07T16:05:17 right, so this guy used them and they are the reference 2012-10-07T16:05:22 ok 2012-10-07T16:05:30 i dont have a problem with that 2012-10-07T16:05:32 so i can compiletime compute the solution 2012-10-07T16:05:39 but not for others 2012-10-07T16:05:44 so it is emaningless 2012-10-07T16:05:57 you can find the solutions, and put them in another file 2012-10-07T16:06:04 hmm, that's boring. then I'll just runtime solve them all 2012-10-07T16:06:08 and they write a simple program that associates puzzles to solutions 2012-10-07T16:06:11 lol 2012-10-07T16:06:20 they->then 2012-10-07T16:07:09 UncleVasya: that bookworms blog post was the motivation of me messing with prefix tries 2012-10-07T16:07:36 im pretty sure i linked it in here 2012-10-07T16:09:42 mcstar: i came back later, when you were in the middle of trie-game 2012-10-07T16:10:37 i joined too late, when you were already dealing with prefix tries* 2012-10-07T16:10:41 *** Accoun has joined #aichallenge 2012-10-07T16:14:09 mleise1: are you actually working on a solver? 2012-10-07T16:14:32 mcstar: sure, I always wanted to write one, and this is a good opportunity 2012-10-07T16:14:47 but did you understand the ones you pasted? 2012-10-07T16:14:49 I wrote a solver for another game in class 2012-10-07T16:15:27 it was similar but the rule was to solve equations like: 4 + 5 = ? 2012-10-07T16:15:34 9 2012-10-07T16:15:55 mcstar: yes, and now connect some equations in a grid 2012-10-07T16:16:13 mleise1: if you wanna a competitive task then write a program to beat Chinook :) 2012-10-07T16:16:13 e.g. 9 is the first factor in a product 2012-10-07T16:16:57 UncleVasya: you dont shorten 'want something' to wanna 2012-10-07T16:18:40 *** skarhand has joined #aichallenge 2012-10-07T16:20:58 *** kilae has joined #aichallenge 2012-10-07T16:22:25 *** kilae_ has quit IRC (Ping timeout: 260 seconds) 2012-10-07T16:33:29 bye guys 2012-10-07T16:33:34 *** UncleVasya has quit IRC (Quit: UncleVasya) 2012-10-07T16:35:04 *** skarhand has quit IRC (Quit: Page closed) 2012-10-07T16:46:32 *** kilae has quit IRC (Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]) 2012-10-07T16:50:04 *** thestinger has quit IRC (Quit: error 3) 2012-10-07T17:10:52 *** Garf has quit IRC (Quit: Make a new plan, Stan!) 2012-10-07T17:32:19 *** dici has joined #aichallenge 2012-10-07T17:35:54 *** mcstar has quit IRC (Quit: mcstar) 2012-10-07T17:52:07 *** foRei has quit IRC (Quit: Bye) 2012-10-07T18:18:23 *** smjm has quit IRC (Quit: Konversation terminated!) 2012-10-07T18:38:18 *** dici has quit IRC (Read error: Connection reset by peer) 2012-10-07T18:44:14 *** coeus has quit IRC (Ping timeout: 255 seconds) 2012-10-07T19:09:54 *** Scooper has quit IRC (Quit: Leaving) 2012-10-07T20:41:01 *** AlliedEnvy has quit IRC (Ping timeout: 246 seconds) 2012-10-07T20:41:42 *** AlliedEnvy has joined #aichallenge 2012-10-07T21:03:54 *** mleise1 has quit IRC (Quit: Leaving.)