From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Sun, 4 Sep 2011 20:34:20 -0400 Message-ID: From: s s To: 9fans@9fans.net Content-Type: multipart/alternative; boundary=20cf300fabc937b73204ac26df34 Subject: [9fans] 9p hello world Topicbox-Message-UUID: 18ef5644-ead7-11e9-9d60-3106f5b1d025 --20cf300fabc937b73204ac26df34 Content-Type: text/plain; charset=ISO-8859-1 Dear 9fans, Looking for a hello world example, between client and server, conversing with 9p. A google search for "9p hello world" returned basically nothing. It seems like there might be a hello world example for libixp ... http://www.anarchyinthetubes.com/src/hello_libixp Looking for an example based on plan9port, though. Any suggestions? Cheers, Leonard --20cf300fabc937b73204ac26df34 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear 9fans,

Looking for a hello world example, between client and se= rver, conversing with 9p.

A google search for "9p hello world&q= uot; returned basically nothing.

It seems like there might be a hell= o world example for libixp ...

http://www.anarchyinthetubes.com/src/hello_libixp

Looki= ng for an example based on plan9port, though.

Any suggestions?
Cheers,
Leonard


--20cf300fabc937b73204ac26df34-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 4 Sep 2011 18:03:57 -0700 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 18f5b2c8-ead7-11e9-9d60-3106f5b1d025 here are a few you can google for: styx-n-9p (Java) limbo-machine (JavaScript) go9p (Go) they include the customary client and server examples. there are implementations in many other languages; however COBOL and FORTRAN implementations are currently missing. -Skip On Sun, Sep 4, 2011 at 5:34 PM, s s wrote: > Dear 9fans, > > Looking for a hello world example, between client and server, conversing > with 9p. > > A google search for "9p hello world" returned basically nothing. > > It seems like there might be a hello world example for libixp ... > > http://www.anarchyinthetubes.com/src/hello_libixp > > Looking for an example based on plan9port, though. > > Any suggestions? > > Cheers, > Leonard > > > From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 4 Sep 2011 21:11:00 -0400 Message-ID: From: s s To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf30050edc51623604ac276207 Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 195e8a5a-ead7-11e9-9d60-3106f5b1d025 --20cf30050edc51623604ac276207 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Sep 4, 2011 at 9:03 PM, Skip Tavakkolian wrote: > here are a few you can google for: > > styx-n-9p (Java) > limbo-machine (JavaScript) > go9p (Go) > > they include the customary client and server examples. there are > implementations in many other languages; however COBOL and FORTRAN > implementations are currently missing. > > -Skip Thanks Skip. Wanted to try 9pclient and 9pserve from plan9port. go9p looks promising, though. --20cf30050edc51623604ac276207 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Sep 4, 2011 at 9:03 PM, Skip Tavakkolian <skip.tavakkolian@gmail.com>= ; wrote:
here are a few you can google for:

styx-n-9p (Java)
limbo-machine (JavaScript)
go9p (Go)

they include the customary client and server examples. there are
implementations in many other languages; however COBOL and FORTRAN
implementations are currently missing.

-Skip

Thanks Skip.

Wanted to try 9pclien= t and 9pserve from plan9port.

go9p looks promising, though.

= =A0

--20cf30050edc51623604ac276207-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 5 Sep 2011 00:44:45 -0400 Message-ID: From: s s To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf300514a2c2c7b804ac2a5e0a Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 197451dc-ead7-11e9-9d60-3106f5b1d025 --20cf300514a2c2c7b804ac2a5e0a Content-Type: text/plain; charset=ISO-8859-1 > On Sun, Sep 4, 2011 at 9:03 PM, Skip Tavakkolian < > skip.tavakkolian@gmail.com> wrote: > >> ... >> go9p (Go) >> >> ... >> >> -Skip > > Compiled and ran go9p/p/srv/examples/timefs.go. Compiled and ran go9p/p/clnt/examples/read.go. Output was ... 2011/09/05 00:40:13 invalid arguments Success? - Leonard --20cf300514a2c2c7b804ac2a5e0a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sun, Sep 4, 2011 at 9:03 PM, Skip Tavakk= olian <skip.tavakkolian@gmail.com> wrote:
...
go9p (Go)

