Re: [9fans] bug in echo?

2008-03-26 Thread roger peppe
On Wed, Mar 26, 2008 at 6:10 PM, erik quanstrom [EMAIL PROTECTED] wrote: this is a very odd case odd but important. it's worth knowing that what's your reasoning that this is an important case? i think it's important because every time you put echo $foo in a shell script, you're

Re: [9fans] Factotum

2008-05-06 Thread roger peppe
On Sun, May 4, 2008 at 2:57 AM, erik quanstrom [EMAIL PROTECTED] wrote: it is not factotum's job to provide persistant storage. that would infringe upon secstore's franchise. that said, i sometimes wish the interface between factotum and secstore was a bit more slick, particularly when

Re: [9fans] read/write offset hack

2008-05-30 Thread roger peppe
Given that the system encourages to perceive files as having arbitrary semantics (as opposed to having regular sequential file semantics) it would make sense (to me) to have reads and writes at arbitrary offsets to have arbitrary semantics as well -- that's, after all, what offset (kind of)

Re: [9fans] read/write offset hack

2008-05-30 Thread roger peppe
On Fri, May 30, 2008 at 4:15 PM, erik quanstrom [EMAIL PROTECTED] wrote: why not put the timing information inband? this would allow the timed sound to be saved to a file also without 1.7mb of zeros. because then you'd need to quote the audio data in case it contained something that looked

Re: [9fans] Fun with libthread 1: The Sieve

2008-06-06 Thread roger peppe
Note that due to primes' syntax I can't time that until I know what the 205,963rd prime number is. erm, what about time rc -c 'primes 1 100 | sed 205963q | tail -5' takes just over 1 second on my laptop.

[9fans] inferno under 9vx (+ ape fix)

2008-06-29 Thread roger peppe
for some silly reason, i decided it would be nice to try building inferno under 9vx rather than just using an existing inferno binary. i got it going eventually (except for graphics) but ape needs a fix in /sys/src/ape/lib/ap/plan9/dirtostat.c to add awareness of #Z. it's funny the way the

Re: [9fans] acme scrollbar

2008-07-02 Thread roger peppe
What do you think about my idea of moving the line to the bottom instead? bad idea. to be honest i don't think the precise semantics of the scroll distance are very important, but it is important that left and right buttons are near inverses of each other, which means that when scrolling down,

Re: [9fans] file heuristics on troff input

2008-07-14 Thread roger peppe
one thing that has bugged me in the past: upas relies on file -m to determine the type of attachments, but file only reads the first block of the file, so if you've got a utf-8 file with the first non-ascii character beyond the 8192nd byte, you get corrupted mail. IMHO for the -m option, file

Re: [9fans] Local variables and rc functions

2008-08-14 Thread roger peppe
On Thu, Aug 14, 2008 at 12:20 PM, kazumi iwane [EMAIL PROTECTED] wrote: if you want to delay the expansion of an env var until fn invocation,,use eval. % fn foo {eval echo $$bar} sorry, but that's so, so wrong. 1) $$bar gives the value of the variable named by the contents of the variable

Re: [9fans] [plan9mod] Re: /mnt/acme empty

2008-09-10 Thread roger peppe
I wrote a small script to tabify/untabify in acme using Russ's tab.c in general, pipe (|) is your friend. it's rare to have to interact with acme's special files directly. is there a reason you can't just execute |tab -n4 ? (perhaps i've misunderstood the script - i haven't tried it) slight

Re: [9fans] Acme questions

2008-09-10 Thread roger peppe
On Wed, Sep 10, 2008 at 7:48 PM, Pietro Gagliardi [EMAIL PROTECTED] wrote: I think double-clicking on the box to the left of the column information line thingy should do it. erm. you really could have tried this first. it doesn't take much, you know. for the record, i once had a go at

Re: [9fans] Acme questions

2008-09-11 Thread roger peppe
On Thu, Sep 11, 2008 at 12:24 PM, sqweek [EMAIL PROTECTED] wrote: I think Pietro was making a suggestion, rather than explaining the current state of affairs. -sqweek i think your doubts benefit more than mine do.

