Re: [9fans] Plan9 as an everyday OS
On Sat, Jul 11, 2009 at 12:58 AM, Andreas Eriksen wrote: > There is a list of tested usb sound cards at > http://www.plan9.bell-labs.com/wiki/plan9/Supported_PC_hardware/index.html > Beware, some of the ones working before might not work now (All I tested work, but who knows), and some that did not work might work now. I mean, a lot changed in usb and I don't know if the supported pc hw list is up to date wrt it.
Re: [9fans] C compiler question
> 8c silently accept the above definition and sizeof(U) is 100. ??? > The sources which include the definition of "NeverDefined" are > regularly compiled too and sizeof(U) = 100 + sizeof(NeverDefined). > i think the issue is that there isn't currently a distinction between this typedef struct A A; struct A { int expand[0]; }; which is perfectly legal and this typedef struct U U; typedef struct A A; struct A { U; }; which might be allowed, but i can't find any references that say it is. the argument for having expandable structures would be it would allow something like this typedef struct Priv Priv; typedef struct Pub Pub; struct Pub { ... Priv; }; #pragma incomplete Pub Pub *pubfn(void); but i don't see any such uses in /sys/include. this change will generate a diagnostic for your code, but be careful. this is a corner of c, and what seems intuitively correct in the corners can often be wrong. - erik ; diff -c dcl.c `{yesterday -n2 dcl.c} dcl.c:541,547 - /n/dump/2009/0710/sys/src/cmd/cc/dcl.c:541,547 l->offset = o; } else { if(l->width <= 0) - if(l->down != T || l->width < 0) + if(l->down != T) if(l->sym) diag(Z, "incomplete structure element: %s", l->sym->name);
Re: [9fans] 9grid.net down?
I'll try to get 9grid.net back this week. It's on the ucb campus and maybe somebody dropped it. ron
[9fans] what does #pragma fpround do?
reading 8c (the only compiler that appears to implement this pragma), the difference appears to be in the conversion of (double, float) -> any type of integer. however, #include #include void main(void) { double d; d = 1.999; #pragma fpround on print("%d\n", (int)d); #pragma fpround 0 print("%d\n", (int)d); } generates the same output and same assembly for both casts. can anyone explain what this pragma is supposed to do? - erik
Re: [9fans] what does #pragma fpround do?
> generates the same output and same assembly > for both casts. can anyone explain what this pragma > is supposed to do? it changes the rounding mode from the standard truncate to integer (expensive on a 387) to round to nearest (incorrect but cheap). #pragma fpround on print("%d\n", (int)d); #pragma fpround 0 print("%d\n", (int)d); your examples compiles to the same code in both cases because the rounding mode is only consulted during code generation, which happens at the function's final }. you'd need to write two different functions to demonstrate the difference. russ
Re: [9fans] what does #pragma fpround do?
> > generates the same output and same assembly > > for both casts. can anyone explain what this pragma > > is supposed to do? > > it changes the rounding mode from the standard > truncate to integer (expensive on a 387) to > round to nearest (incorrect but cheap). sure enough. here's timings in µsec for 1<<20 cycles slowfastfactor amd64 (2.0ghz) 82717 287329 xeon 5000 (1.6ghz) 17595 19639 core i7 (2.6ghz)473411854 >#pragma fpround on >print("%d\n", (int)d); >#pragma fpround 0 >print("%d\n", (int)d); > > your examples compiles to the same code in both > cases because the rounding mode is only consulted > during code generation, which happens at the > function's final }. you'd need to write two different > functions to demonstrate the difference. ah. that escaped me. thanks. it would be good to document somwhere. would updating /sys/doc/compiler.ms be a really bad idea? - erik
[9fans] nemo's book - where is it currently hosted?
"Introduction to OS abstractions using Plan 9 from Bell Labs" Two previous sources for this document appear to be offline: http://plan9.escet.urjc.es/who/nemo/9.intro.pdf http://lsub.org/who/nemo/9.intro.pdf Where else (on the web) can I get hold of this? Thanks!
[9fans] Time for a new, yet not bleeding edge plan 9 box... (recommendations for a small x86, inexpensive PC)
I just tried to load plan 9 on a machine that it used to run on, but now, for some reason, can not find it's CD drive. It's an old AMD Athlon, circa 2000 if I recall correctly, and when booting from the plan 9 CD, it does not find the CD drive. I thought at first I might try to figure out exactly why, but then realized it's probably time for a new plan 9 computer. I've got an intel iMac in another room that I want to see just how far I can get on it before it doesn't boot :-). But I also wanted to get a recommendation for a small inexpensive x86 PC that could run it. I usually like to get motherboards and parts and assembly myself, but I'd go for even a lenovo or (god forbid) dell if the deal was good. Any recommendations? I'm very excited about the linuxemu, new USB support, and other work that's gone on in the last few years, and I hope to get some serious time to do something useful this time around. Dave
Re: [9fans] nemo's book - where is it currently hosted?
Corey ==8<== > "Introduction to OS abstractions using Plan 9 from Bell Labs" > > Two previous sources for this document appear to be offline: > > http://lsub.org/who/nemo/9.intro.pdf ==8<== I suspect lsub will be back up very shortly. If you cannot wait until then feel free to mail me off list and I will send you a copy. +=jt
Re: [9fans] nemo's book - where is it currently hosted?
Corey ==8<== > "Introduction to OS abstractions using Plan 9 from Bell Labs" > > Two previous sources for this document appear to be offline: > > http://lsub.org/who/nemo/9.intro.pdf ==8<== I suspect lsub will be back up very shortly. If you cannot wait until then feel free to mail me off list and I will send you a copy. +=jt
Re: [9fans] nemo's book - where is it currently hosted?
On Sun, 12 Jul 2009 17:28:26 -0400 james toy wrote: > Corey > > ==8<== > > "Introduction to OS abstractions using Plan 9 from Bell Labs" > > > > Two previous sources for this document appear to be offline: > > > > http://lsub.org/who/nemo/9.intro.pdf > ==8<== > > I suspect lsub will be back up very shortly. If you cannot wait until > then feel free to mail me off list and I will send you a copy. Not official at all, but no trouble either: http://eekee.org.uk/plan9/docbak/9.intro.pdf The more hosts, the less chance of it going missing. -- Ethan Grammatikidis Those who are slower at parsing information must necessarily be faster at problem-solving.
Re: [9fans] nemo's book - where is it currently hosted?
It can also be found via archive.org at http://web.archive.org/web/20070324142435/http://plan9.escet.urjc.es/who/nemo/9.intro.pdf -Rob On Sun, Jul 12, 2009 at 4:19 PM, james toy wrote: > Corey > > ==8<== > > "Introduction to OS abstractions using Plan 9 from Bell Labs" > > > > Two previous sources for this document appear to be offline: > > > > http://lsub.org/who/nemo/9.intro.pdf > ==8<== > > I suspect lsub will be back up very shortly. If you cannot wait until > then feel free to mail me off list and I will send you a copy. > > > +=jt > >
Re: [9fans] nemo's book - where is it currently hosted?
On Sunday 12 July 2009 15:19:07 Ethan Grammatikidis wrote: > On Sun, 12 Jul 2009 17:28:26 -0400 > > Not official at all, but no trouble either: > > http://eekee.org.uk/plan9/docbak/9.intro.pdf > > The more hosts, the less chance of it going missing. > Excellent - thanks; but just a heads-up, the directory is available, but the file causes a 403. Cheers
Re: [9fans] nemo's book - where is it currently hosted?
Thanks all, much obliged! On Sunday 12 July 2009 15:19:07 Ethan Grammatikidis wrote: > On Sun, 12 Jul 2009 17:28:26 -0400 > > james toy wrote: > > Corey > > > > ==8<== > > > > > "Introduction to OS abstractions using Plan 9 from Bell Labs" > > > > > > Two previous sources for this document appear to be offline: > > > > > > http://lsub.org/who/nemo/9.intro.pdf > > > > ==8<== > > > > I suspect lsub will be back up very shortly. If you cannot wait until > > then feel free to mail me off list and I will send you a copy. > > Not official at all, but no trouble either: > > http://eekee.org.uk/plan9/docbak/9.intro.pdf > > The more hosts, the less chance of it going missing.
Re: [9fans] nemo's book - where is it currently hosted?
> The more hosts, the less chance of it going missing. In this spirit, newly mirrored at https://files.getdropbox.com/u/502901/9.intro.pdf Jason Catena
[9fans] ide fix?
after a week of fighting with an atom with ich7r sata in ide mode, i finally found the secret sauce that keeps it from "hanging." i pushed out a changed quanstro/9load-e820 and quanstro/sd which boot on my atom machine in ide mode without causing interrupt storms. other changes were included work around ahci power quirks for this chipset, if your bios supports it, i would recommend ahci mode. i also pushed out a version of ether8169 as quanstro/8169 that supports the particular 8169 macs that are in my atom machine (and jumbo frames). i have a feeling that these changes may be helpful in correcting other intel ich-based ide problems. i've got an intel ich6-based machine that has exhibited similar symptoms at work that i hope to test tomorrow. i'll be interested to hear if these changes work for other people. - erik