Re: [9fans] Nupas truncated e-mail

2009-03-11 Thread erik quanstrom
On Wed Mar 11 12:44:02 EDT 2009, m...@gmx.net wrote: > > % cat /mail/fs/mbox/99/unixdatesec > 1236524327.00 > % ls -l /mail/box/mn/mbox/1236524327.00 > --r M 226874 mn mn 352001 Mar 9 15:33 /mail/box/mn/mbox/1236524327.00 > % cmp /mail/box/mn/mbox/1236524327.00 /mail/fs/mbox/99/rawunix >

[9fans] drawterm crash. small fix. bug remains?

2009-03-12 Thread erik quanstrom
ignominously, i am dealing with an x86_64 linux machine with 64-bit linux. this always crashes drawterm 1. create new rio window 2. put window in hold mode 3. cut from an x application 4. paste into drawterm window from #2. this change stopped it from crashing. i don't know

Re: [9fans] drawterm crash. small fix. bug remains?

2009-03-12 Thread erik quanstrom
nevermind. i guess this is the right fix. evidently i had a little dyslexic fit at 2 in the morning. as 0x7f8554001670 != 0x7f8554001960 - erik

Re: [9fans] Realtek 8111C

2009-03-12 Thread erik quanstrom
works fine for me, even with jumbo packets: 5.0.0: net 02.00.00 10ec/8168 10 0:d801 256 2:feaff004 4096 3: 16 Realtek Semiconductor RTL8168/8111 Gigabit Ethernet NIC(NDIS 6.0) i'm too lazy to check if it's exactly a 8111c, but i've never had trouble with realtek 8169-style

Re: [9fans] Realtek 8111C

2009-03-12 Thread erik quanstrom
On Thu Mar 12 18:35:33 EDT 2009, aris...@ar.aichi-u.ac.jp wrote: > Hello, > > I tried 8111C on GIGABYTE GA-G31M-S2L, > but the controller did not work for me. > I don't know if recent driver works. > Additional information welcome. > > Kenji Arisawa i am running a slightly different driver than

Re: [9fans] Toshiba Tecra 700CT cannot install

2009-03-13 Thread erik quanstrom
> Ok, here's the deal. > > I've made a floppy boot, as the BIOS doesn't have a cd boot option, > it's either floppy or hard drive. > When I boot from floppy it detects it as fd0 which is expected, but > that's the only thing it sees. > I tried every combination of xx! that I could and nothing work

Re: [9fans] new toy - gmap

2009-03-13 Thread erik quanstrom
> key matches? Do they do a reverse lookup on the IP address, or do > they use something in the http transaction? since it's assumed this is embedded on your website somewhere, they can't do either, since it's the client doing the requesting. referrer url (or whatever it's called — it's been a lo

Re: [9fans] log oversight

2009-03-15 Thread erik quanstrom
> is it a shortcoming compared to unix world? these logs > are not sacrosanct. > linux typically uses log daemons to do the actual logging. unless they are encrypting all those channels, even from untrusted agents like smtp daemons, i don't know how you provide better security. actually plan 9 h

Re: [9fans] log oversight

2009-03-16 Thread erik quanstrom
> An alternative for the paranoid perhaps would be to make an additional fs > (in fossil) containing the log files. This fs could be set to accept only > the hostowner's credentials for attach requests. The hostowner, meanwhile, > when constructing namespaces, could bind the right file(s) into th

Re: [9fans] THnX status?

2009-03-16 Thread erik quanstrom
> You say 'skip lguest' -- that's fine. But what's the best alternative > for running Plan9 server > on the same bare metal that needs to run something else? more hardware ☺ - erik

Re: [9fans] THnX status?

2009-03-16 Thread erik quanstrom
> NetBSD runs on ESX at the same time as Plan 9 and it switches off > reproduceably pretty abruptly when I try to FTP the GNU directory from > gnu.org, good to see the netbsd guys have taste! - erik

Re: [9fans] Strange rc bug for the 9fans bug-squashing squad

2009-03-17 Thread erik quanstrom
On Tue Mar 17 18:17:53 EDT 2009, urie...@gmail.com wrote: > Thanks Geoff for the prompt explanation, but I'm getting the same > results with ifs=() Not sure why, but I'm not sure I understand the > difference between setting ifs to '' and (). in your test, try this echo $#x - erik

Re: [9fans] Strange rc bug for the 9fans bug-squashing squad