Re: [9fans] Multi-domain authentication?

2008-10-21 Thread roger peppe
On Tue, Oct 21, 2008 at 4:29 AM, Eric Van Hensbergen [EMAIL PROTECTED] wrote: Good general problem, I'd also like to add my personal pain point that only the file server knows about the relationship between groups and users. It'd be nice to have a more general service to take care of this,

Re: [9fans] success with 9vx from a terminal

2008-10-22 Thread roger peppe
On Wed, Oct 22, 2008 at 12:42 PM, erik quanstrom [EMAIL PROTECTED] wrote: you mean like, uh, rio or acme? ☺ i can't see why it would be a bad idea to do something like this for text-only mode. it'd be a nice exercise, if nothing else. it should be possible to do without writing a file server,

Re: [9fans] mmap and shared libraries

2008-11-05 Thread roger peppe
On Wed, Nov 5, 2008 at 4:34 PM, Abhishek Kulkarni [EMAIL PROTECTED] wrote: term% cat pipeto.eris /bin/upas/filter -h $1 $2 'From: Eris Discordia' /dev/null personally, i think eris makes a lot of reasonable points.

Re: [9fans] fd2path and devsrv

2008-11-20 Thread roger peppe
On Wed, Nov 19, 2008 at 7:36 PM, Francisco J Ballesteros [EMAIL PROTECTED] wrote: BTW, I´d love to hear other experiences regarding ns or path reconstruction. i wrote a reverse path evaluator (ftrans) for inferno - given a path, it uses fd2path and /prog/xx/ns to attempt to return the

Re: [9fans] fd2path and devsrv

2008-11-20 Thread roger peppe
On Thu, Nov 20, 2008 at 12:59 PM, Steve Simon [EMAIL PROTECTED] wrote: The dos(1) command I wrote (in the style of cpu(1) but attaches to Windows boxen) uses a configuration file describing how the windows directories are mounted (using cifs(1)) on plan9. It also reads /proc/$pid/namespace to

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

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

Re: [9fans] 9pfuse and O_APPEND

2008-12-22 Thread roger peppe
On Sun, Dec 21, 2008 at 2:45 PM, erik quanstrom quans...@quanstro.net wrote: okay, so you're using DMAPPEND like sbrk(2). how do you avoid clients caring about the address of this new hunk of memory?^u clients caring about the offset of this hunk of the file? that is, the same problem malloc

Re: [9fans] Why do we need syspipe() ?

2009-01-05 Thread roger peppe
i've sometimes thought that the trick used by #d etc could be made more transparent by providing a genuine capability service for fds, in the form of a system call, for instance getfdcap(int fd, char *buf, int len) then instead of just writing the fd itself, you'd write the capability - thus

Re: [9fans] Why do we need syspipe() ?

