Re: [9fans] Very Off-Topic: Anybody here reads Sci-Fi? :)

2008-12-04 Thread Juan Céspedes
Hey, doesn't anybody like Orson Scott Card?

His books (specially Ender's Game and Ender's Shadow) are probably
among my top-5.

-- 
Juan Cespedes
http://www.cespedes.org/



Re: [9fans] Very Off-Topic: Anybody here reads Sci-Fi? :)

2008-12-04 Thread Robert Raschke
I very much enjoy Samuel R. Delany
(http://www2.pcc.com/staff/jay/delany/); especially Babel-17, Nova,
Stars in My Pocket Like Grains of Sand and Dhalgren. The latter one is
a good one for the holiday, as it's a tad longer. His short stories
are well worth seeking out as well. His stories are characterised by a
focus on people on the fringes of society without making a big deal of
it.

Also very enjoyable are books by Ken MacLeod
(http://en.wikipedia.org/wiki/Ken_MacLeod). His first one, The Star
Fraction, is a gem. Although his later books employ a little bit too
much flashback.

And I second Ursula Le Guin. especially the books set in the Hainish
universe. Although you can give The Telling a miss, unless you like
religious epiphanies.

And finally, for good old fashioned, sillyness, Alan Dean Foster.

Robby



[9fans] initialization of anonymous structs.

2008-12-04 Thread Gorka Guardiola
Say I have a couple of structs like:

typedef struct A A;
typedef struct B B;

struct A
{
  int a1;
  int a2;
};

struct B
{
 A;
 int b1;
 int b2;
};

Now I want to declare a variable of kind B with parts initialized. Is
there anyway to initialize the A inside the B?. I have tried:

B bvar = {
.a1 2
.b1 2
};


B bvar = {
.a1=2
.b1=2
};

B bvar = {
.A { .a1=2}
.b1 2
};

B bvar = {
.A={ .a1 2}
.b1 2
};

B bvar = {
.A={2}
.b1 2
};

I always get the error that the field does not exist.

I have looked at the code of the compiler
and run it with -di and have not been able to figure out a way to initialize
the anonymous struct.

Am I missing something?. Is there a way to do this?.

-- 
- curiosity sKilled the cat



Re: [9fans] initialization of anonymous structs.

2008-12-04 Thread Gorka Guardiola
On Thu, Dec 4, 2008 at 1:07 PM, Gorka Guardiola [EMAIL PROTECTED] wrote:
 Say I have a couple of structs like:

 typedef struct A A;
 typedef struct B B;

 struct A
 {
  int a1;
  int a2;
 };

 struct B
 {
 A;
 int b1;
 int b2;
 };

 Now I want to declare a variable of kind B with parts initialized. Is
 there anyway to initialize the A inside the B?. I have tried:

 B bvar = {
.a1 2
.b1 2
 };


There is a way, with a display, but I wanted to name the fields.
This works:

B bvar = {
  0,
  0,
  0,
  0
};

I guess I can always add comments.

-- 
- curiosity sKilled the cat



Re: [9fans] initialization of anonymous structs.

2008-12-04 Thread Sape Mullender
typedef struct A A;
typedef struct B B;

struct A
{
 int a1;
 int a2;
};

struct B
{
A;
int b1;
int b2;
};

B bvar = {
.B = {
.a1 = 2,
.b1 = 2,
},
};
---BeginMessage---
On Thu, Dec 4, 2008 at 1:07 PM, Gorka Guardiola [EMAIL PROTECTED] wrote:
 Say I have a couple of structs like:

 typedef struct A A;
 typedef struct B B;

 struct A
 {
  int a1;
  int a2;
 };

 struct B
 {
 A;
 int b1;
 int b2;
 };

 Now I want to declare a variable of kind B with parts initialized. Is
 there anyway to initialize the A inside the B?. I have tried:

 B bvar = {
.a1 2
.b1 2
 };


There is a way, with a display, but I wanted to name the fields.
This works:

B bvar = {
  0,
  0,
  0,
  0
};

I guess I can always add comments.

-- 
- curiosity sKilled the cat---End Message---


Re: [9fans] initialization of anonymous structs.

2008-12-04 Thread roger peppe
On Thu, Dec 4, 2008 at 12:33 PM, Sape Mullender
[EMAIL PROTECTED] wrote:
 B bvar = {
.B = {
.a1 = 2,
.b1 = 2,
},
 };

that doesn't work for me.
i get:
x.c:18 structure element not found B
x.c:18 more initializers than structure: bvar

changing the .B to .A doesn't work either, nor does
{.A = {.a1 = 3}, .b1 = 4}
which intuitively (without looking at the compiler code) seems the
most likely to work...



Re: [9fans] Very Off-Topic: Anybody here reads Sci-Fi? :)

2008-12-04 Thread roger peppe
i feel extremely hypocritical responding to this thread,
because it really *is* so very off topic, but i have to
put in a plug for Greg Egan. absolutely brilliant for extreme
(and well thought out) technological extrapolation. he's got a computer-sciency
background (he might even have heard of plan 9...)

i'm stopping there, though i could go on and on.



Re: [9fans] How to implement a moral equivalent of automounter

2008-12-04 Thread Steve Simon
 AFS has its warts, but, trust me, if you've used it for a while,
 you will not find yourself excitedly perusing the volume location
 database to see where your bits are coming from.  

Is there an AFS client for plan9 anywhere?

Just curious.

-Steve



Re: [9fans] initialization of anonymous structs.

2008-12-04 Thread erik quanstrom
 On Thu, Dec 4, 2008 at 12:33 PM, Sape Mullender
 [EMAIL PROTECTED] wrote:
 B bvar = {
.B = {
.a1 = 2,
.b1 = 2,
},
 };
 
 that doesn't work for me.
 i get:
 x.c:18 structure element not found B
 x.c:18 more initializers than structure: bvar
 
 changing the .B to .A doesn't work either, nor does
 {.A = {.a1 = 3}, .b1 = 4}
 which intuitively (without looking at the compiler code) seems the
 most likely to work...

seems like a subtle compiler nit (i hope i'm not out-of-date
again), this initialization does work

B bvar = {
{.a1 = 1,},
.b1 = 1,
};

the {} fix the problem but should not be necessary.

- erik




Re: [9fans] Very Off-Topic: Anybody here reads Sci-Fi? :)

