Re: [9fans] awk, not utf aware...

2008-02-27 Thread Sape Mullender
There is split and other functions, for example: toupper(aí) gives Aí My guess is that there are many more little (or not) corners where it doesn't work. Yes, and then there is locale: does [a-z] include ij when you run it in Holland (it should)? Does it include á, è, ô in France (it

Re: [9fans] GSOC 2008

2008-02-27 Thread Sape Mullender
we don't assume students are all 30-years grizzled veterans. I'm not grizzled! Sape

Re: [9fans] troff -man prints poorly

2008-02-26 Thread Sape Mullender
troff -man /sys/man/1/cat | page troff -man /sys/man/1/cat | lp -dPrinter ---BeginMessage--- I've been writing a man page and wanted to see how it looks when formatted with troff and printed, so I tried: troff -man file | dpost | lp only to find that the printout was extremely ugly. Words seem to

Re: [9fans] troff -man prints poorly

2008-02-26 Thread Sape Mullender
lp is the most horrible shell script imaginable. The line for your printer in /sys/lib/lp/devices is supposed to help match the output of troff to the input your printer expects. There are people out there who know how to do this. I've long given up. I just generate postscript/pdf (below's the

Re: [9fans] troff -man prints poorly

2008-02-26 Thread Sape Mullender
/sys/lib/tmac.an (troff -man) loads the LucidaSans fonts: .fp 1 R LucidaSans .fp 2 I LucidaSansI .fp 3 B LucidaSansB .fp 5 L LucidaCW If you don't have those, some other font is substituted and that'll make your output look ugly. (/sys/lib/tmac.s (troff -ms) doesn't load fonts (defaults to Times

Re: [9fans] usbd problem

2008-02-13 Thread Sape Mullender
Are you killing the old usbd before starting a new one? yes. And is this uhci or ohci? ohci. oddly, my uhci ich9r machine doesn't recognize either of my extensive collection of two usb devices. You may be running the usbd with faulty dump.c. If your devices show up in

Re: [9fans] usbd problem

2008-02-13 Thread Sape Mullender
ohci. oddly, my uhci ich9r machine doesn't recognize either of my extensive collection of two usb devices. You may be running the usbd with faulty dump.c. If your devices show up in /dev/usb0/1/status with just one line and 0x00 for Class/Subclass/Proto, then you're almost

Re: [9fans] usbd problem

2008-02-12 Thread Sape Mullender
usbd is exiting when i have a camera which is off attached: ; usb/usbd -v ; echo $status usbd 1827: usbd: setup0: usb0/1: transaction error - erik Nemo found a bug in usb/lib/dump.c that may well account for this. I incorporated his change (and fixed a bug in his code :-). I'll ask

Re: [9fans] usbd problem

2008-02-12 Thread Sape Mullender
Nemo found a bug in usb/lib/dump.c that may well account for this. I incorporated his change (and fixed a bug in his code :-). I'll ask Geoff to push it out today. Sape excellent. i'll give it a shot. - erik Give it a shot now: /sys/src/cmd/usb/lib/dump.c #include u.h

Re: [9fans] sources mirror in germany?

2008-02-07 Thread Sape Mullender
I think someone is doing a mirror of sources in Germany, Netherlands you mean? Hey, it's all Scandinavia, what's the difference? Sape

Re: [9fans] usb ohci support arrives -- another caution

2008-02-06 Thread Sape Mullender
If you do rebuild a kernel with the new usb interface, and you have a usb mouse with a scroll wheel, you must ensure that usb/usbmouse is started with the '-s' flag (e.g. in /bin/usbstart), or your mouse won't work at all. I'll submit a patch for this shortly. Yes, the mouse driver should

[9fans] More IWP9 photos

2007-12-15 Thread Sape Mullender
in http://www.huygens.org/sape/photo/IWP9/index.html There are also a couple of Unix room pictures, an areal photo and some old Peterface pictures. Sape

Re: [9fans] pull problem

2007-12-05 Thread Sape Mullender
a sys/src/games/mp3dec/mkfile 664 sys sys 1196685451 a sys/src/games/music/mkfile 664 sys sys 1196685439 error: copying /n/boot/sys/src/games/mp3dec/mkfile: '/n/boot/sys/src/games/mp3dec' does not exist then pull exits, I didn't see any 'c' just 'a'; and I saw a 'a' for applylog and

Re: [9fans] IWP9 attendess

2007-12-02 Thread Sape Mullender
we will have a group offering rides from murray hill inn. Let's meet in the lobby at 0845 AM (SHARP!) monday morning and those of us with cars can give you a ride up. There may be some who come by train arriving at the Murray Hill station at 9:16. Those staying at the MH Inn with car might

Re: [9fans] IWP9 attendess

2007-12-02 Thread Sape Mullender
Sorry I misunderstood Murray Hill Inn for http:// www.murrayhillinn.com/, so I will go by Train. If you are at the Murray Hill Inn (the hotel), you can ride with the others who stay there (I hope). If you stay in New York City, you need to take the train. From the Murray Hill Inn, you can

Re: [9fans] WIP session at IWP9

2007-11-28 Thread Sape Mullender
Any requirements on those sticks other than size? Is there a difference between bootable and non bootable? Sape looks like I am doing a tutorial on THNX. Of those coming, who would like to attend? Can you bring a 2G USB stick? The goal is to get you a usable environment you can

Re: [9fans] QTCTL?

2007-11-01 Thread Sape Mullender
2. All 9P messages would still be client-server-client. This fits with #1, but also excludes solutions that introduce new server-client-server messages after a successful Tcache. And there is the quandrary. Allowing server-client-server messages (aka callbacks) complicate 9P beyond anything

Re: [9fans] QTCTL?

2007-11-01 Thread Sape Mullender
In the case of read cache (which is probably going to be used more often than write-cache), the client needs to send two RPC every time a writer modifies the cached file. What if Rlease doesn't necessary break the lease, but have an option (negotiated in Tcache) to let the client know

Re: [9fans] QTCTL?

2007-11-01 Thread Sape Mullender
Why not just have a file that a client reads that lets the client know of changes to files. A bit better, but the comment I just made about breaking single-copy semantics still hold. The point is that merely notifying the client isn't enough. The server should wait for an acknowledgement to

Re: [9fans] QTCTL?

2007-11-01 Thread Sape Mullender
I Type too fast — got A and B mixed up. Below is the fix: That breaks single-copy semantics: A client may have acted on data after it had been changed by somebody else. Say, A and B are sharing the file. B has a read-lease on the file, A obtains a write lease, modifies the file and sends a

Re: [9fans] QTCTL?

2007-11-01 Thread Sape Mullender
It's also why this doesn't work: Tcache asks whether the server is prepared to cache Rcache makes lease available with parameters, Rerror says no. Tlease says, ok start my lease now (almost immediately follows Rache) Rlease lease expired or lease needs to be given

Re: [9fans] QTCTL?

2007-11-01 Thread Sape Mullender
Tinval (asks the server for invalidations for files seen) Rinval (reports new invalidations) Tinval (asks for further invals, and let the server know that Rinval was seen by client) That'll work.

Re: [9fans] QTCTL?

2007-11-01 Thread Sape Mullender
I know, I think I was not clear, sorry. The point is that, referring to the Tinval-Rinval-Tinval-... sequence, a server could afford to consider its Rinval acknowledged if the client happens not to respond (by issuing another Tinval) within 5 seconds. That would freeze clients for at most

Re: [9fans] Got thread experience?

2007-10-25 Thread Sape Mullender
So, those with experience with threading implementations on weird real-time or embedded operating systems: Have you ever ran into a thread implementation where two threads could *not* directly access each other's .bss (or equiv)/heap? i.e. have you ever encountered a scenario where

[9fans] International Workshop on Plan 9

2007-10-08 Thread Sape Mullender
Since we could use a few more papers for the Plan 9 Workshop (see plan9.bell-labs.com/iwp9) we're extending the deadline for submission by two weeks and we're going to allow submission of extended abstracts as well as full papers. The new deadline is October 19th. Acceptance notification may

Re: [9fans] thread(2) man page

2007-09-03 Thread Sape Mullender
just to state it. We have int as return type for procexecl, procexec in the thread(2) man page and void in /sys/src/libthread/exec.c If it returns at all, there was an error. If it doesn't return, there may or may not be an error, but you won't see it. Exec() probably has the int return value

Re: [9fans] plan 9 overcommits memory?

2007-09-03 Thread Sape Mullender
If system calls were the only way to change memory allocation, one could probably keep a strict accounting of pages allocated and fail system calls that require more VM than is available. But neither Plan 9 nor Unix works that way. The big exception is stack growth. The kernel

Re: [9fans] plan 9 overcommits memory?

2007-09-03 Thread Sape Mullender
It would be cool to be able to get a handle on being able to shrink the memory occupied by an application dynamically. Malloc (through brk()) grows the memory footprint, but free does not shrink it. The same is true for the stack. Once allocated, it doesn't get freed until the process

[9fans] 2nd International Workshop on Plan 9

2007-08-09 Thread Sape Mullender
We have started preparations to host the Second very International Workshop on Plan 9 at Bell Labs MH in December of this year, almost certainly Monday December 3 and Tuesday December 4. Preparations are still underway, but we hope to post the official announcement soon. Sape

Re: [9fans] 2nd International Workshop on Plan 9

2007-08-09 Thread Sape Mullender
as a computing grid platform? Is it worth trying to get some of these ppl to go there? Or am I completely mistaken on what this workshop is about? Any thoughts on this are welcome :) Cheers, Mathieu. On Thu, Aug 09, 2007 at 10:15:28AM -0400, Sape Mullender wrote: We have started