...

-Skip
=A0
Compiled and = ran go9p/p/srv/examples/timefs.go.

Compiled and ran go9p= /p/clnt/examples/read.go.

Output was ...

2011/09/05 00:40:13 = invalid arguments

Success?

=A0- Leonard


--20cf300514a2c2c7b804ac2a5e0a-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 4 Sep 2011 22:44:56 -0700 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 199a13fe-ead7-11e9-9d60-3106f5b1d025 try ./read time a better choice is "cl" client, which lets you navigate the namespace the file server is serving. the -d flag lets you see what is being passed around. $ ../../srv/examples/timefs & [1] 3681 $ ./read time Sun Sep 4 22:32:00 PDT 2011$ $ ./cl 9p> ls time inftime 9p> cat time Sun Sep 4 22:32:12 PDT 20119p> 9p> exiting... $ here's how the plan9port's 9p utility can be used: % 9p -a tcp!localhost!5640 ls inftime time % 9p -a tcp!localhost!5640 read time Sun Sep 4 22:32:34 PDT 2011% -Skip On Sun, Sep 4, 2011 at 9:44 PM, s s wrote: > >> On Sun, Sep 4, 2011 at 9:03 PM, Skip Tavakkolian >> wrote: >>> >>> ... >>> go9p (Go) >>> >>> ... >>> >>> -Skip > > > Compiled and ran go9p/p/srv/examples/timefs.go. > > Compiled and ran go9p/p/clnt/examples/read.go. > > Output was ... > > 2011/09/05 00:40:13 invalid arguments > > Success? > > =A0- Leonard > > > From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 5 Sep 2011 01:53:18 -0400 Message-ID: From: s s To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf30050edce956dc04ac2b5383 Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 19a01ede-ead7-11e9-9d60-3106f5b1d025 --20cf30050edce956dc04ac2b5383 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Sep 5, 2011 at 1:44 AM, Skip Tavakkolian wrote: > try > > ./read time > > a better choice is "cl" client, which lets you navigate the namespace > the file server is serving. the -d flag lets you see what is being > passed around. > > $ ../../srv/examples/timefs & > [1] 3681 > $ ./read time > Sun Sep 4 22:32:00 PDT 2011$ > $ ./cl > 9p> ls > time > inftime > 9p> cat time > Sun Sep 4 22:32:12 PDT 20119p> > 9p> exiting... > $ > > here's how the plan9port's 9p utility can be used: > > % 9p -a tcp!localhost!5640 ls > inftime > time > % 9p -a tcp!localhost!5640 read time > Sun Sep 4 22:32:34 PDT 2011% > > -Skip Woah. Thanks. - Leonard --20cf30050edce956dc04ac2b5383 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Sep 5, 2011 at 1:44 AM, Skip Tavakkolian <skip.tavakkolian@gmail.com>= ; wrote:
try

./read time

a better choice is "cl" client, which lets you navigate the names= pace
the file server is serving. the -d flag lets you see what is being
passed around.

$ ../../srv/examples/timefs &
[1] 3681
$ ./read time
Sun Sep =A04 22:32:00 PDT 2011$
$ ./cl
9p> ls
time
inftime
9p> cat time
Sun Sep =A04 22:32:12 PDT 20119p>
9p> exiting...
$

here's how the plan9port's 9p utility can be used:

% 9p -a tcp!localhost!5640 ls
inftime
time
% 9p -a tcp!localhost!5640 read time
Sun Sep =A04 22:32:34 PDT 2011%

-Skip

Woah.

Thanks.

=A0- Leonard<= br>=A0
=A0