2009-03-17 Thread erik quanstrom
On Tue Mar 17 18:29:14 EDT 2009, urie...@gmail.com wrote: > Thanks martin for your analysis, this makes some sense to me, but as I > pointed out, even setting ifs to () doesn't solve the issue, so it > would be nice to find a solution to this. > > Right now having the output of `{} corrupted can b

Re: [9fans] Strange rc bug for the 9fans bug-squashing squad

2009-03-17 Thread erik quanstrom
> >> Right now having the output of `{} corrupted can be quite inconvenient... > > > > it is unreasonable to expect to be able to generate tokens > > that are bigger than 8k. > > Well, I would prefer if such limit didn't exist ;) But it doesn't seem > like a totally unreasonable limit either. why

Re: [9fans] Strange rc bug for the 9fans bug-squashing squad

2009-03-17 Thread erik quanstrom
On Tue Mar 17 20:29:50 EDT 2009, urie...@gmail.com wrote: > > why can't you just let ifs = $newline (formatted to fit your screen) ? > > Unfortunately that doesn't work in this case, my input is HTTP post > data, which is a single line of URL-encoded text which I have to > decode into multiple par

Re: [9fans] Strange rc bug for the 9fans bug-squashing squad

2009-03-18 Thread erik quanstrom
> 2009/3/17 erik quanstrom : > > it is unreasonable to expect to be able to generate tokens > > that are bigger than 8k. > > i'm not sure i agree. they're not just tokens, they're strings, > and there are lots of reasons why one might wish to > have a st

Re: [9fans] Strange rc bug for the 9fans bug-squashing squad

2009-03-18 Thread erik quanstrom
On Wed Mar 18 09:54:54 EDT 2009, rogpe...@gmail.com wrote: > 2009/3/18 erik quanstrom : > > -                               ewd = wd+l+100-1; > > one small comment, based on a totally superficial scan of that diff: > might it not be better to grow the buffer by some multiplic

Re: [9fans] Strange rc bug for the 9fans bug-squashing squad

2009-03-18 Thread erik quanstrom
On Wed Mar 18 06:33:49 EDT 2009, mattmob...@proweb.co.uk wrote: > Using rc in werc neutralizes OS differences to a certain degree, > obviously some things catch one out, such as this one. (and just wait > until a \0 comes along!) this is an easy problem to solve: tr '\0' '☺' - erik

Re: [9fans] I can not remember if I sent this or not: MIPS-64 (sort of) notebook

2009-03-19 Thread erik quanstrom
> so, here's a silghtly controversial (maybe) suggestion. Maybe my > memory is wrong, but i believe the vx32 kernel is gcc-compiled. There > is gcc for this CPU. It might be easier to start from the vx32 kernel > and gcc to target this machine, rather than do a 64-bit MIPS port of > the plan 9 C co

Re: [9fans] Raw Input Driver

2009-03-20 Thread erik quanstrom
On Fri Mar 20 03:58:26 EDT 2009, ja...@orcasystems.com wrote: > I am also looking for advice on what people might like for the > interface, right now I am using: > > struct InputEvent { >intmsec; >unsigned short type; >unsigned short code; >intvalue; > };

Re: [9fans] Raw Input Driver

2009-03-20 Thread erik quanstrom
On Fri Mar 20 07:40:30 EDT 2009, n...@lsub.org wrote: > If connection is slow (as the one I'm using now) increasing the > abstraction level is a good thing to do. Merging low level input > streams may patch up things for a while, but won't be enough > if the connection is slower. i think it does s

Re: [9fans] Raw Input Driver

2009-03-20 Thread erik quanstrom
this is mostly a repeat of what rog. said. i'm a slow thinker, but i'll subject y'all to what i was thinking anyway > the ordering problem is misleading: you need timely response for > interactive applications; it's a reasonably straightforward application > of real-time programming. (by the

Re: [9fans] Raw Input Driver

2009-03-20 Thread erik quanstrom
> >it's people realtime not real realtime. > > the former is an example of the latter. > real-time is meeting deadlines. deadlines are always real, if you've got them. > there isn't a distinction based on speed (ie, 1 usec is "real", but 10ms is > not). > any hard/soft distinction is typically ba

Re: [9fans] I can not remember if I sent this or not: MIPS-64 (sort of) notebook

2009-03-20 Thread erik quanstrom
> Let me say it differently. The way in which the plan 9 kernel code was > changed to be gcc-compilable as part of the vx32 kernel might provide > some hints as to how to change a whole plan 9 kernel. The point being, > it is not impossible to get a gcc-compilable plan 9 kernel. We used to > talk a

Re: [9fans] I can not remember if I sent this or not: MIPS-64 (sort

2009-03-20 Thread erik quanstrom
On Fri Mar 20 11:34:28 EDT 2009, lu...@proxima.alt.za wrote: > > wouldn't it just be easier to use 32-bit compatability mode > > (http://www.mips.com/products/processors/architectures/mips64/) > > for bootstrapping using vc? > > Please don't go there! I have just ordered (and paid for) one of > t

[9fans] hardware idea

2009-03-22 Thread erik quanstrom
i think this marvell media vault soc has quite a bit of promise. this product seems to be an arm core + a mashup of other marvell parts. the sata controller appears to have the same register interfaces as the one driven by sdmv50xx.c. the ethernet controller is not currently supported, but there

Re: [9fans] fossil periodic thread does zero sleep()

2009-03-22 Thread erik quanstrom
> Can anybody explain this fossil behaviour from the periodic code? what if 0 < t - ct < 1? wouldn't it be a good idea to replace the doubles with vlongs? and replace *1e-6 with /100? that would make 0 < t - ct < 1 impossible. - erik

Re: [9fans] fossil periodic thread does zero sleep()

2009-03-22 Thread erik quanstrom
what is your HZ set at? after chasing a few bugs like this, i've set HZ=1000. actually i first saw the idea in sam hopins' work there's no performance drag and 1 ms sleeps do actually sleep. - erik

Re: [9fans] fossil periodic thread does zero sleep()

2009-03-22 Thread erik quanstrom
> The problem is that when sleep is a little bit too fast on every round, > t will never catch up with ct. so it sleeps shorter and shorter until > t - ct < 1. > > It all works when changing t += msec to t = ct + msec. It may still > do a zero sleep, but the error will not add up. why not just ge

Re: [9fans] hardware idea

2009-03-23 Thread erik quanstrom
> Probably easier to develop on: > > http://www.embeddedarm.com/products/board-detail.php?product=TS-7800 > > The NAND annoyingly is not via the SoC and there are a few other quirks > however as you can boot off the SD card (making it unbrickable and dead > easy to play with kernel dev work), i

Re: [9fans] hardware idea

2009-03-23 Thread erik quanstrom
On Mon Mar 23 19:04:28 EDT 2009, cinap_len...@gmx.de wrote: > maybe use vlongs for your toy budget too? :) vlongs don't spend well. ☺ - erik

Re: [9fans] grist for the "synchronous vs. asynchronous" mill

2009-03-24 Thread erik quanstrom
On Tue Mar 24 08:54:12 EDT 2009, rogpe...@gmail.com wrote: > http://www.classhat.com/tymaPaulMultithread.pdf seems more like grist for the task vs. process debate. not that the outcome is in doubt. - erik

Re: [9fans] hardware idea

2009-03-24 Thread erik quanstrom
> The Marvell SoC only has the one controller with two ports going out > anway so I am pretty sure it's a SATA port multiplier you would be > playing around with in there, and that's going to be fustrating. it has one controller with 2 edma units (ports). see p. 70, chp 8 fig. 14 of http://www.

Re: [9fans] grist for the "synchronous vs. asynchronous" mill

2009-03-24 Thread erik quanstrom
> On Tue, Mar 24, 2009 at 6:34 AM, erik quanstrom wrote: > > On Tue Mar 24 08:54:12 EDT 2009, rogpe...@gmail.com wrote: > >> http://www.classhat.com/tymaPaulMultithread.pdf > > > > seems more like grist for the task vs. process > > debate.  not that the outcom

[9fans] kernel tag bug?

2009-03-24 Thread erik quanstrom
it looks like devcons is suffering from some sort of tag collision. a Rwrite is coming back for a Tread. Sat Jan 24 09:43:47: mnt: proc rc 10946: mismatch from /mnt/temp/data /dev/cons rep 0xf63661a8 tag 1 fid 1170 T116 R119 rp 1 Sat Jan 24 10:06:26: unexpected reply tag 1; type 117 Fri Jan 30 15

Re: [9fans] drawterm font

2009-03-24 Thread erik quanstrom
> I ask because my 'bootes' account's profile doesn't start rio, so I > occasionally use it to do command-line-only administration things, > like adding users. why not drawterm as yourself and "cpu -u bootes" if you can't access the console via C? - erik

Re: [9fans] Plan 9 on Routers?

2009-03-24 Thread erik quanstrom
> Maybe there is a filesystem that exposes the kernel routing table to > user space for certain routing algorithm scripts to hack upon? #I publishes routes in iproute, typically bound so that this appears as /net/iproute. that's probablly a good start. - erik

Re: [9fans] kernel tag bug?

2009-03-24 Thread erik quanstrom
On Tue Mar 24 16:00:54 EDT 2009, r...@swtch.com wrote: > On Tue, Mar 24, 2009 at 10:59 AM, erik quanstrom > wrote: > > it looks like devcons is suffering from some sort of tag collision. > > a Rwrite is coming back for a Tread. > > > > Sat Jan 24 09:43:47: mnt: pro

Re: [9fans] Plan 9 on Routers?

2009-03-24 Thread erik quanstrom
> It seems that /net/iproute is where I can start. It has a complete > interface for editing routes. What we need is a user space script that > implements routing, like http://www.openbgp.org/ does on OpenBSD. > Except that, it will only have to send add, delete and flush control > messages to the

Re: [9fans] Plan 9 on Routers?

2009-03-25 Thread erik quanstrom
> I believe I have a rudimentary and probably non-working (at this > point) packet filter in /n/sources/contrib/dho somewhere (it was > written at least 4 years ago). I think it's called ``nfil.'' I > believe it is desirable. Others disagree. Its usefulness is related > directly to its application

Re: [9fans] request for more GSoC project suggestions

2009-03-25 Thread erik quanstrom
> Gogo reimplementation of cfront. i'm pretty sure c++ has "advanced" to the point where the cfront implementation technique is unworkable. - erik

Re: [9fans] request for more GSoC project suggestions

2009-03-25 Thread erik quanstrom
On Wed Mar 25 19:22:23 EDT 2009, devon.od...@gmail.com wrote: > Another student I spoke to on IRC spoke of the possibility of > bootstrapping LLVM for Plan 9 on Linux and getting it to run natively. > That would give us a whole bunch of different compilers. > > --dho at the risk of being called s

Re: [9fans] request for more GSoC project suggestions

2009-03-25 Thread erik quanstrom
On Wed Mar 25 16:39:16 EDT 2009, cmbran...@cox.net wrote: > > > Gogo reimplementation of cfront. > > > > i'm pretty sure c++ has "advanced" to the point where > > the cfront implementation technique is unworkable. > > The Comeau C++ compiler [1] uses the cfront technique, doesn't it? It is > sup

Re: [9fans] GSOC: Drawterm for the iPhone

2009-03-25 Thread erik quanstrom
> > ok, you can't compare porting inferno to the ds with drawterm for the iphone > > drawterm is an app to get to a Plan 9 server, inferno is a self contained > > operating system where you can get the advantage of writing your > > own apps for it. > > Except that drawterm ends up being a mini-Pla

Re: [9fans] request for more GSoC project suggestions

2009-03-25 Thread erik quanstrom
> I think the gist behind LLVM is that compilers can target it as a > machine type, and it is able to create native binaries for its own > supported machine type for anything that can run on it. So any > compiler that can target LLVM would be able to target Plan 9. (Which > is several of them) at

Re: [9fans] GSOC: Drawterm for the iPhone

2009-03-26 Thread erik quanstrom
On Thu Mar 26 08:53:03 EDT 2009, urie...@gmail.com wrote: > Porting drawterm is a dead end with very little potential of either > learning anything interesting or being useful in the future. inferno is a red herring. you might as well suggest qnx as an alternative. while drawterm might not be ap

Re: [9fans] new toy - gmap

2009-03-26 Thread erik quanstrom
On Thu Mar 26 04:42:48 EDT 2009, lu...@proxima.alt.za wrote: > > Pick up the new code, it reads the key from /lib/gmapkey > > and gets the longditude and latitude the correct way round > > (as several people have told me. > > I use: > > lng=`{echo $here(2) | sed -e 's/^-(.*)/+\1/' -e 's/^([0-9])/

Re: [9fans] GSOC: Drawterm for the iPhone

2009-03-26 Thread erik quanstrom
> >> especially if the kernel were (sort-of) pxe loaded so that clients would > >> only need a local copy of the loader and changes would then be > >> automaticly distributed.) > > > > Now that could be fun. > > > > I smell the feminine stench -- flowers and butterflies -- of GSoC project > propos

