2010-12-15T00:14:03 *** yasith has joined #aichallenge 2010-12-15T00:33:46 HeelToe: you choose your username and password on tcp, you assign the password the first time you use the username 2010-12-15T00:34:14 ty 2010-12-15T00:34:36 i don't think the server is running, but thanks anyway 2010-12-15T00:35:04 there's probably no one to pair you wtih :P 2010-12-15T00:36:04 yeah, figured 2010-12-15T00:36:39 turn up during a contest and you will have plenty of competition 2010-12-15T00:37:02 yeah, i made a bot, but it crashed on their system, while working fine on mine :/ 2010-12-15T00:37:13 c++? 2010-12-15T00:37:16 pytho 2010-12-15T00:37:17 i had that happen to me a few times 2010-12-15T00:37:17 n 2010-12-15T00:37:22 my final bot was all good though 2010-12-15T00:37:35 did you find out why the other ones crashed? 2010-12-15T00:37:45 nope 2010-12-15T00:37:55 and yeah, I completely started over cause my submitted bot was crap 2010-12-15T00:38:14 that sucks doesn't it, the mysterious failure of crashing every time... 2010-12-15T00:38:35 i am extremely disappointed at how hard it is to create a process inside a program 2010-12-15T00:38:56 so easy! 2010-12-15T00:38:58 fork() 2010-12-15T00:39:03 >.> 2010-12-15T00:39:14 or with python, subprocess.Popen 2010-12-15T00:39:23 like a thread? 2010-12-15T00:44:47 Zannick: i don't know how to do it? 2010-12-15T00:44:47 Can i create a variable like thing that is a process, where i can just input/output things from it like any other stream? 2010-12-15T00:44:50 that would be coolest 2010-12-15T00:45:51 so, i'd have to look up exactly how that works, too 2010-12-15T00:46:00 but the subprocess module is what you want 2010-12-15T00:46:42 subprocess.Popen is a class that has stdin and stdout pipes that you can input/output to/from 2010-12-15T00:46:56 you can look at aicontest's own user_sadbox.py for an example 2010-12-15T00:47:33 yeah okay, another option is to use boost 2010-12-15T00:47:42 but then people need to have that installed, which i don't like 2010-12-15T00:48:10 for c/c++ it's way more complicated 2010-12-15T00:48:20 cause you can fork(), but that's a new process 2010-12-15T00:48:38 http://www.netbsd.org/~jmmv/process/boost_process/usage.html#boost_process.usage.interprocess_communication 2010-12-15T00:48:51 sure 2010-12-15T00:48:57 * Zannick not familiar with boost 2010-12-15T00:49:01 neither :P 2010-12-15T00:50:48 *** HeelToe has quit IRC (Quit: Leaving) 2010-12-15T00:51:42 *** amriedle has quit IRC (Quit: Lost terminal) 2010-12-15T01:05:54 *** virdo has joined #aichallenge 2010-12-15T01:24:54 *** Rubicon-|-Cross has joined #aichallenge 2010-12-15T01:38:52 *** sigh has quit IRC (Ping timeout: 260 seconds) 2010-12-15T01:42:16 *** yasith_ has joined #aichallenge 2010-12-15T01:42:17 *** yasith has quit IRC (Read error: Connection reset by peer) 2010-12-15T01:46:25 *** Utkarsh has quit IRC (Read error: Connection reset by peer) 2010-12-15T01:54:40 *** Utkarsh has joined #aichallenge 2010-12-15T01:55:03 *** virdo has quit IRC () 2010-12-15T01:59:40 *** antimatroid1 has joined #aichallenge 2010-12-15T02:00:57 *** antimatroid has quit IRC (Ping timeout: 265 seconds) 2010-12-15T02:02:44 *** antimatroid1 has quit IRC (Read error: Connection reset by peer) 2010-12-15T02:03:15 *** antimatroid has joined #aichallenge 2010-12-15T02:31:40 *** sigh has joined #aichallenge 2010-12-15T03:05:06 *** yasith_ has quit IRC (Ping timeout: 260 seconds) 2010-12-15T03:09:26 *** mega1 has joined #aichallenge 2010-12-15T03:16:45 *** yasith_ has joined #aichallenge 2010-12-15T03:17:41 *** RubiconCross has joined #aichallenge 2010-12-15T03:18:28 *** Rubicon-|-Cross has quit IRC (Read error: Connection reset by peer) 2010-12-15T03:20:14 antimatroid: Java one thing they really got right --was a big arse standardize library for a lot of common things that's works across platforms 2010-12-15T03:20:57 Seriously, I am disappointed that in 2010 we don't have that in some other "core" langs... 2010-12-15T03:21:19 20-30 years should have been enough time to sort that crap out 2010-12-15T03:32:44 *** narnach has joined #aichallenge 2010-12-15T03:32:44 *** narnach is now known as narnach_mb 2010-12-15T03:37:30 *** tapwater has quit IRC (Quit: tapwater) 2010-12-15T04:07:22 *** aerique has joined #aichallenge 2010-12-15T04:47:46 *** Titankiller has joined #aichallenge 2010-12-15T04:49:18 *** Titankiller2 has joined #aichallenge 2010-12-15T04:51:54 *** Titankiller has quit IRC (Ping timeout: 240 seconds) 2010-12-15T04:54:04 *** Titankiller2 has quit IRC (Ping timeout: 276 seconds) 2010-12-15T04:56:08 "annhharison" is spamming the ai-contest forums 2010-12-15T04:59:06 *** Titankiller has joined #aichallenge 2010-12-15T05:23:29 delt0r___: amen :) 2010-12-15T06:07:59 aerique: its fancy spam 2010-12-15T06:13:02 *** delt0r_ has joined #aichallenge 2010-12-15T06:15:09 *** delt0r___ has quit IRC (Ping timeout: 276 seconds) 2010-12-15T06:19:13 *** iFire has quit IRC (Read error: Connection reset by peer) 2010-12-15T06:20:21 *** Palmik has joined #aichallenge 2010-12-15T06:21:57 *** iFire has joined #aichallenge 2010-12-15T06:25:01 *** Palmik has quit IRC (Read error: Operation timed out) 2010-12-15T06:36:44 *** Naktibalda has joined #aichallenge 2010-12-15T06:39:14 *** antimatroid1 has joined #aichallenge 2010-12-15T06:40:33 *** antimatroid has quit IRC (Ping timeout: 264 seconds) 2010-12-15T06:59:00 *** mceier has joined #aichallenge 2010-12-15T07:10:05 *** perror has joined #aichallenge 2010-12-15T07:19:05 lol, wtf annhharison 2010-12-15T07:39:11 *** delt0r_ has quit IRC (Ping timeout: 240 seconds) 2010-12-15T07:42:23 *** Titankiller has quit IRC (Read error: Connection reset by peer) 2010-12-15T07:50:09 *** sigh has quit IRC (Remote host closed the connection) 2010-12-15T07:55:12 bah i give up 2010-12-15T07:55:25 i have nfi how to get processes to run and communicate 2010-12-15T07:55:37 i'll try with boost 2010-12-15T08:22:09 wow, 20 KB data for 200 turns with 2 ants in JSON 2010-12-15T08:28:26 :P 2010-12-15T08:28:52 i think i can get processes communicating with boost 2010-12-15T08:29:05 i'll try to get a backbone set up to use for any future cpp engine 2010-12-15T08:29:08 *** Azrathud has quit IRC (Ping timeout: 272 seconds) 2010-12-15T08:34:34 *** Accoun has quit IRC (Ping timeout: 255 seconds) 2010-12-15T08:42:00 *** Mathnerd314 has quit IRC (Ping timeout: 240 seconds) 2010-12-15T08:52:36 *** Accoun has joined #aichallenge 2010-12-15T09:05:05 *** amriedle has joined #aichallenge 2010-12-15T09:05:43 antimatroid1, Why don't you use some of the C++ engines from the last comp. they have the whole process thing done for you 2010-12-15T09:06:16 also perhaps using python would be quicker... Its not a given we/they will go for ants as the final game 2010-12-15T09:06:25 delt0r: i've looked at albets, it's messier than i like, i'm working on a process struct now using boost that i can just use string streams to interact with 2010-12-15T09:06:55 i'm quite interested in getting this process struct written now anyway, i'm sure i'll find a use for it eventually 2010-12-15T09:07:33 (i'm a very stubborn and fussy person :) ) 2010-12-15T09:14:31 *** amriedle_fail has joined #aichallenge 2010-12-15T09:15:32 *** amriedle has quit IRC (Remote host closed the connection) 2010-12-15T09:15:38 *** delt0r_ has joined #aichallenge 2010-12-15T09:18:33 *** bhasker has joined #aichallenge 2010-12-15T09:44:28 *** Accoun has quit IRC (Ping timeout: 276 seconds) 2010-12-15T09:55:12 *** bhasker has quit IRC (Quit: bhasker) 2010-12-15T10:00:11 *** Accoun has joined #aichallenge 2010-12-15T10:12:27 *** JamesMG has joined #aichallenge 2010-12-15T10:24:24 *** RubiconCross has quit IRC (Quit: Leaving) 2010-12-15T10:29:58 Frontier: you about? 2010-12-15T10:30:20 *** aerique has quit IRC (Quit: ...) 2010-12-15T10:32:38 i need to send you 3 rounds of moves each turn, and preferably have the visualiser iterate through that so you can sort of see what the game is doing 2010-12-15T10:57:31 *** Azrathud has joined #aichallenge 2010-12-15T11:13:31 *** bhasker has joined #aichallenge 2010-12-15T11:14:08 *** perror has quit IRC (Quit: Bye all !) 2010-12-15T11:17:02 *** Azrathud has quit IRC (Ping timeout: 255 seconds) 2010-12-15T11:21:40 hmmm... unsure how to listen to two different things at once? and stop trying to read if a bot takes to long rather than checking the time of receiving each move 2010-12-15T11:26:31 *** amriedle has joined #aichallenge 2010-12-15T11:27:52 antimatroid1: Non blocking IO 2010-12-15T11:28:16 you have read methods that always return and output between 0 and more bytes 2010-12-15T11:28:38 put them in a buffer check the other player... rinse and repeat 2010-12-15T11:29:40 delt0r: cheers 2010-12-15T11:29:42 it 2010-12-15T11:29:52 i'm going to head to bed then i'll fix it up tomorrow 2010-12-15T11:30:06 hopefully i can have a working engine by the end of tomorrow 2010-12-15T11:55:36 *** Titankiller has joined #aichallenge 2010-12-15T12:02:44 *** Titankiller has left #aichallenge 2010-12-15T12:07:07 *** medrimonia1 has joined #aichallenge 2010-12-15T12:07:57 *** medrimonia has quit IRC (Ping timeout: 240 seconds) 2010-12-15T12:50:39 3 rounds of moves? what's going on? 2010-12-15T12:51:25 *** Error323 has quit IRC (Ping timeout: 264 seconds) 2010-12-15T13:00:16 *** Naktibalda has quit IRC (Quit: ChatZilla 0.9.86 [Firefox 3.6.8/20100722155716]) 2010-12-15T13:00:52 *** mega1 has quit IRC (Ping timeout: 272 seconds) 2010-12-15T13:05:33 *** yasith_ has quit IRC (Ping timeout: 260 seconds) 2010-12-15T13:13:08 *** amriedle has quit IRC (Quit: Lost terminal) 2010-12-15T13:18:57 *** yasith_ has joined #aichallenge 2010-12-15T13:21:51 *** Error323 has joined #aichallenge 2010-12-15T13:26:59 *** Frontier has quit IRC (Read error: Connection reset by peer) 2010-12-15T13:52:06 *** tapwater has joined #aichallenge 2010-12-15T13:56:29 *** mceier has quit IRC (Quit: leaving) 2010-12-15T14:16:08 *** boegel has joined #aichallenge 2010-12-15T14:30:27 *** amriedle_fail has quit IRC (Quit: Lost terminal) 2010-12-15T14:38:50 *** Naktibalda has joined #aichallenge 2010-12-15T14:51:44 *** Accoun has quit IRC (Ping timeout: 260 seconds) 2010-12-15T14:58:52 *** Accoun has joined #aichallenge 2010-12-15T15:09:03 *** antimatroid has joined #aichallenge 2010-12-15T15:10:49 *** antimatroid1 has quit IRC (Ping timeout: 276 seconds) 2010-12-15T15:15:22 *** Accoun has quit IRC () 2010-12-15T15:25:31 *** Accoun has joined #aichallenge 2010-12-15T15:41:22 *** sigh has joined #aichallenge 2010-12-15T15:46:01 *** boegel has quit IRC (Quit: Leaving) 2010-12-15T15:50:26 *** Apophis_ has quit IRC (Quit: Verlassend) 2010-12-15T15:51:12 *** yasith_ has quit IRC (Ping timeout: 250 seconds) 2010-12-15T15:56:23 *** amriedle has joined #aichallenge 2010-12-15T15:58:20 *** sigh has quit IRC (Remote host closed the connection) 2010-12-15T16:02:22 *** amriedle has quit IRC (Ping timeout: 276 seconds) 2010-12-15T16:03:46 *** amriedle has joined #aichallenge 2010-12-15T16:10:26 *** amriedle2 has joined #aichallenge 2010-12-15T16:34:29 *** smellyhippy has joined #aichallenge 2010-12-15T16:49:08 *** Mathnerd314 has joined #aichallenge 2010-12-15T16:56:50 *** sigh has joined #aichallenge 2010-12-15T17:05:44 *** rabidus_ has quit IRC (Ping timeout: 250 seconds) 2010-12-15T17:17:37 *** nullkuhl has joined #aichallenge 2010-12-15T17:28:10 *** amriedle2 has quit IRC (Quit: Lost terminal) 2010-12-15T17:30:42 *** Naktibalda has quit IRC (Ping timeout: 272 seconds) 2010-12-15T17:38:51 *** Error323 has quit IRC (Read error: Operation timed out) 2010-12-15T17:50:42 *** rabidus has joined #aichallenge 2010-12-15T17:52:30 *** spz has quit IRC (Quit: KVIrc 4.0.2 Insomnia http://www.kvirc.net/) 2010-12-15T18:05:09 *** delt0r_ has quit IRC (Read error: Operation timed out) 2010-12-15T18:09:08 *** Cyndre has joined #aichallenge 2010-12-15T18:09:24 *** Cyndre_ has quit IRC (Quit: Leaving) 2010-12-15T18:20:05 *** Error323 has joined #aichallenge 2010-12-15T18:22:13 *** JamesMG has quit IRC (Quit: home) 2010-12-15T18:31:40 *** jmcarthur has quit IRC (Quit: WeeChat 0.3.2) 2010-12-15T18:31:50 *** jmcarthur has joined #aichallenge 2010-12-15T18:57:38 *** delt0r_ has joined #aichallenge 2010-12-15T19:15:36 "it?s simplest to think of the state of your repository as a point in a high-dimensional ?code-space?, in which branches are represented as n-dimensional membranes, mapping the spatial loci of successive commits onto the projected manifold of each cloned repository." - http://tartley.com/?p=1267 2010-12-15T19:15:40 git made simple :P 2010-12-15T19:21:27 *** jaspervdj has quit IRC (Quit: NEVER GONNA GIVE YOU UP NEVER GONNA LET YOU DOWN) 2010-12-15T19:22:36 *** Cold-Phoenix has joined #aichallenge 2010-12-15T19:23:51 awesome... 2010-12-15T19:24:05 now i finally understand branching in git 2010-12-15T19:52:38 *** Rubicon-|-Cross has joined #aichallenge 2010-12-15T20:02:22 *** Azrathud has joined #aichallenge 2010-12-15T20:40:20 so its going to be an ant game like planet wars? 2010-12-15T20:44:27 Cyndre: it's just a possible option 2010-12-15T20:44:36 and there are 2 considerably different versions of antwars 2010-12-15T20:45:21 i've finally got processes communicating one way in c++ 2010-12-15T20:45:27 excellent article - http://www.jasonshen.com/2010/winning-isnt-normal/ 2010-12-15T20:45:29 it doesn't seem to like going bidirectionally atm 2010-12-15T20:45:59 Im starting a redisgn of my bots brain :) 2010-12-15T20:46:59 my irc bot that is - anyone care if he sits in here and learns from you? it only talks on specific keywords 2010-12-15T20:47:28 depends how common those words are :P 2010-12-15T20:47:35 i don't think anyone would mind too much atm 2010-12-15T20:47:43 possibly not leave it in here when a contest is on 2010-12-15T20:48:36 scoreme - displays your sentence score, askim - ask the bot a question and returns a list of most likely answers, explainword word - breaks it down to noun etc 2010-12-15T20:49:15 *** CyndreBot_ has joined #aichallenge 2010-12-15T20:49:33 scoreme - rainbow 2010-12-15T20:49:33 antimatroid, your current score is . 2010-12-15T20:49:37 my irc bots tend to use ': ' as the trigger 2010-12-15T20:49:37 *** CyndreBot_ has quit IRC (Remote host closed the connection) 2010-12-15T20:49:37 it's broken :P 2010-12-15T20:49:40 lmao 2010-12-15T20:49:44 that should be inf 2010-12-15T20:49:51 hes never heard you speak 2010-12-15T20:50:06 hmm, maybe time for error handling 2010-12-15T20:50:11 rainbow rainbow rainbow rainbow 2010-12-15T20:50:14 scoreme 2010-12-15T20:50:18 *** CyndreBot_ has joined #aichallenge 2010-12-15T20:50:24 that tends to keep the inadvertent triggering to a minimum 2010-12-15T20:50:26 lol, should pay attention more :) 2010-12-15T20:50:38 scoreme 2010-12-15T20:50:38 Cyndre, your current score is 106. 2010-12-15T20:50:58 scoreme 2010-12-15T20:50:58 antimatroid, your current score is 116. 2010-12-15T20:51:01 yeah :P 2010-12-15T20:51:14 is that number of chars read? 2010-12-15T20:51:17 scoreme 2010-12-15T20:51:17 antimatroid, your current score is 101. 2010-12-15T20:51:21 no :s 2010-12-15T20:51:53 scoreme 2010-12-15T20:51:53 Zannick, your current score is 160. 2010-12-15T20:52:00 B) 2010-12-15T20:52:01 its based on your sentence structure and what the bot already knows. Every word pair is evaluated, assigned a score, and used to score you. If your score is less then the word pair, your score goes up, word pair score goes down and vice versa 2010-12-15T20:52:31 interesting 2010-12-15T20:52:45 want to change it to word triplets though 2010-12-15T20:53:07 and this is to seed a markov generator? 2010-12-15T20:53:12 yeah, that's pretty interesting 2010-12-15T20:53:19 no, to decide how to rank memorys 2010-12-15T20:53:59 well, it seems like an interesting idea for a markov generator 2010-12-15T20:54:05 ie - the higher the score, the higher the respect for the person and more likely to find things they say important 2010-12-15T20:54:15 askbot who is the president of the united states of america 2010-12-15T20:54:32 obama, people, has, were, many, help, their, any, bush, over, black, doesn, does, person, also, us, because, change, world, thats, time, still, make, american, than, based, war, our, years, being, wes 2010-12-15T20:54:50 i know a guy named wes :) 2010-12-15T20:55:09 so the score is how it learns from you. It stops dumb people from teaching it and in fact he will down mod things they say 2010-12-15T20:55:43 and then it will also use the word pair scores durring sentence generation 2010-12-15T20:56:23 scoreme 2010-12-15T20:56:23 sigh, your current score is 34. 2010-12-15T20:56:33 it doesn't like me :( 2010-12-15T20:56:49 askbot what is the next game for the ai contest 2010-12-15T20:56:57 play, action, into, im, make, where, should, year, use, their, d, his, over, because, going, even, am, go, which, own, dont, who, been, point, playing, 0, re, when, day, king, any, than, top, don, cha 2010-12-15T20:57:34 scoreme 2010-12-15T20:57:34 Cyndre, your current score is 179. 2010-12-15T20:57:36 the next game will be "play" or "play action" 2010-12-15T20:57:37 haha 2010-12-15T20:57:54 I suggest atari tank wars for the next game in the ai contest 2010-12-15T20:58:03 askbot what is the next game for the ai contest 2010-12-15T20:58:04 play, action, into, im, make, where, should, year, use, suggest, their, d, wars, his, over, because, going, even, am, atari, go, tank, which, own, dont, who, been, point, playing, re, 0, when, day, ki 2010-12-15T20:58:18 I suggest atari tank wars for the next game in the ai contest 2010-12-15T20:58:20 askbot what is the next game for the ai contest 2010-12-15T20:58:20 play, action, into, suggest, im, wars, make, where, tank, atari, should, year, use, their, d, his, over, because, going, even, am, go, which, own, dont, who, been, point, playing, 0, re, when, day, ki 2010-12-15T20:58:29 almost the number 1 answer 2010-12-15T20:58:57 you are cheating 2010-12-15T20:59:01 i suggest tron for the last game in the ai contest 2010-12-15T20:59:03 Accoun won't like that 2010-12-15T20:59:03 nope, just teaching it 2010-12-15T20:59:07 askbot what is the next game for the ai contest 2010-12-15T20:59:07 play, action, suggest, into, im, wars, make, where, atari, tank, should, year, use, their, d, his, over, because, going, even, am, go, which, own, dont, last, who, been, point, playing, re, 0, when, d 2010-12-15T20:59:31 well, now 'suggest' is getting up there :P 2010-12-15T21:00:41 how come 'd' makes the list twice? 2010-12-15T21:00:51 hmmm... i have processes opening now, but i can't get my opened process to take input from the program rather than my terminal window :\ 2010-12-15T21:00:58 any of you played around with popen before 2010-12-15T21:01:07 yea, I dont have the word type working yet - my goal is to determine what the question is missnig in order to find what type of word the answer should be 2010-12-15T21:01:21 it truncates at a certain length 2010-12-15T21:02:10 explainword suggest 2010-12-15T21:02:10 suggest = verb: 3 noun: 1 adjective: 0 adverb: 0 pronoun: 0 preposition: 0 person: 9 place: 6 thing: 17 idea: 3 2010-12-15T21:02:35 didnt do a good job on that one - but it only has like 3 or 4 words to classify on 2010-12-15T21:18:56 *** medrimonia1 has quit IRC (Read error: Connection reset by peer) 2010-12-15T21:22:35 *** Cold-Phoenix has quit IRC () 2010-12-15T22:14:00 *** delt0r___ has joined #aichallenge 2010-12-15T22:15:19 *** delt0r_ has quit IRC (Ping timeout: 240 seconds) 2010-12-15T22:21:50 *** smellyhippy has quit IRC (Ping timeout: 276 seconds) 2010-12-15T22:24:33 *** a1k0n_ has joined #aichallenge 2010-12-15T22:24:44 *** a1k0n has quit IRC (Read error: Connection reset by peer) 2010-12-15T22:25:23 *** Azrathud has quit IRC (Ping timeout: 255 seconds) 2010-12-15T22:25:57 *** smellyhippy has joined #aichallenge 2010-12-15T22:25:57 *** smellyhippy has joined #aichallenge 2010-12-15T22:28:07 *** Azrathud has joined #aichallenge 2010-12-15T22:44:53 *** smellyhippy has quit IRC (Ping timeout: 264 seconds) 2010-12-15T22:48:32 *** smellyhippy has joined #aichallenge 2010-12-15T22:48:32 *** smellyhippy has joined #aichallenge 2010-12-15T23:05:41 anyone alive? 2010-12-15T23:06:24 everyone is dead 2010-12-15T23:06:45 I see that 2010-12-15T23:06:50 and dead people 2010-12-15T23:06:57 askbot how is everyone 2010-12-15T23:07:00 up, here, than, way, subjective, minus, got, doing, people, their, other, hey, through, best, who, am, anyone, hi, where, good, when, else, interpretations, down, mutation, vandalism, same, yes, had, 2010-12-15T23:07:09 subjective :) 2010-12-15T23:07:26 aw, i was hoping to see 'dead' make the list 2010-12-15T23:07:31 askbot list the alphabet 2010-12-15T23:07:33 p, o, x, y, u, n, m, l, h, g, f, e, d, c, divided, dont, http, bydivided, minus, up, wikipedia, when, him, which, trying, his, reason, re, ordered, am, pixels, q, r, v, z, w, k, j, into, b, letters, w 2010-12-15T23:07:52 wikipedia is part of the alphabet, yep. 2010-12-15T23:08:04 askbot 2 + 2 = x 2010-12-15T23:08:19 0, 1, 2, times, minus, 1divided, divided, v, by2, 3, e, y, m, p, 4, l, 5, c, u, sin, 6, h, d, f, bys, 7, right, use, b, r, now, q, mdivided, 8, sqrt, cos, than, bysqrt, bydt, 2divided, where, 9, got, 2010-12-15T23:08:26 hes a stupid bot 2010-12-15T23:08:44 one thing I have found is at first it worked awsome, but after time it started getting flooded with crap 2010-12-15T23:09:12 I think I need to implement a pruning where all scores are lowered or something 2010-12-15T23:09:39 777 + 222 = 999 2010-12-15T23:09:47 askbot x + 222 = 999 2010-12-15T23:09:48 times, 0, c, use, where, right, ok, more, around, left, try, 1, divided, cases, v, 2, anything, 3, sin, p, 1divided, minus, y, back, were, h, really, 4, b, top, once, 5, m, by2, l, e, cos, sqrt, 6, 7, 2010-12-15T23:10:13 it looks like the garbage has collected around the + and = 2010-12-15T23:10:44 hmmm, I should demod based on the number of connections to other words it has and the relative scores 2010-12-15T23:14:23 i'm wrestling with c++ 2010-12-15T23:14:36 i almost had processes working with popen, i can't feed the process information :( 2010-12-15T23:15:01 if total_wordpair_score/total_wordpairs > wordpair_score wordpair_score -= total_wordpair_score/total_wordpairs or something 2010-12-15T23:15:01 fputs doesn't seem to work, it demands i input it from actual std::in 2010-12-15T23:21:58 http://book.chinaunix.net/special/ebook/addisonWesley/APUE2/0201433079/ch15lev1sec3.html not sure if it helps, it just gives the std::in method 2010-12-15T23:22:48 are you flushing the buffer with your fputs? 2010-12-15T23:24:02 i am 2010-12-15T23:24:07 still doesn't seem to do anything 2010-12-15T23:24:16 http://www.daniweb.com/forums/thread329170.html is this helpful? 2010-12-15T23:25:33 not really, forking creates a child process of the same file 2010-12-15T23:25:44 i need processes of different files with input/output streams between them 2010-12-15T23:26:12 i'm trying to get it all into a process struct with no extra libraries so i never have to think about it again 2010-12-15T23:28:21 whats question? 2010-12-15T23:29:21 if you want to both read/write from process you start's stdin/stdout you cant use popen i guess 2010-12-15T23:29:51 popen only for unidirectional, dumping output to prog, or reading input from prog 2010-12-15T23:30:36 for bidiretional you have to do it manually with seris of pipe(), dup2() and fork() / execve() 2010-12-15T23:31:44 people keep saying use fork? 2010-12-15T23:31:52 how do i fork a process that isn't the same file? 2010-12-15T23:32:02 i thought it just forked a child process that is the same 2010-12-15T23:32:07 it does 2010-12-15T23:32:07 you fork THEN exec 2010-12-15T23:32:13 namely "fork returns twice" 2010-12-15T23:32:17 thats what popen() does 2010-12-15T23:32:27 but "exec never returns" 2010-12-15T23:32:44 well put Zannick 2010-12-15T23:32:57 hmmm, i don't get it, is there a page that explains the two things? 2010-12-15T23:33:06 i swear google is failing me miserably 2010-12-15T23:33:06 generally you see pid = fork(); if (pid == 0) { /* child */ exec( ... ); } 2010-12-15T23:33:38 http://en.wikipedia.org/wiki/Fork-exec 2010-12-15T23:33:43 its the bidirectional IO control of a program what youre trying to achieve? 2010-12-15T23:34:06 most of my knowledge of this comes from the systems classes i took at college 2010-12-15T23:34:20 * antimatroid didn't take any such classes 2010-12-15T23:34:28 they were required for me 2010-12-15T23:34:33 maybe you just haven't yet 2010-12-15T23:34:38 my uni comp department is worse than bad :P 2010-12-15T23:34:47 i graduated yesterday :P 2010-12-15T23:34:54 i was a bigtime unix programmer in 90s :) 2010-12-15T23:34:55 or you didn't go to a good school like cmu ;) 2010-12-15T23:35:01 i also did the bare minimum to finish a cs major 2010-12-15T23:35:09 i see 2010-12-15T23:36:26 (i did economics and maths majors which filled the rest of my time) 2010-12-15T23:36:38 triple major? 2010-12-15T23:36:43 i doubled in math and that was tought 2010-12-15T23:36:45 anyway, i'ma go get some subway then try to do it with fork/exec etc. and if that fails possibly give up 2010-12-15T23:36:46 tough * 2010-12-15T23:36:59 yep, lots of 5 unit semesters 2010-12-15T23:36:59 but i still took the hardest cs class (Operating Systems) and got a B 2010-12-15T23:37:14 my hardest 2 classes were analysis 3 and algebra 4 2010-12-15T23:37:18 algebra 3** 2010-12-15T23:37:30 that's very vague 2010-12-15T23:38:02 analysis was intros to metric, normed and hilbert spaces, algebra 3 was more on group and ring theory from second year 2010-12-15T23:38:17 ah, those are similar to one of my classes 2010-12-15T23:38:20 i already did a real and complex analysis unit before that, for some reason my uni does it the other way to most others 2010-12-15T23:38:40 termed "math studies" and was about 5 courses crammed into the time equivalent of two 2010-12-15T23:38:51 but i get to do lots of analysis and algebra next year, i'm not doing a single applied unit :) 2010-12-15T23:38:54 over a full year 2010-12-15T23:39:02 sounds nice 2010-12-15T23:39:04 have fun with that :) 2010-12-15T23:39:23 i'm done with school, now i have a full-time job 2010-12-15T23:39:39 i'm torn about doing a phd or going off to work 2010-12-15T23:39:48 but i'm at least doing honours in maths next year and maybe masters after that 2010-12-15T23:40:01 phd would probably be in economics or cs with game theory 2010-12-15T23:40:17 heh i can help w the pipe thing 2010-12-15T23:40:18 pretty cool 2010-12-15T23:40:23 its funny because it could take u a really long time 2010-12-15T23:40:32 but i can probably make it in like 15 min 2010-12-15T23:40:35 its one of those rare times 2010-12-15T23:40:42 having a memorized contra code pays off 2010-12-15T23:41:33 SmkMnstr: how long are you going to be around? 2010-12-15T23:41:48 awhile 2010-12-15T23:41:52 i might try and get your help in a bit, i just need to go get some subway 2010-12-15T23:41:59 i'm staving and it's 3 40pm :P 2010-12-15T23:41:59 cool ill probably be here when u get back 2010-12-15T23:42:22 actually i remmeber there is even more stuff u have to do to use stdio 2010-12-15T23:43:28 easier to just read() and write() to fds than to use fgets fputs fwrite 2010-12-15T23:43:55 yeah, i'm realising that 2010-12-15T23:44:09 i'll clean up what i'm trying to do when i get back then get your help 2010-12-15T23:44:13 it's a bit of a mess atm 2010-12-15T23:44:41 cool 2010-12-15T23:51:28 *** _W_ <_W_!~w@irc.w-wins.com> has left #aichallenge