From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 10 Feb 2013 20:05:32 +0000 From: trebol To: 9fans <9fans@9fans.net> Message-ID: <20130210200531.GA6455@one.invalid.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [9fans] chess? Topicbox-Message-UUID: 167fccbc-ead8-11e9-9d60-3106f5b1d025 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. From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Sun, 5 Jan 2014 11:37:11 +0100 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: [9fans] chess? Topicbox-Message-UUID: ad4c6826-ead8-11e9-9d60-3106f5b1d025 Hello, perhaps it's there but I can't find it... Is there a chess game on plan9? Thanks Ruda From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 5 Jan 2014 11:27:00 +0000 Message-ID: From: Conor Williams To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e013d1e8e0026df04ef376cb8 Subject: Re: [9fans] chess? Topicbox-Message-UUID: ad64770e-ead8-11e9-9d60-3106f5b1d025 --089e013d1e8e0026df04ef376cb8 Content-Type: text/plain; charset=ISO-8859-1 term%9fs sources term% cd /n/sources/contrib term% du -a . | grep chess On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora wrote: > Hello, > > perhaps it's there but I can't find it... > > Is there a chess game on plan9? > > Thanks > Ruda > > --089e013d1e8e0026df04ef376cb8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
term%9fs sources
term% cd /n/sources/contrib
term% du -a . | grep chess



On Sun, Jan 5, 2014 at 10:37 AM, R= udolf Sykora <rudolf.sykora@gmail.com> wrote:
Hello,

perhaps it's there but I can't find it...

Is there a chess game on plan9?

Thanks
Ruda


--089e013d1e8e0026df04ef376cb8-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Sun, 5 Jan 2014 13:03:19 +0100 From: stevie@kamalatta.dyndns.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] chess? Topicbox-Message-UUID: ad6c9bd2-ead8-11e9-9d60-3106f5b1d025 > term%9fs sources > term% cd /n/sources/contrib > term% du -a . | grep chess > > > > On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora 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 From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 5 Jan 2014 12:08:43 +0000 Message-ID: From: Conor Williams To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e0158b8662dae7a04ef3801aa Subject: Re: [9fans] chess? Topicbox-Message-UUID: ad7231a0-ead8-11e9-9d60-3106f5b1d025 --089e0158b8662dae7a04ef3801aa Content-Type: text/plain; charset=ISO-8859-1 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, 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 >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 > > > --089e0158b8662dae7a04ef3801aa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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.<= /div>
    "Cardi= nal Bea in full canonicals"



On Sun, Jan 5, 2014 at 12:03 PM, <s= tevie@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.sykora@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



--089e0158b8662dae7a04ef3801aa-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Sun, 5 Jan 2014 13:25:13 +0100 From: stevie@kamalatta.dyndns.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] chess? Topicbox-Message-UUID: ad772494-ead8-11e9-9d60-3106f5b1d025 > 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, 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 > >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 From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 5 Jan 2014 14:02:53 +0100 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] chess? Topicbox-Message-UUID: ad7d7452-ead8-11e9-9d60-3106f5b1d025 On 5 January 2014 12:27, Conor Williams 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <766d465f1e46b831fdadd684831fc89b@emmy.local> To: 9fans@9fans.net Date: Sun, 5 Jan 2014 14:12:36 +0100 From: stevie@kamalatta.dyndns.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] chess? Topicbox-Message-UUID: ad83ef6c-ead8-11e9-9d60-3106f5b1d025 > On 5 January 2014 12:27, Conor Williams 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 From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <766d465f1e46b831fdadd684831fc89b@emmy.local> References: <766d465f1e46b831fdadd684831fc89b@emmy.local> Date: Sun, 5 Jan 2014 14:39:25 +0100 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] chess? Topicbox-Message-UUID: ad8c0c42-ead8-11e9-9d60-3106f5b1d025 On 5 January 2014 14:12, 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Sun, 5 Jan 2014 15:33:17 +0100 From: stevie@kamalatta.dyndns.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] chess? Topicbox-Message-UUID: ad969d24-ead8-11e9-9d60-3106f5b1d025 > On 5 January 2014 14:12, 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 5 Jan 2014 09:36:45 -0500 To: 9fans@9fans.net Message-ID: <413bc7b7a183474c7405763c23674fe6@brasstown.quanstro.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] chess? Topicbox-Message-UUID: ad9cdf40-ead8-11e9-9d60-3106f5b1d025 > Thanks, this is possibly a way, but, at least in my case, this takes ag= es... > (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=C2=B5s. 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=3D 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 From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <413bc7b7a183474c7405763c23674fe6@brasstown.quanstro.net> References: <413bc7b7a183474c7405763c23674fe6@brasstown.quanstro.net> Date: Sun, 5 Jan 2014 17:02:23 +0100 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] chess? Topicbox-Message-UUID: ada82ada-ead8-11e9-9d60-3106f5b1d025 On 5 January 2014 15:36, erik quanstrom wrote: >> Thanks, this is possibly a way, but, at least in my case, this takes age= s... >> (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=C2=B5s. > > 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=3D find 708642= 1: 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/n= ull > 0.00u 0.00s 33.61r rc -c fcp lsr /tmp && grep chess /tmp/lsr >/dev/= null > Thanks for the information! R From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <766d465f1e46b831fdadd684831fc89b@emmy.local> References: <766d465f1e46b831fdadd684831fc89b@emmy.local> Date: Sun, 5 Jan 2014 17:16:44 +0100 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] chess? Topicbox-Message-UUID: adb0238e-ead8-11e9-9d60-3106f5b1d025 On 5 January 2014 14:12, 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 :) From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 5 Jan 2014 16:47:22 +0000 Message-ID: <20140105164722.Horde.DnL9wRZavDvSbGOkv505Cw1@ssl.eumx.net> From: Kurt H Maier To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: <766d465f1e46b831fdadd684831fc89b@emmy.local> In-Reply-To: User-Agent: Internet Messaging Program (IMP) H5 (6.1.4) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Subject: Re: [9fans] chess? Topicbox-Message-UUID: adc9e350-ead8-11e9-9d60-3106f5b1d025 Quoting Rudolf Sykora : > 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