Re: [9fans] implementing 9p read

2007-07-05 Thread Sape Mullender
Hi, while thinking about whether it would make sense to use 9p for a rather small embedded device, where Inferno or Plan 9 cannot be run (similar to styx-on-a-brick), I came to the problem how to implement read access to dynamic status files, like the `status' named text files on plan 9, or

Re: [9fans] Re: You might enjoy this

2007-06-05 Thread Sape Mullender
http://www.joeyoder.com/papers/patterns/BBOM/mud.html Why does this paper have SO MANY CAPITALIZED WORDS, and what can we do to improve it? tr A-Z a-z

Re: [9fans] delete mail from mailfs via script

2007-05-23 Thread Sape Mullender
It might not be hard to make Edit x/.*\n( .*\n)+/ g/flowers/ * Delmesg work (where * is a new command meaning execute like button 2). But that isn't implemented right now. That would be very useful for a number of things — nice idea. Sape

Re: [9fans] /n/gps/time ?

2007-04-06 Thread Sape Mullender
Hi, using gpsfs i get the correct position from an NMEA gps device (Haicom 204); but aux/timesync -G resets the clock to 19:xx 31 December 1969. The valid nanoseconds value in /n/gps/time is a 10-digit number. Converted to seconds it's about 20 seconds after the start of the epoch.

Re: [9fans] non-PC hardware

2007-03-28 Thread Sape Mullender
i should perhaps elaborate: sicortex stick 5000+ 64-bit mips cpus (each 1gflop, 972 six-way smp compute nodes) onto a single backplane connected in a Kautz topology. their whitepapers are quite interesting. won an award at SC'06, if i remember correctly. On 3/28/07, andrey mirtchovski

Re: Re: [9fans] Samterm up down key patch

2006-11-14 Thread Sape Mullender
i thought the point of plan 9 was to be different. No, the point of plan 9 is to be right. Sape

Re: Re: [9fans] Samterm up down key patch

2006-11-14 Thread Sape Mullender
shoenberg's Style and Idea is a good reference. he had lots of both, and knew how to distill them. none of his music had ifdefs in it. But I discovered macro expansion in Rossini's Barbieri di Seviglia Overture. Where the woodwinds come in to do their second pa pa pa PAdam, pa pa pa PAdam,

[9fans] IW9P registration

2006-11-03 Thread Sape Mullender
Sape Mullender sape Bell Labs, Murray Hill [EMAIL PROTECTED]

Re: Re: [9fans] First attempts

2006-08-22 Thread Sape Mullender
On Tue Aug 22 13:04:09 EDT 2006, [EMAIL PROTECTED] wrote: ... Well, you have to have disks /somewhere/, and that machine is the one I was worried about. ... /somewhere/ is not somewhere you can type ^t^tr. A few of us, unfortunately, have only one machine to run Plan 9 on.

Re: [9fans] More USB audio

2006-06-30 Thread Sape Mullender
http://www.turtlebeach.com/site/products/audioadvantage/ We got one ath the labs. Plugged it into Plan 9. It works. It actually outputs a lot of oomph into my headset. Nice device. 44100 or 48000 Hz, 16-bit stereo. Has mute volume control. Sape

Re: Re: [9fans] More USB audio

2006-06-30 Thread Sape Mullender
On 6/28/06, Sape Mullender [EMAIL PROTECTED] wrote: http://www.turtlebeach.com/site/products/audioadvantage/ We got one ath the labs. Plugged it into Plan 9. It works. It actually outputs a lot of oomph into my headset. Nice device. 44100 or 48000 Hz, 16-bit stereo. Has mute volume

Re: [9fans] new compilers

2006-03-30 Thread Sape Mullender
ioctl(fd, SETVOLUME, vol); is more comfortable. ah, but how about echo volume 50 /dev/audioctl for understandability? Sape

Re: [9fans] new compilers

2006-03-28 Thread Sape Mullender
P.S. This doesn't mean I'll ever *forgive* Andy Tannenbaum for spurring the creation of Linux. This is how myths are born. Andy Tanenbaum (one n) had nothing to do with Linux. He started Minix. Maybe the existence of Minix played a role in Linus' decision to start Linux, maybe not.

Re: [9fans] 9p and how can I know when a write is finished

2006-03-01 Thread Sape Mullender
Hello, I'm not sure if I'm misunderstanding this but, i need to write to a ctl file some commands, so to parse them correctly i need the complete command (commands file should be 10k or so, but may be more). How can I know when a write is finished to start parsing the commands? (i

Re: [9fans] Brdline

2006-01-18 Thread Sape Mullender
how about someone (or two) experts write the standard? worked for KR. brucee That worked. The UMTS standard, in contrast, was done by 4000 people and, trust me, it shows. I ran a received configuration message (30 bytes or so) through the ASN-1 decoder and ended up with a 5 megabyte C

Re: [9fans] The mother-of-all-gnot?

2006-01-09 Thread Sape Mullender
Or Ajax, the Unix system call server for Amoeba. and the dutch football team. Lets not forget Ajax(r) the toilet bowl cleaner.

Re: [9fans] killing processes

2005-09-17 Thread Sape Mullender
Just to be clear, Sape is saying that if you boot and sometimes you use one file server as root and sometimes you use a different one, then cfs will use the data cached on behalf of the first one when you're using the other one. That was indeed what I meant. Is there not a simple mechanism

Re: [9fans] killing processes

2005-09-16 Thread Sape Mullender
Are you using caching? not that I'm aware of. Would/does it make a difference? good question. experience, anyone? What speed is the link? cable modem, I think it is 1024/256. I've connected through cfs for years but gave it up now that I have to connect to more than one file

Re: [9fans] reliability and failing over.

2005-09-10 Thread Sape Mullender
Beware of the latency. Plan B usage shows that latency is the biggest problem. That's funny. We've been working on a low-latency wireless comms protocol here at the Labs that we've called Plan B (our wireless emulator runs on Plan 9, of course), because we'd come to the conclusion that

Re: [9fans] some Plan9 related ideas

2005-08-30 Thread Sape Mullender
I am a PhD student at Indiana University working on the application of some Plan 9 related to the embedded domain. Specifically I am looking at embedded debugging, configuration and device management using the distributed virtual filesystem model. I have looked at a few different types of

Re: [9fans] rdbfs

2005-08-24 Thread Sape Mullender
could it be that some other process is stealing bytes out of the uart? how do i make sure that's not happening? that's really unlikely given that the kernel is splhi looping to poll the uart. I don't think another process is stealing bytes but I do sympathize with anybody having uart

Re: [9fans] from slashdot

2005-08-18 Thread Sape Mullender
I don't anticipate any change to the sources and web infrastructure. i thought the more important thing would be what might happen to the espresso machine. Don't worry about that. We will hang on to that if it's the last thing we do. Sape

Re: [9fans] from slashdot

2005-08-17 Thread Sape Mullender
and the article itself: http://www.unixreview.com/documents/s=9846/ur0508l/ur0508l.html text: Dept. 1127: going, Going, GONE! by Peter H. Salus In 1969, UNIX was created at Bell Labs. For decades, the source of the ATT dialect of UNIX came from the researches of workers in

Re: [9fans] from slashdot

2005-08-17 Thread Sape Mullender
http://www.unixreview.com/documents/s=9846/ur0508l/ur0508l.html Does this have any impact on Jim and Russ? Will this affect the sources and web infrastructure at all? No.

Re: [9fans] (no subject)

2005-08-08 Thread Sape Mullender
Nothing more than general interest but what hardware does the ppc and mtx ports in the current distribution relate to? The port in mtx is for a mini processor board that we have used to build tunneling devices for people to connect to the work network from home. We call them `bricks'.

Re: [9fans] Porting plan 9 to the Simpad / extending Bitsy

2005-03-23 Thread Sape Mullender
I'm not familiar with the SA1110 architecture nor the Bitsy code, and I have a few questions about it. The Bitsy is an SA1100, if I'm not mistaken. There's not a great deal of difference between ARM processors. The bitsy has no floating point, but there is a floating poiunt emulator in Plan