2008-12-04 Thread Kim Shrier

On Dec 4, 2008, at 8:01 AM, roger peppe wrote:


i feel extremely hypocritical responding to this thread,
because it really *is* so very off topic, but i have to
put in a plug for Greg Egan. absolutely brilliant for extreme
(and well thought out) technological extrapolation. he's got a  
computer-sciency

background (he might even have heard of plan 9...)

i'm stopping there, though i could go on and on.



I have noticed a dearth of recommendations for the very early sci-fi
writers.  I enjoy reading Jules Verne.  In particular, Journey to to
the Center of the Earth, and Mysterious Island.  Then there is
H. G. Wells.  The Time Machine has already been mentioned but other
ones I liked are A Story of Days to Come, When the Sleeper Wakes,
and I find his numerous short stories interesting.  If you are looking
for something in a lighter vein, there is Edgar Rice Burroughs.  I
liked his At the Earth's Core series and his Venus and Mars series.

Kim





Re: [9fans] APE and listen(2B)

2008-12-04 Thread lucio
 secondly, reveal is meant to drop into background, accepting
 connections on TCP/4523 where it replies with the concatenation of the
 originating IPv4 address and port number.
 
 is there a reason for not using listen(8)?  all that is needed is a
 script in /bin/service/tcp4523 nearly identical /bin/service/tcp565

Yes, because I'm trying to tighten up on APE so that it makes sense
when in turn it is ported to GCC.  Enough people think GCC is a
worthwhile investment, even though it seems like a lot of effort to
me, that it is worth getting APE and GNU to converge as much as
possible to avoid unnecessary repetition.

++L




Re: [9fans] How to implement a moral equivalent of automounter

2008-12-04 Thread Roman V. Shaposhnik
On Thu, 2008-12-04 at 02:39 -0500, Dave Eckhardt wrote:
  P.S. I've seen this disbelief in the fact that automoter + NFS
  actually can be really convenient mostly come from Linux people.
 
 Perspective depends on experience.
 
 AFS has its warts, but, trust me, if you've used it for a while,
 you will not find yourself excitedly perusing the volume location
 database to see where your bits are coming from.  In fact, you
 generally will not notice when your volume moves from one server
 to another, even if you are reading from and writing to it at
 the time.

This is an interesting point. At some distant point in the past
(last century, actually) I was drawn to AFS because of the features,
but left in horror because of the complexity.

I guess it doesn't really matter if your environment is being managed
by a good IT -- you just reap the benefits. But as a tinkerer,
I wouldn't call AFS malleable.

Thanks,
Roman.




Re: [9fans] Very Off-Topic: Anybody here reads Sci-Fi? :)

2008-12-04 Thread john
 Hey, doesn't anybody like Orson Scott Card?
 
 His books (specially Ender's Game and Ender's Shadow) are probably
 among my top-5.
 
 -- 
 Juan Cespedes
 http://www.cespedes.org/

Ender's Game is fine.  I don't think I read Ender's Shadow.  However,
I read the Homecoming books and got suspicious part way into the first
one...  by the time I approached the end I was confirmed in my
suspicion that he was rewriting the Book of Mormon (albeit with a
slightly more believable storyline than the original).  This turned me
off so strongly that I haven't read any of his other books since.

Go Heinlein is my recommendation, the early stuff especially.  Try his
Expanded Universe.  Then after you get a taste for his writing, read
Stranger in a Strange Land, followed by Starship Troopers, and see
what got all those hippies so riled up.  Avoid the later stuff where
he essentially goes crazy.

VERNOR VINGE.  Ron and others will appreciate his novel The Peace
War, in which Lawrence Livermore National Labs has taken over the
world.  A Fire Upon the Deep and A Deepness in the Sky are also
brilliant.

Dune is essential, as noted earlier.  Skip anything by Brian Herbert.