Re: [9fans] Inferno slow on Plan 9?

2009-03-26 Thread erik quanstrom
> Is there any reason this might be happening? If its related to > Inferno's /dev/draw, is there any way I can import /dev/draw from P9 > and use it in Inferno? Would that be faster? does the PAT register patch (/n/sources/patch/pat) make any difference? - erik

Re: [9fans] Inferno slow on Plan 9?

2009-03-26 Thread erik quanstrom
> The CPU doesn't support PATs, sorry. > > It does have MTRR support though, wasn't there a patch to support > Write-combining for the framebuffer region using them instead? > > FWIW, native graphics applications (including Hyperglenda) are very fast... if the slowdown is caused by reading the f

Re: [9fans] 9P writes for directories

2009-03-26 Thread erik quanstrom
> question: is there anything that HTTP makes us lose except > for the transactional nature of create? sanity? > to "create" would be POST with a metadata payload on a > "subdirectory" URI. But of course, it is not a create at all. i'm not sure what fine hair you're trying to split. why can't t

Re: [9fans] 9P writes for directories

2009-03-26 Thread erik quanstrom
> >> to "create" would be POST with a metadata payload on a > >> "subdirectory" URI. But of course, it is not a create at all. > > > > i'm not sure what fine hair you're trying to split. why can't the > > post contain the same information a create would? > > > If "hair splitting" is the answer t

