[9fans] chess?
Hello, perhaps it's there but I can't find it... Is there a chess game on plan9? Thanks Ruda
Re: [9fans] chess?
term%9fs sources term% cd /n/sources/contrib term% du -a . | grep chess On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora rudolf.syk...@gmail.comwrote: Hello, perhaps it's there but I can't find it... Is there a chess game on plan9? Thanks Ruda
Re: [9fans] chess?
term%9fs sources term% cd /n/sources/contrib term% du -a . | grep chess On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora rudolf.syk...@gmail.comwrote: Hello, perhaps it's there but I can't find it... Is there a chess game on plan9? Thanks Ruda The canonical way to this is this, I guess: % 9fs sources % grep chess /n/sources/lsr
Re: [9fans] chess?
if you want to do the search dressed as a priest, by all means, go ahead my firend... *noun* 1. *1*. the prescribed official dress of the clergy. Cardinal Bea in full canonicals On Sun, Jan 5, 2014 at 12:03 PM, ste...@kamalatta.dyndns.org wrote: term%9fs sources term% cd /n/sources/contrib term% du -a . | grep chess On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora rudolf.syk...@gmail.com wrote: Hello, perhaps it's there but I can't find it... Is there a chess game on plan9? Thanks Ruda The canonical way to this is this, I guess: % 9fs sources % grep chess /n/sources/lsr
Re: [9fans] chess?
if you want to do the search dressed as a priest, by all means, go ahead my firend... *noun* 1. *1*. the prescribed official dress of the clergy. Cardinal Bea in full canonicals On Sun, Jan 5, 2014 at 12:03 PM, ste...@kamalatta.dyndns.org wrote: term%9fs sources term% cd /n/sources/contrib term% du -a . | grep chess On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora rudolf.syk...@gmail.com wrote: Hello, perhaps it's there but I can't find it... Is there a chess game on plan9? Thanks Ruda The canonical way to this is this, I guess: % 9fs sources % grep chess /n/sources/lsr top posts are evil, as you can see stevie
Re: [9fans] chess?
On 5 January 2014 12:27, Conor Williams conor.willi...@gmail.com wrote: term%9fs sources term% cd /n/sources/contrib term% du -a . | grep chess Thanks, this is possibly a way, but, at least in my case, this takes ages... (Say it can run for 45 mins; maybe much more; I do not know the true reason why, but I intuitively suspect the protocol.) Therefore I asked for a more specific pointer. Also, generally, there should be a quicker way. Ruda
Re: [9fans] chess?
On 5 January 2014 12:27, Conor Williams conor.willi...@gmail.com wrote: term%9fs sources term% cd /n/sources/contrib term% du -a . | grep chess Thanks, this is possibly a way, but, at least in my case, this takes ages... (Say it can run for 45 mins; maybe much more; I do not know the true reason why, but I intuitively suspect the protocol.) Therefore I asked for a more specific pointer. Also, generally, there should be a quicker way. Ruda It runs much faster if you search in the lsr index file: % 9fs sources % cd /n/sources % time grep chess lsr ./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697 ./plan9/sys/src/cmd/gs/examples/chess.ps 664 1137452689 61791 0.58u 0.18s 315.60r grep chess lsr So here are results I found ^^^ stevie
Re: [9fans] chess?
On 5 January 2014 14:12, ste...@kamalatta.dyndns.org wrote: It runs much faster if you search in the lsr index file: % 9fs sources % cd /n/sources % time grep chess lsr ./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697 ./plan9/sys/src/cmd/gs/examples/chess.ps 664 1137452689 61791 0.58u 0.18s 315.60r grep chess lsr So here are results I found ^^^ stevie yes. this is much faster, thanks. the only question left for me is how often the lsr file gets regenerated... thanks ruda
Re: [9fans] chess?
On 5 January 2014 14:12, ste...@kamalatta.dyndns.org wrote: It runs much faster if you search in the lsr index file: % 9fs sources % cd /n/sources % time grep chess lsr ./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697 ./plan9/sys/src/cmd/gs/examples/chess.ps 664 1137452689 61791 0.58u 0.18s 315.60r grep chess lsr So here are results I found ^^^ stevie yes. this is much faster, thanks. the only question left for me is how often the lsr file gets regenerated... thanks ruda It was regenerated today. So I guess daily stevie
Re: [9fans] chess?
Thanks, this is possibly a way, but, at least in my case, this takes ages... (Say it can run for 45 mins; maybe much more; I do not know the true reason why, but I intuitively suspect the protocol.) Therefore I asked for a more specific pointer. Also, generally, there should be a quicker way. it's easy to blame the protocol. but it's more than that. 0. the i/o unit is just 8k, this means that directories like /sys/src/9 take 2 or more round trips. this is trivial to fix by upping MAXRPC in devmnt. i've uppted this to 56k + IOHDRSZ. this makes a difference even when the rtt is 50µs. 1. (or 0a) the kernel won't issue more than one concurrent rpc for the same request. 2. find/du are single threaded, so they they take full rtt latency on each syscall. there's a small demonstration of 2 at the end of this email. - erik --- note that except for the fcp test, rtt dominates. even 384kbps is more than enough to keep up. in fact, except for the fcp test time_link0 * rtt_link0/rtt_link1 tracks pretty closely with the actual result. since link1 is dsl, keeping track of the actual rtt could have reduced some of this error. link0: rtt ~ 32ms uplink/downlink ~ 100mbps/100mbps: 0.29u 0.37s 895.45r rc -c find | grep chess # status= find 7086421: errors| 0.03u 0.03s 68.77r rc -c cp lsr /tmp grep chess /tmp/lsr .0.04u 0.10s 5.40r rc -c fcp lsr /tmp grep chess /tmp/lsr link1: rtt ~ 52ms uplink/downlink ~ .384mbps/1.5mbps 0.00u 0.00s 1468.26r rc -c find | grep chess 0.00u 0.01s 131.03r rc -c cp lsr /tmp grep chess /tmp/lsr /dev/null 0.00u 0.00s 33.61r rc -c fcp lsr /tmp grep chess /tmp/lsr /dev/null
Re: [9fans] chess?
On 5 January 2014 15:36, erik quanstrom quans...@quanstro.net wrote: Thanks, this is possibly a way, but, at least in my case, this takes ages... (Say it can run for 45 mins; maybe much more; I do not know the true reason why, but I intuitively suspect the protocol.) Therefore I asked for a more specific pointer. Also, generally, there should be a quicker way. it's easy to blame the protocol. but it's more than that. 0. the i/o unit is just 8k, this means that directories like /sys/src/9 take 2 or more round trips. this is trivial to fix by upping MAXRPC in devmnt. i've uppted this to 56k + IOHDRSZ. this makes a difference even when the rtt is 50µs. 1. (or 0a) the kernel won't issue more than one concurrent rpc for the same request. 2. find/du are single threaded, so they they take full rtt latency on each syscall. there's a small demonstration of 2 at the end of this email. - erik --- note that except for the fcp test, rtt dominates. even 384kbps is more than enough to keep up. in fact, except for the fcp test time_link0 * rtt_link0/rtt_link1 tracks pretty closely with the actual result. since link1 is dsl, keeping track of the actual rtt could have reduced some of this error. link0: rtt ~ 32ms uplink/downlink ~ 100mbps/100mbps: 0.29u 0.37s 895.45r rc -c find | grep chess # status= find 7086421: errors| 0.03u 0.03s 68.77r rc -c cp lsr /tmp grep chess /tmp/lsr .0.04u 0.10s 5.40r rc -c fcp lsr /tmp grep chess /tmp/lsr link1: rtt ~ 52ms uplink/downlink ~ .384mbps/1.5mbps 0.00u 0.00s 1468.26r rc -c find | grep chess 0.00u 0.01s 131.03r rc -c cp lsr /tmp grep chess /tmp/lsr /dev/null 0.00u 0.00s 33.61r rc -c fcp lsr /tmp grep chess /tmp/lsr /dev/null Thanks for the information! R
Re: [9fans] chess?
On 5 January 2014 14:12, ste...@kamalatta.dyndns.org wrote: % 9fs sources % cd /n/sources % time grep chess lsr ./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697 ./plan9/sys/src/cmd/gs/examples/chess.ps 664 1137452689 61791 0.58u 0.18s 315.60r grep chess lsr So here are results I found ^^^ So now I know there is something in Steve's contrib. However, I do not really know how to proceed. It seems to me that contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess is just some script whose use is one big unknown to me. Its purpose seems to be to create a mkfile and is probably intended to be run in a directory with gnuchess source (which is (?) to be downloaded separately). I have installed the mkmk thing using contrib/gui, downloaded the gnuchess source, extracted it, copied the chess script into it, ran it, but it produced quite a few error messages. Can anybody tell me what they did to get the chess program running? (Will there be a board as well?) Thank you. Ruda PS.: It's a pity there isn't such a thing like plan9 that would just work :)
Re: [9fans] chess?
Quoting Rudolf Sykora rudolf.syk...@gmail.com: PS.: It's a pity there isn't such a thing like plan9 that would just work :) Plan 9 works fine. It's gnu crap that is difficult. 9front experimented with providing binary packages for various things and it was more trouble than it was worth khm
[9fans] chess?
Hello all, How do you play chess with plan9? I saw a gnuchess version in the games's man page of the first edition: doc.cat-v.org/plan_9/1st_edition/manual.pdf Any board also? Thanks in advance, trebol.