--20cf30050edce956dc04ac2b5383-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 5 Sep 2011 11:03:19 +0200 Message-ID: From: yy To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 19b904f8-ead7-11e9-9d60-3106f5b1d025 2011/9/5 s s : > It seems like there might be a hello world example for libixp ... > > http://www.anarchyinthetubes.com/src/hello_libixp I wrote that, but is needing some attention. It is quite old, and although is still valid, I should finish more examples. Extending it to p9p's 9p(3) and Inferno's styxserver(10) is in my TODO list, but it will still be there for a while. If you write a p9p's hello world server, let me know and I can add it to that page. By the way, there probably are more 9p implementations than real programs using them, but they are not very different. What you really need to understand is how the protocol works. It's actually quite simple. Nemo's book includes a very good explanation, which is completed by the man pages. Also, try to find an existing file server which matches what you need as much as possible and go on from there. -- - yiyus || JGL . From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 5 Sep 2011 06:56:07 -0400 Message-ID: From: s s To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf300514a2dbbcdb04ac2f8eae Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 19ca5ca8-ead7-11e9-9d60-3106f5b1d025 --20cf300514a2dbbcdb04ac2f8eae Content-Type: text/plain; charset=ISO-8859-1 On Mon, Sep 5, 2011 at 5:03 AM, yy wrote: > 2011/9/5 s s : > > It seems like there might be a hello world example for libixp ... > > > > http://www.anarchyinthetubes.com/src/hello_libixp > > I wrote that, but is needing some attention. It is quite old, and > although is still valid, I should finish more examples. Extending it > to p9p's 9p(3) and Inferno's styxserver(10) is in my TODO list, but it > will still be there for a while. > > If you write a p9p's hello world server, let me know and I can add it > to that page. > > By the way, there probably are more 9p implementations than real > programs using them, but they are not very different. What you really > need to understand is how the protocol works. It's actually quite > simple. Nemo's book includes a very good explanation, which is > completed by the man pages. Also, try to find an existing file server > which matches what you need as much as possible and go on from there. > > > -- > - yiyus || JGL . > Compiled and ran "timefs" in the go9p examples. Wondering now how to do timefs in p9p. Thought using p9p would be more concise, since it has 9pclient library and 9pserve program. Wondering how to write a timefs in go, that uses 9pclient and 9pserve. What is Nemo's book? - Leonard --20cf300514a2dbbcdb04ac2f8eae Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Sep 5, 2011 at 5:03 AM, yy <yiyu.jgl@gmail.com> wrote:
2011/9/5 s s <leonardnemoi@gma= il.com>:
> It seems like there might be a hello world example f= or libixp ...
>
> http://www.anarchyinthetubes.com/src/hello_libixp

I wrote that, but is needing some attention. It is quite old, and
although is still valid, I should finish more examples. Extending it
to p9p's 9p(3) and Inferno's styxserver(10) is in my TODO list, but= it
will still be there for a while.

If you write a p9p's hello world server, let me know and I can add it to that page.

By the way, there probably are more 9p implementations than real
programs using them, but they are not very different. What you really
need to understand is how the protocol works. It's actually quite
simple. Nemo's book includes a very good explanation, which is
completed by the man pages. Also, try to find an existing file server
which matches what you need as much as possible and go on from there.


--
- yiyus || JGL .

Compiled and ran "tim= efs" in the go9p examples.

Wondering now how to do timefs in p9= p.

Thought using p9p would be more concise, since it has 9pclient li= brary and 9pserve program.

Wondering how to write a timefs in go, that uses 9pclient and 9pserve.<= br>
What is Nemo's book?

=A0- Leonard



