Re: [9fans] NIX 64-bit kernel is available

2011-09-14 Thread s s
Very nice.

Are you sure you want to call it NIX, though?

A google search for nix kernel returns a lot of unrelated results.

http://www.google.com/#hl=enq=nix+kernel

How about, Plan-64?

 - Leonard


Re: [9fans] NIX 64-bit kernel is available

2011-09-14 Thread s s

 We have discussed this. Nixie was a proposed new name, but for now
 we'd rather get the actual code and distribution right than worry
 about the name.

 John


http://doc.cat-v.org/bell_labs/the_hideous_name/

 - Leonard


[9fans] Nemo book

2011-09-14 Thread s s
Is there an html version of the nemo book?

http://lsub.org/who/nemo/9.pdf

Want to read it as white text on a black background.

 - Leonard


Re: [9fans] Nemo book

2011-09-14 Thread s s
On Wed, Sep 14, 2011 at 5:46 PM, Francisco J Ballesteros n...@lsub.orgwrote:

 Yes, http://lsub.org/who/nemo/9.txt.gz


Cheers.


Re: [9fans] Nemo book

2011-09-14 Thread s s
On Wed, Sep 14, 2011 at 5:46 PM, Francisco J Ballesteros n...@lsub.orgwrote:

 Yes, http://lsub.org/who/nemo/9.txt.gz


Wow is that better.

Too bad there is no css for pdf.  (Or is there?)

Viewing the book now with Firefox/Stylish/Blackify.

http://userstyles.org/styles/2154/blackify

 - Leonard


Re: [9fans] Nemo book

2011-09-14 Thread s s
On Wed, Sep 14, 2011 at 5:50 PM, hiro 23h...@googlemail.com wrote:

 Or use xpdf -rv
 Although I use it for exactly the opposite purpose.


How come no one likes high-contrast-inverse themes?


Re: [9fans] Nemo book

2011-09-14 Thread s s
On Wed, Sep 14, 2011 at 5:50 PM, hiro 23h...@googlemail.com wrote:

 Or use xpdf -rv
 Although I use it for exactly the opposite purpose.


Somehow, plain text is much more enjoyable to read than pdf.


[9fans] 9ttp

2011-09-08 Thread s s
With 9p's ability to send and receive arbitrary information as file i/o,
does http remain necessary?

Is there any reason that 9p cannot do this ...

''HTTP functions as a
request-responsehttp://en.wikipedia.org/wiki/Request-responseprotocol
in the
client-server http://en.wikipedia.org/wiki/Client-server computing model.
In HTTP, a web browser http://en.wikipedia.org/wiki/Web_browser, for
example, acts as a *client*, while an application running on a computer
hosting http://en.wikipedia.org/wiki/Host_%28network%29 a web
sitehttp://en.wikipedia.org/wiki/Web_sitefunctions as a
*server*. The client submits an HTTP *request* message to the server. The
server, which stores content, or provides *resources*, such as
HTMLhttp://en.wikipedia.org/wiki/HTMLfiles, or performs other
functions on behalf of the client, returns a
response message to the client. A response contains completion status
information about the request and may contain any content requested by the
client in its message body.''
  -- http://en.wikipedia.org/wiki/Http#Technical_overview

 - Leonard


Re: [9fans] 9p hello world

2011-09-06 Thread s s
On Tue, Sep 6, 2011 at 1:51 AM, Skip Tavakkolian skip.tavakkol...@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 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


Re: [9fans] 9p hello world

2011-09-05 Thread s s
On Mon, Sep 5, 2011 at 5:03 AM, yy yiyu@gmail.com wrote:

 2011/9/5 s s leonardne...@gmail.com:
  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


[9fans] 9p hello world

2011-09-04 Thread s s
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


Re: [9fans] 9p hello world

2011-09-04 Thread s s
On Sun, Sep 4, 2011 at 9:03 PM, Skip Tavakkolian skip.tavakkol...@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 9pclient and 9pserve from plan9port.

go9p looks promising, though.


Re: [9fans] 9p hello world

2011-09-04 Thread s s
 On Sun, Sep 4, 2011 at 9:03 PM, Skip Tavakkolian 
 skip.tavakkol...@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


Re: [9fans] high precision timings

2011-09-04 Thread s s
On Mon, Sep 5, 2011 at 12:42 AM, ron minnich rminn...@gmail.com wrote:

 The TSC has been badly abused by the chip makers over the last ten
 years. It went through a period of time where it had poor accuracy. Be
 sure to look at your hardware and make sure it's a later chip which
 will give you reasonable TSC behavior.

 ron


Not concerned just yet about the accuracy of the hardware.

Just wondering why the example client outputs invalid arguments, and the
server outputs ...

2011/09/05 00:37:14 bad client connection:  [::1]:57429

Still happy to see something compile, run, and give output, though.

 - Leonard


Re: [9fans] high precision timings

2011-09-04 Thread s s
Sorry, wrong thread.

 - Leonard



Re: [9fans] 9p hello world

2011-09-04 Thread s s
On Mon, Sep 5, 2011 at 1:44 AM, Skip Tavakkolian skip.tavakkol...@gmail.com
 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