2009-01-09 Thread roger peppe
On Fri, Jan 9, 2009 at 2:05 AM, Roman V. Shaposhnik r...@sun.com wrote: Multiplexing. If devices exposed channel interface, and got exported there would be no kernel protecting from clients sending random sequences of 9P messages (on a single host you can't mount a channel and then continue

Re: [9fans] Small program PlanKey (paraphrase of DOSKey)

2009-01-23 Thread roger peppe
one problem with this approach is that you won't be able to use mouse editing as usual on the command line, as the program grabs each keystroke as it's typed. that negates one of the major advantages of rio/9term. if you were to do this, a better place would be in rio itself (the down side being

Re: [9fans] Small program PlanKey (paraphrase of DOSKey)

2009-01-29 Thread roger peppe
2009/1/29 Anthony Sorace ano...@gmail.com: On Thu, Jan 29, 2009 at 3:49 AM, c...@gli.cas.cz wrote: How about turning acme to universal UI, in the style of old Oberon? [...] I love acme, but I think rio's the right starting place for GUI things. Maybe just move the menu into a pre-populated

Re: [9fans] 9vx as a cpu server?

2009-02-02 Thread roger peppe
why hasn't that old unix restriction been removed yet? is there any point to it at all any more? localhost-only announcing i suppose. 2009/2/2 Roman V. Shaposhnik r...@sun.com: On Sun, 2009-02-01 at 20:27 -0800, Russ Cox wrote: as for listening, 9vx by default uses the host ip stack, and plan

Re: [9fans] Sources Gone?

2009-02-03 Thread roger peppe
in the past i've pondered, in my crypto-naive way, if it might be possible to make venti (or at least vac) somewhat more secure by applying some kind of crypto to the data structures containing scores. to my mind, the biggest security vulnerability in venti is the ability to unconditionally

Re: [9fans] Sources Gone?

2009-02-03 Thread roger peppe
2009/2/3 erik quanstrom quans...@quanstro.net: to my mind, the biggest security vulnerability in venti is the ability to unconditionally enumerate an entire file tree given its root score. if the VtPointer data structures, or the scores within them, were encrypted somehow, maybe that

Re: [9fans] Regarding venti block size

2009-02-16 Thread roger peppe
2009/2/16 anooop.ano...@gmail.com: I want to store some big files on venti. size range around 200MB. Is there any way to do this? maybe i'm being stupid, but isn't that precisely what the vac format (as documented in http://www.cs.bell-labs.com/sys/doc/fossil.pdf) and its block tree

Re: [9fans] Query regarding vac

2009-02-19 Thread roger peppe
2009/2/19 anooop.ano...@gmail.com: Hello All, I was using venti/write to store off small data sets which are less than a datablock in size earlier. But now I have started using vac for larger data but I have come across this problem: Writing the same datablock to the venti server used to

Re: [9fans] 2 acmes using plan9port

2009-02-19 Thread roger peppe
On 19/02/2009, Rudolf Sykora rudolf.syk...@gmail.com wrote: what needs to be done in order to be able to run two acme programs? When I try to run it twice I get 9pserve: announce unix!/tmp/ns.ruda.:0/acme: Address already in use acme: can't post service: 9pserve failed i'd just change

Re: [9fans] actionfs

2009-02-23 Thread roger peppe
2009/2/23 Bruce Ellis bruce.el...@gmail.com: to make score i converted over 30,000 frames from mpg to tiff, using inferno. it took a while, as it was 10 years ago, but nice to wake up to. what's score?

Re: [9fans] Visual font viewer

2009-03-02 Thread roger peppe
i think it was me. a quick check of dump gives july 2003 for the creation date. it was only an hour or so's work - the UI could be better! 2009/3/1 Steve Simon st...@quintile.net: Is there a program that will render some subset of a font file so that you get a quick feel for what it looks like?

Re: [9fans] command repetition in sam/acme

2009-03-03 Thread roger peppe
2009/3/3 Rudolf Sykora rudolf.syk...@gmail.com: I would do it with awk myself, Much depends on what you want to do to the 1000'th word on the line. Say I really want to get there, so that I can manually edit the place. if i really had to do this (as a one-off), i'd probably do it in a few

Re: [9fans] command repetition in sam/acme

2009-03-03 Thread roger peppe
2009/3/3 Russ Cox r...@swtch.com: s/tab/\n/g .-0+1000 u that will show you what the 1000th word is, and then you can go back to it after the undo.  It's not ideal, but you asked. watch out though... that actually takes you to the 1001st word!

Re: [9fans] acme Put doesn't save

2009-03-04 Thread roger peppe
i reckon this could be classed as a bug. you can't change a directory window to a file window. 2009/3/4 Rudolf Sykora rudolf.syk...@gmail.com: Hello I am running p9p acme. I open a directory, so in the tag line I have sth. ending with '/' and in the window I have the list of files in that

Re: [9fans] acme Put doesn't save

2009-03-04 Thread roger peppe
2009/3/4 erik quanstrom quans...@quanstro.net: if on the other hand you try to modify the name of a directory listing frame, the tag line box is not filled.  this is a hint that you're doing something wrong.  also there is no Put option. this is a bigger hint that you're doing something wrong.

Re: [9fans] vac flattens trees?

2009-03-09 Thread roger peppe
2009/3/9 Anthony Sorace ano...@gmail.com: given a list of files like /fish /dog /snake/asp /snake/python, the results of a vac (as interpreted by vacfs) seem to be /fish /dog /asp /python. is this intentional? it seems unexpected, and makes doing selective backups using vac a bit awkward. i

Re: [9fans] vac flattens trees?

2009-03-09 Thread roger peppe
2009/3/9 Russ Cox r...@swtch.com: On Mon, Mar 9, 2009 at 8:43 AM, roger peppe rogpe...@gmail.com wrote: 2009/3/9 Russ Cox r...@swtch.com: if you want selective backups you can use the -x flag. presumably you mean the -e flag? i meant the -x flag (he said he was on p9p). http://swtch.com

Re: [9fans] python csp

2009-03-12 Thread roger peppe
2009/3/11 gd...@9grid.es: www.stackless.com not viable. it doesn't even support alt, as far as i can see. coming up: another port of the 9 code. maybe i'm hidebound, but i hate to do concurrent programming without channels!

Re: [9fans] python csp

2009-03-12 Thread roger peppe
2009/3/12 John Barham jbar...@gmail.com: How about using queues (http://docs.python.org/library/queue.html)? no alt.

Re: [9fans] python csp

2009-03-12 Thread roger peppe
2009/3/12 John Barham jbar...@gmail.com: How about using queues (http://docs.python.org/library/queue.html)? no alt. Couldn't you implement it approximately using http://docs.python.org/library/queue.html#Queue.Queue.qsize? no. approximately in this case would mean wrong. for the time

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

2009-03-18 Thread roger peppe
2009/3/17 erik quanstrom quans...@quanstro.net: 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 string longer than 8k read from a file.

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

2009-03-18 Thread roger peppe
2009/3/18 erik quanstrom quans...@quanstro.net: -                               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 multiplicative factor, to avoid linear behaviour when reading large files? i

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

2009-03-18 Thread roger peppe
2009/3/18 erik quanstrom quans...@coraid.com: the total cost is O(maximum token length) for the whole input.  how could this be a problem? well, if there's only one token (e.g. when ifs=''), it's actually O(n^2), assuming that realloc copies every time. but your first argument is sufficient. i

Re: [9fans] Raw Input Driver

2009-03-20 Thread roger peppe
2009/3/20 Charles Forsyth fors...@terzarima.net: the ordering problem is misleading: you need timely response for interactive applications; it's a reasonably straightforward application of real-time programming.  (by the way, if you're passing low-level things like that across lossy wireless

Re: [9fans] Raw Input Driver

2009-03-20 Thread roger peppe
2009/3/20 Charles Forsyth fors...@terzarima.net: in the slow-network situation the thing you're responding to on the display might not be accurate (eg, feedback delayed) which low-level input merging won't address. true, but that's something that's relatively easy for the user to adjust to -

Re: [9fans] Raw Input Driver

2009-03-20 Thread roger peppe
2009/3/20 tlaro...@polynum.com: On Fri, Mar 20, 2009 at 01:03:12PM +, roger peppe wrote: For my own stuff, having to rewrite the 2 dimensions user interface, I have created a library running on the terminal that keeps the definitions of the graphical elements drawn with an identifier (3

Re: [9fans] Raw Input Driver

2009-03-20 Thread roger peppe
2009/3/20 Francisco J Ballesteros n...@lsub.org: El 20/03/2009, a las 14:07, rogpe...@gmail.com escribió: so you end up with a smart client or split application, which lack the same easy composability that you get from plan 9's remote devices. perhaps i should have written generality and easy

Re: [9fans] Raw Input Driver

2009-03-20 Thread roger peppe
2009/3/20 Francisco J Ballesteros n...@lsub.org: Yes, you split the application. UI elements are kept at the terminal and the application at the CPU server. The  input event generator knows what's the input, but it runs at the terminal. The only problem is to come up with a widget abstract

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

2009-03-24 Thread roger peppe
http://www.classhat.com/tymaPaulMultithread.pdf

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

2009-04-02 Thread roger peppe
2009/4/2 fge...@gmail.com: On Thu, Apr 2, 2009 at 8:41 PM, John Stalker stal...@maths.tcd.ie wrote: What I most often miss in shell programming is a proper type system. You should have a look at alphabet. It is cool. http://www.vitanuova.com/inferno/man/1/sh-alphabet.html i certainly enjoyed

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

2009-04-16 Thread roger peppe
2009/4/6 Bakul Shah bakul+pl...@bitblocks.com: On Thu, 02 Apr 2009 20:28:57 BST roger peppe rogpe...@gmail.com  wrote: a pipeline is an amazingly powerful thing considering that it's not a turing-complete abstraction. f | g is basically function composition, where f and g are stream

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
2009/4/20 andrey mirtchovski mirtchov...@gmail.com: with 9p, this takes a number of walks... shouldn't that be just one walk? % ramfs -D ... % mkdir -p /tmp/one/two/three/four/five/six ... % cd /tmp/one/two/three/four/five/six ramfs 640160:-Twalk tag 18 fid 1110 newfid 548 nwname 6 0:one

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
2009/4/21 maht mattmob...@proweb.co.uk: Tag 3 could conceivably arrive at the server before Tag 2 that's not true, otherwise the flush semantics wouldn't work correctly. 9p *does* require in-order delivery.

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
i wrote: the currently rather complex definition of Twalk could be replaced by clone and walk1 instead, as in the original 9p: {Tclone, Twalk, Twalk, ...} i've just realised that the replacement would be somewhat less efficient as the current Twalk, as the cloned fid would still have to be

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
2009/4/21 erik quanstrom quans...@quanstro.net: what is the important use case of flush and why is this so important that it drives the design? actually the in-order delivery is most important for Rmessages, but it's important for Tmessages too. consider this exchange (C=client, S=server),

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
2009/4/21 erik quanstrom quans...@quanstro.net: isn't the tag space per fid? no, otherwise every reply message (and Tflush) would include a fid too; moreover Tversion doesn't use a fid (although it probably doesn't actually need a tag) a variation on the tagged queuing flush cache would be to

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
2009/4/21 Bakul Shah bakul+pl...@bitblocks.com: In the pipelined case, from a server's perspective, client's requests just get to it faster (and may already be waiting!). It doesn't have to do anything special.  What am I missing? you're missing the fact that without the sequence operator, the

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
2009/4/21 David Leimbach leim...@gmail.com: Roger... this sounds pretty promising. i dunno, there are always hidden dragons in this area, and forsyth, rsc and others are better at seeing them than i.  10p?  I'd hate to call it 9p++. 9p2010, based on how soon it would be likely to be

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
2009/4/21 erik quanstrom quans...@quanstro.net: plan 9 and inferno rely quite heavily on having flush, and it's sometimes notable when servers don't implement it. for instance, inferno's file2chan provides no facility for flush notification, and wm/sh uses file2chan; thus if you kill a

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
2009/4/21 erik quanstrom quans...@quanstro.net: bundling is equivalent to running the original sequence on the remote machine and shipping only the result back.  some rtt latency is eliminated but i think things will still be largely in-order because walks will act like fences.  i think the

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread roger peppe
2009/4/21 erik quanstrom quans...@quanstro.net: i was trying to point out that if you try to ignore the issue by removing flush from the protocol, you'll get a system that doesn't work so smoothly. your failure cases seem to rely on poorly chosen tags. i wasn't suggesting that flush be

Re: [9fans] missing ed's line numbering in sam -d

2009-04-23 Thread roger peppe
2009/4/23 erik quanstrom quans...@quanstro.net: you can do this in sam with an external program ... except the line numbers won't be accurate unless you're printing lines from the beginning.

Re: [9fans] missing ed's line numbering in sam -d

2009-04-23 Thread roger peppe
2009/4/23 erik quanstrom quans...@coraid.com: left as an excercize to the reader. not possible, i think, as the external program can't know where the sam selection is coming from. easier in acme.

Re: [9fans] 9p2010

2009-04-23 Thread roger peppe
2009/4/23 erik quanstrom quans...@quanstro.net: it occurred to me yesterday morning that the problem with a bundle of 9p requests is that 9p then no longer maps directly to system calls. with 9p2000, if you want to do a Tread, it's pretty clear that one needs to read(2); traditiona syscalls

Re: [9fans] 9p2010

2009-04-23 Thread roger peppe
2009/4/23 Fco. J. Ballesteros n...@lsub.org: But if you do that (send sequences from userl-level) you must interpret your namespace yourself. When I tried to detect how to bundle calls for plan b, a problem I had was namec. For me it's still not clear how to detect cleanly `what to batch',

Re: [9fans] 9p2010

2009-04-27 Thread roger peppe
2009/4/26 Roman V. Shaposhnik r...@sun.com: On Thu, 2009-04-23 at 18:53 +0100, roger peppe wrote: i wonder how many things would break if plan 9 moved to a strictly name-based mapping for its mount table... What exactly do you mean by *strictly* ? i mean using pathnames rather than using

Re: [9fans] just in case anyone has written this

2009-04-28 Thread roger peppe
2009/4/28 ron minnich rminn...@gmail.com: On the inbound side, I need it to merge lines so that, e.g., a line from 11.1.1.1 and 11.1.1.2 if same, gets printed as 1-2: Mon may 8 2011 if you do this, then presumably you can't print a line from any source until you've got a line from all of them.

Re: [9fans] just in case anyone has written this

2009-04-28 Thread roger peppe
2009/4/28 ron minnich rminn...@gmail.com: On Tue, Apr 28, 2009 at 2:05 AM, roger peppe rogpe...@gmail.com wrote: 2009/4/28 ron minnich rminn...@gmail.com: On the inbound side, I need it to merge lines so that, e.g., a line from 11.1.1.1 and 11.1.1.2 if same, gets printed as 1-2: Mon may 8

Re: [9fans] problems with redirection in rc

2009-05-05 Thread roger peppe
where did you put the redirection? i'd have thought that this would work ok (note the added braces): {for (i in *_r) @{cd $i; echo -n $i^' '; grep total otdit | grep -v na}} res 2009/5/5 Rudolf Sykora rudolf.syk...@gmail.com: Hello everyone! To get some useful information from a file I

Re: [9fans] problems with redirection in rc

2009-05-05 Thread roger peppe
in that case, surely it'd be trivial to make a root-suid executable that allows namespace manipulation in a non-sensitive area (e.g. /mnt)? maybe it could be distributed as part of p9p meaning hacks like $NAMESPACE could go away under linux. maybe it already has been, and i'm as ignorant as usual.

Re: [9fans] Sam commands in acme

2009-06-26 Thread roger peppe
you need (.|\n) instead of . sam originally used @ as a match everything character but it was removed, presumably because it was rarely used. to match C comments, you need something like this: x/\/\*([^*]|\*[^\/]|[^*\/]|\n)*\*\// 2009/6/26 hugo rivera uai...@gmail.com: Hi, I am trying to

Re: [9fans] Another acme question

2009-06-26 Thread roger peppe
2009/6/26 hugo rivera uai...@gmail.com: Hello, I have another problem with acme. Lets say I want to check the spelling in all the comments in a c file, so I execute: Edit ,x/\/\*.*\*\// spell   (nevermind this doesn't work for more than one line comments) and nothing happens. this seems

Re: [9fans] v9fs question

2009-07-14 Thread roger peppe
this is at a bit of a tangent from the previous discussion, but something i've always wondered: why does the linux 9p mount syscall bother with IP addresses at all? isn't it sufficient just to provide a facility for mounting a file descriptor (like the plan 9 syscall) and have an auxiliary

Re: [9fans] v9fs question

2009-07-14 Thread roger peppe
2009/7/14 Tim Newsham news...@lava.net: The v9fs driver lets you mount from a file descriptor. Is this what you're asking for? i was aware it allowed a mount of a file descriptor. in the interests of minimalism, i was wondering why it did anything else.

Re: [9fans] i/o on a hangup channel asymmetry

2009-07-23 Thread roger peppe
one example of this behaviour that i use all the time is: tar t foo.tar | sed 10q just to get some idea of the contents of foo.tar. often the tar file is huge, and i won't get a command prompt back until all the elements of the pipeline have completed - whereas i want it to finish quickly.

[9fans] vmware installation problems

2009-07-27 Thread roger peppe
i'm trying to install plan 9 under vmware (2.0.5 this time, having failed with 1.0), and it all worked fine (fossil + venti installation, 8GB disk, all defaults, rebooted fine, waited for venti to calm down, fshalt), except that when i came to reboot, i got i/o errors as it was booting - here are

Re: [9fans] vmware installation problems

2009-07-29 Thread roger peppe
This problem is only with plan9? yup. although it is plan9-inside-vmware, which could make a significant difference.

Re: [9fans] vmware installation problems

2009-07-29 Thread roger peppe
it's the latest version of VMWare Fusion AFAIK... 2009/7/29 Tim Newsham news...@lava.net: This problem is only with plan9? yup. although it is plan9-inside-vmware, which could make a significant difference. And you said VMWare 2.x, which is exceedingly old... Tim Newsham

[9fans] ape strtod crash

2009-07-30 Thread roger peppe
this ape program gives a floating point exception error: #include stdlib.h void main(){ strtod(421567849e316, 0); } this made awk crash when i was running dumpvacroots. it dies at /sys/src/ape/lib/ap/stdio/strtod.c:473 but it looks a bit involved for me to dive into right now, i'm

[9fans] vmware snarf problem

2009-07-30 Thread roger peppe
continuing my litany of vmware woes: my vmware snarf buffer doesn't seem to read correctly. e.g. term% echo hello snarf term% cat snarf term% pwd /mnt/vmware term% the data is correctly copied into the system (mac os) snarf buffer, but nothing ever comes back the other way. unfortunately the

Re: [9fans] vmware snarf problem

2009-07-30 Thread roger peppe
actually, i lied when i said that nothing ever comes out of the snarf buffer. if i copy some text externally (inside mac os), then i get it, just once, inside plan 9/vmware. reading it seems to clear it. e.g. term% cat /dev/snarf hello world term% cat /dev/snarf term% 2009/7/30 roger peppe

Re: [9fans] ape strtod crash

2009-07-30 Thread roger peppe
2009/7/30 erik quanstrom quans...@quanstro.net: fixed, http://9fans.net/archive/2009/01/234 ok, thanks, i had a very vague memory of this, but obviously my googling was inadequate. did you submit a patch? i can't see one. i will if not - it's an annoying error. (and, as you say, why not just

Re: [9fans] 9p fids and references

2009-07-30 Thread roger peppe
2009/7/30 hugo rivera uai...@gmail.com: [...] there's no way two different files point to the same data structure (but maybe two different fids do?) so reference counting is unnecessary, am I right? no, because a file can be opened several times. when you open a file you get a new fid. so if

[9fans] detecting drawterm

2009-07-31 Thread roger peppe
i'm probably being stupid here, but what's a good robust way of detecting in $home/lib/profile that the remote connection is from drawterm, so that i can start rio etc? currently the best i've got is to check /mnt/term/sysname, but that falls down the moment i connect from a different host...

Re: [9fans] detecting drawterm

2009-07-31 Thread roger peppe
2009/7/31 Steve Simon st...@quintile.net: Drawterm connects with service=cpu In the cpu clause I do this:        if (! test -e /mnt/term/mnt/wsys) {     # dt2k                # cpu call from drawterm                if (test -e /mnt/term/dev/secstore){                        auth/factotum

Re: [9fans] ceph

2009-08-03 Thread roger peppe
2009/8/4 ron minnich rminn...@gmail.com:  2. do we have anybody successfully managing that much storage that is     also spread across the nodes? And if so, what's the best practices     out there to make the client not worry about where does the storage     actually come from (IOW, any kind

[9fans] more time amusement under vmware

2009-08-04 Thread roger peppe
the time problem i was having before (fast clock) had seemed to be irreproducible. however just now, i noticed the following odd behaviour: fiddle% date -u Thu Jan 1 00:00:00 GMT 1970 fiddle% cat /dev/time 0 0 0 1 fiddle% fiddle% # wait a

Re: [9fans] ceph

2009-08-04 Thread roger peppe
2009/8/4 erik quanstrom quans...@quanstro.net: Google? the exception that proves the rule? they emphatically don't go for posix semantics... why would purveryers of 9p give a rip about posix sematics? from ron: 10,000 machines, working on a single app, must have access to a common file

Re: [9fans] ceph

2009-08-04 Thread roger peppe
2009/8/4 C H Forsyth fors...@vitanuova.com: they emphatically don't go for posix semantics... what are posix semantics? perhaps wrongly, i'd assumed that the posix standard implied some semantics in defining its file API, and ron was referring to those. perhaps it defines less than i assume -

Re: [9fans] more time amusement under vmware

2009-08-04 Thread roger peppe
2009/8/4 erik quanstrom quans...@quanstro.net: fiddle% cat /dev/time           0                     0                     0      1 fiddle% what's especially wrong about this is that /bin/time is supposed to have 4 fields: it does - it just that the line wrapped. the value of the last field

Re: [9fans] more time amusement under vmware

2009-08-04 Thread roger peppe
2009/8/4 erik quanstrom quans...@quanstro.net: do you have something funny bound on /dev? having said what i said - yes, i realise that a mistaken bind -b means that i was using drawterm's /dev/time, not the host system's. and, oddly, drawterm implements the time file, but doesn't bother to

Re: [9fans] Acme Configuration

2009-08-07 Thread roger peppe
2009/8/7 Noah Evans noah.ev...@gmail.com: The dump doesn't preserve indent state personally, i think it should. and some other stuff as well.

Re: [9fans] Acme Configuration

2009-08-07 Thread roger peppe
the Include path. contents of win buffers. Undo/Redo history. ok, the last might be pushing it a bit, but ideally i'd like to be able to dump an acme session and restore it without any loss of continuity, and the Undo/Redo history is a very useful part of my acme context. while i'm about it,

[9fans] bio from string

2009-08-12 Thread roger peppe
just to check i'm not missing something, is there a reasonable way of getting bio(2) to read from a string rather than an fd? i can think of various ways, but none are very savoury.

Re: [9fans] Thrift RPC

2009-08-13 Thread roger peppe
2009/8/13 Roman Shaposhnik r...@sun.com: Am I totally missing something or hasn't been the binary RPC of that style been dead ever since SUNRPC? Hasn't the eulogy been delivered by CORBA? Haven't folks realized that S-exprs are really quite good for data serialization in the heterogeneous

Re: [9fans] Using proportional fonts in Acme for Programming

2009-08-13 Thread roger peppe
2009/8/13 Aaron W. Hsu arcf...@sacrideo.us: Firstly, how many of you using Acme for programming on a daily basis remap your fonts so that the fixed width font is the main one that you use? i use proportional fonts in acme for programming. Secondly, if you do use proportional width fonts, why,

Re: [9fans] Thrift RPC

2009-08-13 Thread roger peppe
2009/8/13 David Leimbach leim...@gmail.com: On 8/13/09, erik quanstrom quans...@coraid.com wrote: we don't use te*xt for 9p, do we? the difference being, 9p is the transport not the representation of the data and 9p has a fixed set of messages. Also 9p aims at file systems pretty obviously

[9fans] drawterm hangups

2009-08-18 Thread roger peppe
every so often using drawterm (mac os version) i've been getting a hangup. it's not a sudden thing - rio continues running, but first i lose keyboard input, then mouse input. it seems to be to do with one window, which was probably in rawon mode. if i get access to the rio session via another

Re: [9fans] drawterm hangups

2009-08-18 Thread roger peppe
2009/8/18 erik quanstrom quans...@quanstro.net: wireless connection to the server? nope. the server is VMware on the same machine. the connection itself is fine (i see text appear in the rio windows when writing to their cons files, for example) i've been getting this happening once a week or

  1   2   3   >