Friday, 2007-11-23

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
mithronash, do you know of a efficient bytes buffer with peek support?00:07
nashchar *?00:08
mithrosomething like a os.pipe but with peek support00:08
nashIn java?00:08
mithrono C00:08
mithroI'm sure I could write a pretty good implimentation - but I would prefer someone elses already optomised version00:09
nashWhat are you reading from?00:09
nashIs there a reason not to use stdlib ?00:09
mithronope, using stdlib would be fine?00:10
nashGenerally00:10
nashIt has peek, and it's generally fairly fast.  libc buffers (using f* calls), it's library calls.00:10
nashRemember if libc is slow... _every_ single program on your system is slow00:10
mithroI was thinking of trying to use unix domain sockets return from socket_pair00:11
mithrobut they don't seem to work for what I want00:11
nashpipe?00:11
mithropipe doesn't have peek00:11
nashHow much do you need to peek?00:11
nashone byte?00:12
nashmithro: ?00:12
mithrowell, actually I just need to know how much data is in the buffer00:12
nashWhat are you _really_ trying to do?00:13
nashthe number of times when I've needed to know how much data is available to be read... is very very small00:14
nashAnd I do C every day, on everything from multicores... to 1meg RTOSes00:15
mithroI need to know if there is a enough data to build the tp packet00:15
nashLook at galaxie ;-)00:16
nashJust read it until there is...00:16
nashread in until you have a header.00:16
nashmalloc the rest of the buffer... keep reading to you can filll the buffer00:16
nashThey can all be done async00:16
mithronash: reading small amounts of data (ie 12 bytes) is horribly inefficent in python00:16
nashThen fix python ;-)00:17
nashmemcpy(12) in C which a fread(12) from a buffer, of read(12) from a socket is fucking fast in C ;-)00:17
mithronash: actually 100*fread(12) is slower then fread(12*100)00:18
nashMaybe.00:18
nashLots of little reads are slower... yes00:19
nashBut... a group little read, fully handled is better then one big read that blocks for ever00:19
nashAnd the cost of looking at the length of a buffer... is about the same as fread(12) anyway...00:20
mithrotpsai-py spends about 40% of it's time copying around strings :(00:24
nashreadv?00:26
mithronash: how do I create a local branch and commit some change to it and then go back to master?00:26
nashDo you know git stash?00:26
nash(man git-stash?)00:26
nashThat may solve you problem... else git checkout -b newbranch ; git commit -a ; git checkout master00:27
nashIf you just want a set of changes kept for a while.. git stash - don't forget to name it (don't just use the default arguments)00:27
nashmithro: ?00:31
mithroI think I'm going to try a combination of using ctypes to create a mutable string and your recv option00:32
nashdid you email me something for the AIs?00:43
mithroyeah a config file00:53
nashsend it again... it's been greyed00:55
mithrosent00:57
nashmithro: [email protected]?00:59
mithroyeah00:59
mithroany luck?01:02
nashnope01:02
nashwant to send it to [email protected] or something?01:02
nashJust arrive01:04
nashd01:04
nashmithro: Should there be a names.txt?01:05
mithroif it doesn't find it, it'll just generate some01:06
nashgalaxie is getting 'bad username or password'01:08
mithroyeah, it needs to issue a user create?01:09
nashI could log on with the previous build01:10
mithronot quite sure, try a different config?01:10
* mithro isn't thinking very straight01:10
mithrowhat does git-switch do?01:11
nashDoes it exists?01:12
mithrono :P01:12
mithromaybe I should just hid under my table and sleep01:12
nashSending Seq 12 Type 5 [MsgGetObjectsByID] Len: 1205601:12
nashThat's a get ID ;-)01:13
mithro:P01:13
nashautoadd_players = yes ;-)01:13
nashHow do I add your AIs?01:14
mithrotry the testai script01:14
mithroI need to make xstruct unpack less braindead it is using massive amounts of string concat01:15
nashImportError: No module named tp.netlib01:18
nashmithro: ?01:20
mithroyou need scratchpad and to run the setup.sh01:20
nashSo it's running - do you need me to do anything special?01:23
mithroyou also want to get the starmapper working01:23
mithronash: and you need to setup the turn stuff so that they are all submitting the EOT stuff correct01:24
mithrosent you an email with starmapper01:24
nashmithro: I need to go in ~5 minutes...01:31
mithrocan't access your work machine from home?01:31
*** llnz has joined #tp01:32
nashI can... but that won;t be until tomorrow01:32
mithrohey llnz01:32
llnzhi mithro01:32
llnzhi all01:33
mithrooh, tpserver-cpp should probably be running in gdb or have core dumps enabled01:33
nashI always have core dumps enabled01:33
llnzi run in gdb01:33
nashAnyway - send me any remaingin instructions, and I'll fire it off tomorrow.01:35
mithrowell I'm heading home too01:37
mithrosee ya01:37
nashbye01:39
*** nash has quit IRC01:39
*** greywhind has joined #tp01:46
*** greywhind_ has quit IRC01:46
*** mithro has quit IRC01:55
*** CIA-10 has quit IRC03:48
*** CIA-10 has joined #tp03:55
*** tuna has quit IRC04:10
*** llnz changes topic to "Thousand Parsec - http://www.thousandparsec.net/ || IRC Logs at http://www.thousandparsec.net/~irc/ || Why not help out? || tpserver-cpp vs tpsai-py, 1 from 5 - http://www.thousandparsec.net/~tim/test-battle.avi"04:27
*** greywhind_ has joined #tp05:46
*** greywhind has quit IRC05:46
* llnz wanders off07:21
llnzlater all07:21
*** llnz has quit IRC07:21
*** tuna-fish has joined #tp07:38
*** tuna-fish is now known as tuna07:38
CIA-10kane * r39 media/promotion/calender/ (8 files): next grouping of calender proofs08:44
*** tuna has quit IRC08:56
*** greywhind has joined #tp09:46
*** greywhind_ has quit IRC09:46
*** JLP has quit IRC11:15
*** greywhind_ has joined #tp11:46
*** greywhind has quit IRC11:46
*** greywhind has joined #tp13:46
*** greywhind_ has quit IRC13:46
*** peres has joined #tp14:22
*** JLP has joined #tp14:54
*** greywhind_ has joined #tp15:46
*** greywhind has quit IRC15:46
*** llnz has joined #tp16:43
*** greywhind_ has quit IRC17:03
*** nash has joined #tp17:35
*** peres has quit IRC18:05
CIA-10llnz tpserver-cpp * r7d7d6f71face /tpserver/ (persistence.cpp persistence.h):18:34
CIA-10Added updateOrderQueue to Persistence.18:34
CIA-10Looks like it was better to split it from saveOrderQueue.18:34
CIA-10llnz tpserver-cpp * rcb870815760b /tpserver/orderqueue.cpp:18:43
CIA-10Use updateOrderQueue instead of saveOrderQueue, and do it in the right place.18:43
CIA-10IE, after updating the modtime. OrderQueue is a little odd because it updates18:43
CIA-10itself into the persistence, but only when an order in the queue is update.18:43
CIA-10llnz tpserver-cpp * rf413c0983c55 /tpserver/ (orderqueue.cpp orderqueue.h):18:51
CIA-10Added methods needed for persistence, getting at internal low-level things.18:51
CIA-10Such as the orderslot list, and setting the owners.18:51
CIA-10llnz tpserver-cpp * r505e2ba40aad /tpserver/ (orderqueue.cpp orderqueue.h):19:40
CIA-10Made getOrderSlots const in OrderQueue.19:40
CIA-10Needed for persistences, which takes a const Orderqueue*.19:40
CIA-10llnz tpserver-cpp * r5b221704e599 /modules/persistence/mysql/ (mysqlpersistence.cpp mysqlpersistence.h):19:41
CIA-10Orders and OrderQueues now handled in MysqlPersistence.19:41
CIA-10Just ObjectParameters and PlayerView to go.19:41
* llnz wanders off19:42
llnzback tomorrow19:42
*** llnz has quit IRC19:42
*** mithro has joined #tp20:56
mithrohey peoples20:56
mithro~seen nash20:58
tpbmithro: nash was last seen in #tp 19 hours, 19 minutes, and 20 seconds ago: <nash> bye20:58
* nash waves to mithro21:27
*** Epyon has quit IRC22:23
*** nash has quit IRC23:42

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!