Re: [9fans] 9P writes for directories

2009-03-26 Thread erik quanstrom
> It would (just as Erik pointed out). I guess I was just looking for > symmetry (if POST is really a write(*), it should translate into write > independent of whether the URI corresponds to a subdirectory or > not) and potential pitfalls that made 9P spec disallow writes on > subdirectories (and s

Re: [9fans] another webfs question

2009-03-27 Thread erik quanstrom
> It seems I'm hitting this error when sending some GET requests: > > In /sys/src/cmd/webfs/url.c: > > if(strstr(url, "%00")){ > werrstr("escaped NUL in URI"); > return -1; > } > > I haven't fully understood the comment above, especially if it is against >

Re: [9fans] another webfs question

2009-03-27 Thread erik quanstrom
> Yeah, there aren't any. That's the point of URL encoding; NULL bytes > are as acceptable as any other, and your client should be able to > handle them -- so I think that webfs check is just bogus. It should > just encode it as a \0 and pass it through. (you do mean %00 should result in a byte wi

Re: [9fans] another webfs question

2009-03-27 Thread erik quanstrom
> > assuming that every application that uses webfs is prepared > > to handle a null byte in the middle of a string.  what webfs does > > — complaining loudly — is much preferrable to programs misbehaving > > silently.  since it's quite likely that plan 9 applications are not > > going to properly

Re: [9fans] fossil caching venti errors

2009-03-28 Thread erik quanstrom
On Sat Mar 28 06:54:35 EDT 2009, fors...@terzarima.net wrote: > i've seen that just recently, but thought it might have been > a failing (very old) drive, or a power failure beyond the endurance of the > UPS. > if neither of those are true in your case, it might be worth a deeper look. > i also fo

Re: [9fans] fossil caching venti errors

2009-03-28 Thread erik quanstrom
> AFAIK the disk is doing just fine. Moreover, even during the period when > fossil is complaining, venti/read on 9fs's score works just fine. So I > don't believe the fault is venti's. i don't believe that conclusion is warranted. /sys/src/cmd/fossil/cache.c:683,684 is where this condition gets

Re: [9fans] fossil caching venti errors

2009-03-28 Thread erik quanstrom
sorry if this is a dupe. my original reply seems to have gone missing due to a local mishap. > venti/read should be doing this check automatically since libventi/client.c > builds with "int ventidoublechecksha1 = 1;" by default. yet you're reporting that fossil thinks the score does not match.

[9fans] nupas dump results

2009-03-29 Thread erik quanstrom
the conversion of our last two big mail users to mail directories this week is quite interesting: Sun Mar 22 06:08:35: 126514 blocks copied to worm Sun Mar 29 06:01:55: 10922 blocks copied to worm that's a difference of ~900MB/day for two mailboxes. while we could easily sustain dumps of several g

Re: [9fans] GSOC: Drawterm for the iPhone

2009-03-29 Thread erik quanstrom
> Legitimate iPhone apps can access the screen, camera, accelerometer, > gps and a portion of the filesystem. One could technically write a > drawterm that "polled" for instructions from a remote CPU server and > act on the local devices. > > Not sure if Apple would construe this as "executi

Re: [9fans] getting message need /sys/man/2/genrandom

2009-03-30 Thread erik quanstrom
> term% pull > post... > c sys/man/2/rand > a sys/man/2/genrandom 664 sys sys 1196638940 > c 386/lib/ape/libap.a > c sys/src/boot/pc/ether82563.c > term% man genrandom > need /sys/man/2/genrandom > term% man genrandom > need /sys/man/2/genrandom that is very strange. "need $x" is printed when tes

Re: [9fans] Visual font viewer

2009-03-30 Thread erik quanstrom
> On Mon, Mar 30, 2009 at 5:05 AM, Frederic Bonfanti > wrote: > > In May 2003, I did some tools to download ALL Unicode Glyphs (.gif), > > process them and create the relevent font files. > > > > The result is somehow ``ugly" :) although the only existing solution > > if you wanted to visualize an

Re: [9fans] UTF and the preprocessor

2009-03-30 Thread erik quanstrom
others more qualified may disagree, but in this case i think an enum would be preferred. however, there are some cases where an enum will not do. for example, #define prγ(γ, fmt, ...) if(γ >1.) print(fmt, __VA_ARGS__) i think that this patch will do the trick. i continued the assumption that the

Re: [9fans] fossil caching venti errors

2009-03-30 Thread erik quanstrom
On Mon Mar 30 15:10:25 EDT 2009, lu...@proxima.alt.za wrote: > > never mind. i think it's not a sign of the problem we were discussing, > > but possibly something is simply down. > > Then the error message needs some tidying up. It happened to me too > and coincided with a total failure for "repl

Re: [9fans] Latest pull killed my server

2009-03-30 Thread erik quanstrom
On Mon Mar 30 17:28:36 EDT 2009, vmh...@verizon.net wrote: > All - > I have been running an all-in-one server on a VMware server virtual > machine on my Windows laptop. > After executing a 'pull' this morning, the server crashed and I have not > been able to revive it. Fortunately it was a playgr

Re: [9fans] Latest pull killed my server

2009-03-31 Thread erik quanstrom
/* compute log10(ether->mbps) into lg */ for(lg = 0, mb = ether->mbps; mb >= 10; lg++) mb /= 10; if (lg > 0) lg--; if (lg > 14)/* 2^(14+17) = 2⁳ⁱ */ lg = 14; /* allocate larger output queues

Re: [9fans] what features would you like in a shell?

2009-03-31 Thread erik quanstrom
On Tue Mar 31 11:37:06 EDT 2009, noagbodjivic...@gmail.com wrote: > hello, > > I'm a undergrade CS student doing a project for my introductory > operating systems class. my team wants to write a simple shell from > scratch. > > one idea we have found so far is the following. the shell will record

Re: [9fans] what features would you like in a shell?

2009-03-31 Thread erik quanstrom
> I'd love to see tab completion at the command line. If there is a way to do > it in Plan 9, then I haven't figured it out yet. But then I'm a newby to the > OS. it's done by rio, not the shell and you use the insert key, not tab, as god intended. bash irritates the heck out of me when it won'

Re: [9fans] drawterm crash

2009-03-31 Thread erik quanstrom
On Tue Mar 31 12:14:49 EDT 2009, uai...@gmail.com wrote: > Hi, > Just try to paste anything coming from X. (e.g. paint some text from > an xterm, then try to paste it on some terminal on drawterm, using the > menu or the 1-3 mouse chord, both crash anyway) you're using a 64-bit os, aren't you? if

Re: [9fans] what features would you like in a shell?

2009-03-31 Thread erik quanstrom
> I've not run into many actual problems with rc so it's pretty near > perfect :> pretty near. redirection has a few rough points. dealing with a device that expects a write then a read like /net/dns is painful. i can never get the syntax right the first try. and (hopefully this isn't just my i

Re: [9fans] what features would you like in a shell?

2009-03-31 Thread erik quanstrom
> it's done by rio, not the shell and you use the > insert key, not tab, as god intended. bash insert ≡ control-f. - erik

Re: [9fans] what features would you like in a shell?

2009-03-31 Thread erik quanstrom
> thanks a lot for the reply. i got my hand of the unix programming > environment by Kernighan and Pike. I don't think we have the > programming skills for implementing a regular expression engine, but i would recommend against reimplementing regular expressions. ken is hard to beat; the standard

Re: [9fans] what features would you like in a shell?

2009-03-31 Thread erik quanstrom
> re not reinventing the wheel, you might want to look into the es > shell. I think this is what erik alluded to earlier - I've never used > it myself but I understand it is extremely programmable, to the point > where you can redefine the pipe operator for example. ; %pipe {echo true} 1 0 cat tr

Re: [9fans] outside the gsoc2009

2009-04-02 Thread erik quanstrom
On Thu Apr 2 06:41:06 EDT 2009, uai...@gmail.com wrote: > Sadly for me, I found out that I do not qualify as a student (I > thought I did, but I don't). > Anyway, I've seen some interesting ideas for plan 9 and inferno, most > of them out of my reach. But I think some of them are easy enough for >

[9fans] ahci irq bug

2009-04-04 Thread erik quanstrom
in belated regression testing, i found that i introduced a bug in ahci when fixing hbas with a sparse pi register. (it's possible to have a non-contiguous set of available ports. this is often the case on last-generation laptops.) the symptom is that drives on the highest-numbered port never see i

Re: [9fans] Virtual PC + Win64 = i/o errors

2009-04-05 Thread erik quanstrom
> fossil(#S/sdC0/fossil)...version...time... > command 30 > data f0caaaf8 limit f0cab8f8 dlen 8291 status 0 error 0 > lba 605536 -> 605536, count 16 -> 16 (16) > 0x00 0x06 0x6A 0x3D 0x09 0xE0 0x58 > 0x40: E307 0x42: Cx48: 00 > 0x4A: > fossil: diskWriteRaw failed: /dev/sdC0/fossil: score 0

Re: [9fans] Stuck at partdisk

2009-04-05 Thread erik quanstrom
> Except that it's now looking to take about 5 hours to install on my 3 > core AMD64 box with 8GB RAM :) that's no dma problem. - erik

Re: [9fans] typed sh (was: what features would you like in a shell?)

2009-04-06 Thread erik quanstrom
> Nitpick: the output type of one command and the input type of > the next command in the pipeline has to match, not every > command. i think this is wrong. there's no requirement that the programs participating in a pipeline are compatable at all; that's the beauty of pipes. you can do things t

Re: [9fans] double click selects a word

2009-04-06 Thread erik quanstrom
> is there any good reason for a double click (in rio, sam, acme, ...) > to select a word (probably) defined by sth. like > /[a-zA-Z0-9_]+/ > and not sth. white-space delimited instead? > Double clicking e.g. on 'text.txt' only selects 'text' or 'txt', while > one usually wants the whole. The same

Re: [9fans] Virtual PC + Win64 = i/o errors

2009-04-06 Thread erik quanstrom
> How exactly would I enable that on an already-installed VM? > Would a modified plan9.ini on a floppy > image do the trick? unfortunately, there's no *justusedma=1 plan9.ini option. that would be far to easy. i think you will need to modify the kernel to make progress. do you have a way of comp

Re: [9fans] typed sh (was: what features would you like in a shell?)

2009-04-06 Thread erik quanstrom
> If program A outputs numbers in big-endian order and B > expects input in little-endian order, A|B won't do the "right > thing". non-marshaled data considered harmful. film at 11. ☺ what i said was not that A|B "makes sense" for all A and B and for any data but rather that using text stream

Re: [9fans] typed sh

2009-04-06 Thread erik quanstrom
> > but rather that using text streams makes > > A|B possible for any A and any B and any input. > What is this "text" of which you speak ? ASCII EBCDIC UTF-16 UTF-8 > ISO8859 etc. etc. etc. there's got to be a latin term parallel to reducto ad absurdum that means the opposite. make the proble

Re: [9fans] Virtual PC + Win64 = i/o errors

2009-04-06 Thread erik quanstrom
> fossil(#S/sdC0/fossil)...version...time... > command 30 > data f0caaaf8 limit f0cab8f8 dlen 8291 status 0 error 0 > lba 605536 -> 605536, count 16 -> 16 (16) > 0x00 0x06 0x6A 0x3D 0x09 0xE0 0x58 > 0x40: E307 0x42: Cx48: 00 > 0x4A: > fossil: diskWriteRaw failed: /dev/sdC0/fossil: score 0

Re: [9fans] a bit OT, programming style question

2009-04-06 Thread erik quanstrom
> Would there be any merit to breaking the shell apart into a number of > smaller programs? Looking at GNU bash as an example (though I know GNU > is probably one of the worst places to look for "Unix style"), It is my > understanding that one program handles many things, such as keyboard > binding

[9fans] self inflicted gunshot wound

2009-04-07 Thread erik quanstrom
like kutner, the plumber decided to off itself for seemingly inscrutable reasons this morning. the abort condition does not appear to hold: if(t > s+n) abort(); since 0x3a497 < 0x3a430+0x93 and also a!= nil, as would be required. the interesting thing that happened at the

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread erik quanstrom
> > Exactly, and the end user can choose to have a re or glob expansion > > program, rather than having to muck up the shell code with different > > flags or whatever. > > somebody is going to jump in very soon and tell us why this is funny :-) i promised i wouldn't, - erik

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread erik quanstrom
> Well someone's gotta tell these prepubescents ... > > "Because the V6 shell did it, that's why.". ooh. ooh. i know what you're going to say next: if should be an external program. - erik

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread erik quanstrom
> A bad implementation is not a bad design. neither is stink an outhouse, but often they keep company. - erik

Re: [9fans] self inflicted gunshot wound

2009-04-07 Thread erik quanstrom
On Tue Apr 7 21:50:14 EDT 2009, r...@swtch.com wrote: > > abort()+0x0 /sys/src/libc/9sys/abort.c:6 > > plumbpackattr(attr=0x28b00)+0x126 /sys/src/libplumb/mesg.c:125 > >n=0x93 > >a=0x3e990 > >s=0x3a430 > >t=0x3a497 > > t is unlikely to be correct here; it would hav

Re: [9fans] self inflicted gunshot wound

2009-04-07 Thread erik quanstrom
> i would put a lock around the use of attrbuf > in both plumbpackattr and plumbunpackattr. > > russ why not just use malloc? - erik

[9fans] for rsc -- mail failure. sorry.

2009-04-07 Thread erik quanstrom
Your request ``smtp /net.alt/tcp!swtch.com rsc '' failed (code smtp 89792: Permanent Failure). The symptom was: Tue Apr 7 23:47:42 EDT 2009 connect to /net.alt/tcp!swtch.com: 550 relaying denied - erik

[9fans] new memdraw troubles

2009-04-08 Thread erik quanstrom
the attached image does lots of funny things. mug (which probablly can't handle the image) displays an image striped in the bottom half. it's all black with a varying α, but displays all black in faces with the new draw code, but blue with the old (drawterm) code. togif makes it blue again on pla

Re: [9fans] Is this Plan9 performance, Ok

2009-04-09 Thread erik quanstrom
On Thu Apr 9 05:18:31 EDT 2009, bdhee...@gmail.com wrote: > Extraction of only a 180M archive knelled down a 1.8Ghz/P-M4/i686/1Gb > RAM/40GiB IDE HDD machine running vanilla Plan9 installed natively: > > term% cat /dev/sdC0/ctl |grep dma > config 0040 capabilities 2F00 dma 00550020 dmactl 0055002

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread erik quanstrom
On Thu Apr 9 10:48:08 EDT 2009, eris.discor...@gmail.com wrote: > Most of it in the 19 lines for one TERMCAP variable. Strictly a relic of > the past kept with all good intentions: backward compatibility, and heeding [...] > Quite a considerable portion of UNIX-like systems, FreeBSD in this ca

Re: [9fans] extensions of "interest"

2009-04-09 Thread erik quanstrom
On Thu Apr 9 13:19:11 EDT 2009, rminn...@gmail.com wrote: > www.pdl.cmu.edu/posix > > statlite() the statlite man page is itself lightweight, being available on the web in pdf form. - erik

Re: [9fans] extensions of "interest"

2009-04-09 Thread erik quanstrom
On Thu Apr 9 13:44:50 EDT 2009, mirtchov...@gmail.com wrote: > i propose an extension to HTTP (call it HTTPeeLite) which allows me to > specify in my request to that webpage the format in which i prefer to > receive the man page. a 'setup' exchange can be sent beforehand to > establish the availab

Re: [9fans] extensions of "interest"

2009-04-09 Thread erik quanstrom
> On Thu, Apr 9, 2009 at 1:25 PM, erik quanstrom wrote: > > On Thu Apr  9 13:19:11 EDT 2009, rminn...@gmail.com wrote: > >> www.pdl.cmu.edu/posix > >> > >> statlite() > > > > the statlite man page is itself lightweight, being available > > on

Re: [9fans] extensions of "interest"

2009-04-09 Thread erik quanstrom
> > Already part of HTTP > > > > Accept: application/msword; q=1, application/pdf; > > q=0.5,application/x-troff-ms; q=0.3 > > > > q is the level of preference, you'll get word docs first > > > > > > Wow. Could it get any worse? yes. just read a few lines further in the rfc and note that there's

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread erik quanstrom
> $ set | wc -l > 64 > > I don't quite get that locally. please upgrade your distribution. - erik

  1   2   3   4   5   6   7   8   9   10   >