Charles Stross' Atrocity Archives is excellent too, but I'm a sucker
for techno-Lovecraftian stuff.

And yes, read Jules Verne and H G Wells.  I got A Journey to the
Center of the Earth in 3rd grade and read it until the cover fell
off...  then read it a few more times for good measure.



John Floren, Duke of Off-topic




Re: [9fans] How to implement a moral equivalent of automounter

2008-12-04 Thread Dave Eckhardt
 At some distant point in the past (last century, actually)
 I was drawn to AFS because of the features, but left in
 horror because of the complexity.

The goal was adding an enterprise-scale distributed file
system to an existing operating system (Unix), where
enterprise-scale meant 5,000 users (the first prototype
supported 400 users on 120 workstations in 1984; this
evening CMU's AFS cell hosts 30,821 user volumes, roughly
half a gigabyte each; there are cells with more users and
cells with more bits.

It may be the case that 25 years later NFSv4 solves all the
same problems with greater elegance--which would be good,
because civilization should advance, and it really is useful
for a community of 30k people to seamlessly share files.

 I guess it doesn't really matter if your environment is
 being managed by a good IT -- you just reap the benefits.
 But as a tinkerer, I wouldn't call AFS malleable.

A 747 isn't as malleable as an ultralight.  If you can
figure out how to carry several hundred people across an
ocean in something as easy to build and maintain as an
ultralight, people will most definitely take notice.  And
such a thing could be the case for distributed file systems.

Dave Eckhardt

P.S. Here's some rationale behind the horrific complexity:
  http://www.cs.cmu.edu/~satya/docdir/p35-satyanarayanan.pdf



Re: [9fans] How to implement a moral equivalent of automounter

2008-12-04 Thread erik quanstrom
On Thu Dec  4 23:37:02 EST 2008, [EMAIL PROTECTED] wrote:
 supported 400 users on 120 workstations in 1984; this
 evening CMU's AFS cell hosts 30,821 user volumes, roughly
 half a gigabyte each; there are cells with more users and
 cells with more bits.

31000/2 is about 15tb.  that seems pretty reasonable these days.
do you know what the peak throughput is?

- erik



Re: [9fans] How to implement a moral equivalent of automounter

2008-12-04 Thread Nathaniel W Filardo
On Thu, Dec 04, 2008 at 02:58:15PM +, Steve Simon wrote:
  AFS has its warts, but, trust me, if you've used it for a while,
  you will not find yourself excitedly perusing the volume location
  database to see where your bits are coming from.  
 
 Is there an AFS client for plan9 anywhere?

AFAIK no.  There's a long list of things that would have to happen before
this was feasable, not the least of which is to get factotum speaking
Kerberos (V5, and the 5to4 wedge... sigh).  It might be possible to bring
the RxRPC libraries over without too much pain.  And that's just getting
started.

You can sort of, ish, emulate AFS on Plan 9 by having a UNIX box running an
AFS client and your Kerberos credentials and then importing /afs via SSH.
Crude hack, but works.

It might be an interesting project for some student(s) to reimplement
Kerberos 5 for Plan 9... it's something of an open question of just how
minimal and tasteful the implementation can be when it's not MIT code. ;)

--nwf;


pgpA01LMOoIjM.pgp
Description: PGP signature


Re: [9fans] image/memimage speed

2008-12-04 Thread sqweek
On Tue, Dec 2, 2008 at 12:24 AM,  [EMAIL PROTECTED] wrote:
 I think the real performance issue for hardware where the frame buffer is in
 the PCIe shared memory apperture is that writes are write-through/coalesced
 on their way across the PCIe, but reads can't be, and so incur huge stalls.

 Hah, this sounds just like 9p's latency woes.
-sqweek



Re: [9fans] image/memimage speed

2008-12-04 Thread ron minnich
On Mon, Dec 1, 2008 at 6:33 AM, erik quanstrom [EMAIL PROTECTED] wrote:

 Very true, the only exception to this I know of is some of the modern
 Dual PCIExpress cards which use a bus in each direction.


 do you have a reference for dual pciexpress?  as far as i know,
 pcie/agp/pci cards only have a single bus that goes both ways.

how about this:
SANTA CLARA, CA—JUNE 28, 2004—NVIDIA Corporation (Nasdaq: NVDA), the
worldwide leader in visual processing solutions, broadened its already
expansive graphics line today with the introduction of four new NVIDIA
Quadro(R) professional graphics solutions based on PCI Express™.
Leveraging this next-generation bus architecture, NVIDIA doubles the
bandwidth of its AGP 8X-based products to over 4GB per second in both
upstream and downstream data transfers.  

I think the AGP assymetry is long gone. Back when I was at LANL the
graphics guys were telling me that read bandwidth was no longer an
issue with the new pcie cards.

If you're still seeing bad performance it may be because you need to
fix up the MTRR or GART settings. I've done this dance and have no
memory at this point of what you do, but vague memory is that proper
MTRR settings with a good PCIe card will give you far better bandwidth
than the old AGP cards. There is nothing like the 60x assymetry.

ron