--20cf300514a2dbbcdb04ac2f8eae-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 5 Sep 2011 14:22:39 +0200 Message-ID: From: pmarin 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] 9p hello world Topicbox-Message-UUID: 19cf13b0-ead7-11e9-9d60-3106f5b1d025 http://lsub.org/who/nemo/9.intro.pdf On Mon, Sep 5, 2011 at 12:56 PM, s s wrote: > On Mon, Sep 5, 2011 at 5:03 AM, yy wrote: >> >> 2011/9/5 s s : >> > It seems like there might be a hello world example for libixp ... >> > >> > http://www.anarchyinthetubes.com/src/hello_libixp >> >> I wrote that, but is needing some attention. It is quite old, and >> although is still valid, I should finish more examples. Extending it >> to p9p's 9p(3) and Inferno's styxserver(10) is in my TODO list, but it >> will still be there for a while. >> >> If you write a p9p's hello world server, let me know and I can add it >> to that page. >> >> By the way, there probably are more 9p implementations than real >> programs using them, but they are not very different. What you really >> need to understand is how the protocol works. It's actually quite >> simple. Nemo's book includes a very good explanation, which is >> completed by the man pages. Also, try to find an existing file server >> which matches what you need as much as possible and go on from there. >> >> >> -- >> - yiyus || JGL . > > Compiled and ran "timefs" in the go9p examples. > > Wondering now how to do timefs in p9p. > > Thought using p9p would be more concise, since it has 9pclient library an= d > 9pserve program. > > Wondering how to write a timefs in go, that uses 9pclient and 9pserve. > > What is Nemo's book? > > =C2=A0- Leonard > > > > From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 5 Sep 2011 08:26:32 -0400 Message-ID: From: Andreas Wagner To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 19d3bc76-ead7-11e9-9d60-3106f5b1d025 > What is Nemo's book? http://lsub.org/who/nemo/9.intro.pdf http://www.lulu.com/product/paperback/introduction-to-os-abstractions-using-plan-9-from-bell-labs/5482490 - Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 5 Sep 2011 22:51:40 -0700 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 19dcf188-ead7-11e9-9d60-3106f5b1d025 a good example app is styxbrowser - an android app. it's based on styx-n-9p= . -Skip On Sun, Sep 4, 2011 at 10:53 PM, s s wrote: > On Mon, Sep 5, 2011 at 1:44 AM, Skip Tavakkolian > wrote: >> >> try >> >> ./read time >> >> a better choice is "cl" client, which lets you navigate the namespace >> the file server is serving. the -d flag lets you see what is being >> passed around. >> >> $ ../../srv/examples/timefs & >> [1] 3681 >> $ ./read time >> Sun Sep =A04 22:32:00 PDT 2011$ >> $ ./cl >> 9p> ls >> time >> inftime >> 9p> cat time >> Sun Sep =A04 22:32:12 PDT 20119p> >> 9p> exiting... >> $ >> >> here's how the plan9port's 9p utility can be used: >> >> % 9p -a tcp!localhost!5640 ls >> inftime >> time >> % 9p -a tcp!localhost!5640 read time >> Sun Sep =A04 22:32:34 PDT 2011% >> >> -Skip > > Woah. > > Thanks. > > =A0- Leonard > > > From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 6 Sep 2011 02:16:45 -0400 Message-ID: From: s s To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf300fb245a77d5e04ac3fc556 Subject: Re: [9fans] 9p hello world Topicbox-Message-UUID: 19e10c46-ead7-11e9-9d60-3106f5b1d025 --20cf300fb245a77d5e04ac3fc556 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Sep 6, 2011 at 1:51 AM, Skip Tavakkolian wrote: > a good example app is styxbrowser - an android app. it's based on > styx-n-9p. > > -Skip Nice. What I'd really like to see is an "addressbookfs" example. The server stores a list of addresses, in a flat-file, or a database. The server also provides control-files for CRUD operations. The server optionally provides html-files, as an interface to CRUD operations. Anyone know if such an example exists? Wondering whether such an example would prove that p9p could replace a LAMP stack. - Leonard --20cf300fb245a77d5e04ac3fc556 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Sep 6, 2011 at 1:51 AM, Skip Tavakkolian <skip.tavakkolian@gmail.com>= ; wrote:
a good example app is styxbrowser - an android app. it's based on styx-= n-9p.

-Skip

Nice.

What I'd really like to = see is an "addressbookfs" example.

The server stores a lis= t of addresses, in a flat-file, or a database.

The server also provi= des control-files for CRUD operations.

The server optionally provides html-files, as an interface to CRUD oper= ations.

Anyone know if such an example exists?

Wondering whet= her such an example would prove that p9p could replace a LAMP stack.

=A0- Leonard

=A0

--20cf300fb245a77d5e04ac3fc556--