Re: [9fans] telnet vs. godaddy whois

2008-04-17 Thread Bakul Shah
On Thu, 17 Apr 2008 09:18:31 BST Charles Forsyth [EMAIL PROTECTED] wrote: having said that, i now suspect that sending one byte into a zero-window is not the problem. because the one-byte probe can only be done if there is data to send, and i already knew that a plain connection (dial

Re: [9fans] A new language for Plan 9

2008-05-02 Thread Bakul Shah
On Fri, 02 May 2008 08:49:24 BST John Stalker [EMAIL PROTECTED] wrote: To ensure programmers will use good style, Bentley will lack goto. To break out of nested loops, you can use the breakout statement. This worries me. When I need to implement a finite state autonomon I usually use

Re: [9fans] A shot in the dark

2008-05-27 Thread Bakul Shah
On Tue, 27 May 2008 15:02:15 PDT ron minnich [EMAIL PROTECTED] wrote: OK, this is a long shot, but i'm running out of ideas. Long, long ago, at a Usenix, I saw a talk by some adventurous australians (are there any other kind?). It was concerning some neat hardware designed for kernel

Re: [9fans] simulation and newsqueak

2008-05-30 Thread Bakul Shah
On Fri, 30 May 2008 15:27:12 PDT Skip Tavakkolian [EMAIL PROTECTED] wrote: i need to build a monte carlo simulator to model a system. i was first thinking of using libthread and channels, etc. but i'm wondering if newsqueak would be a better fit. has it been used for this? Why Newsqueak?

Re: [9fans] I/O load crashes Qemu

2008-06-13 Thread Bakul Shah
Everything, in my experience, crashes QEMU. Nice try. Just the opinion of me and my dog (who barks loudly when I shout f**king QEMU - piece of f**king sh*t!). I have used qemu/freebsd for the past 4 years or so. On the whole it has worked quite well. I often use plan9, Windows 2000 and

Re: [9fans] I/O load crashes Qemu

2008-06-13 Thread Bakul Shah
On Fri, 13 Jun 2008 19:52:22 EDT erik quanstrom [EMAIL PROTECTED] wrote: You don't need this sort of code in a virtualizable processor. See for example http://en.wikipedia.org/wiki/Popek_and_Goldberg_virtualization_requiremen ts i'm not convinced that the illusion that the virtualized

Re: [9fans] I/O load crashes Qemu

2008-06-13 Thread Bakul Shah
On Fri, 13 Jun 2008 20:39:48 EDT erik quanstrom [EMAIL PROTECTED] wrote: On a T42 running FreeBSD, a stock FreeBSD-4.11/qemu gets 18MB/s plan9/qemu gets 3MB/s. Both tested by writing 100MB from /dev/zero to a file. Neither needs any special drivers. I think part of the performance

Re: [9fans] I/O load crashes Qemu

2008-06-14 Thread Bakul Shah
i find there's a certain simplicty in dealing directly with hardware, provided one has documentation. Provided it is complete and the h/w well designed and interface regular. Unfortunately not all that common. you continue with this claim without presenting evidence. ...

Re: [9fans] Ideas for gc on venti

2008-06-18 Thread Bakul Shah
On Wed, 18 Jun 2008 22:57:27 +0200 Enrico Weigelt [EMAIL PROTECTED] wrote: * erik quanstrom [EMAIL PROTECTED] wrote: it makes sense for the storage managment function to present an idealized block device while hiding details like disk replacement and redundency. Well, I intend to make

Re: [9fans] 9vx os x

2008-06-29 Thread Bakul Shah
Please try it on 10.5 and see how it works. Every time the option key is pressed, it generates 0xef8095 in addition to doing its button2 duty. Also, you can't use option+apple key to escape out of full screen mode. This is on 10.5.3

Re: [9fans] sad commentary

2008-06-30 Thread Bakul Shah
Its worse than that Skip -- I imagine many would rank Apple's time machine greater than venti just because it puts a pretty GUI on top of crap methodology versus doing something clever under the hood. Pretty GUI doesn't hurt but it is the ease of use that makes time machine popular. Kudos to

Re: [9fans] vx32, 9vx 0.12

2008-07-01 Thread Bakul Shah
On OSX 9vx consistently sigsegv panics if you quickly resize its window a few times, particluarly before it finishes repainting. This doesn't happen (or is hard to trigger) when rio is not up. Running it under gdb reveals: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason:

Re: [9fans] a question of file and the history of magic

2008-07-06 Thread Bakul Shah
On Sun, 06 Jul 2008 17:20:12 EDT erik quanstrom [EMAIL PROTECTED] wrote: what is the upside to an external magic file? as you've shown, you can add a file type in 1 line of code. while the external magic file isn't c, i would argue that it's still code. Yes it is code but the advantage is

[9fans] lisp

2008-07-07 Thread Bakul Shah
[Questions in the third para below.] CMUCL initializes its state essentialy by loading a previously dumped core image file. This is slow the first time around but once the ~25MB core image is cached, execution is really fast and you have access to a lot of goodies. So a script like

Re: [9fans] lisp

2008-07-07 Thread Bakul Shah
On Mon, 07 Jul 2008 14:45:53 EDT erik quanstrom [EMAIL PROTECTED] wrote: i'm assuming by core file you don't mean executable. plan 9 already keeps an executable cache. It contains executable code but it is not an executable in the sense you don't directly feed it to exec(2). A lisp process

Re: [9fans] lisp

2008-07-07 Thread Bakul Shah
On Mon, 07 Jul 2008 20:55:36 BST Charles Forsyth [EMAIL PROTECTED] wrote: It contains executable code but it is not an executable in the sense you don't directly feed it to exec(2). A lisp in the script you gave earlier #!/usr/local/bin/cmucl -script (format t Hello,

Re: [9fans] lisp

2008-07-07 Thread Bakul Shah
On Mon, 07 Jul 2008 13:21:33 PDT David Leimbach [EMAIL PROTECTED] wrote: (format t Hello, World!~%) basically gets read then compiled then executed right? (thinking REPL here) Right? At least that's how SBCL works based on my understanding. Well, it is not a read-eval-print-loop -- it

Re: [9fans] lisp

2008-07-08 Thread Bakul Shah
On Tue, 08 Jul 2008 08:07:59 PDT David Leimbach [EMAIL PROTECTED] wrote: On Tue, Jul 8, 2008 at 7:08 AM, Dave Eckhardt [EMAIL PROTECTED][EMAIL PROTECTED] wrote: cmucl is directly executable but it has only enough intelligence to load a big lisp.core, which contains all the smarts.

Re: [9fans] lisp

2008-07-08 Thread Bakul Shah
On Tue, 08 Jul 2008 22:12:10 BST C H Forsyth [EMAIL PROTECTED] wrote: if you make it executable, i think you should also find that the resulting executable has its contents read into memory on demand (ie, a page fault causes a read from the executable file), which might suit you. Right. My

Re: [9fans] qemu: somebody give bellard a canonical image?

2008-07-25 Thread Bakul Shah
On Fri, 25 Jul 2008 08:32:22 PDT ron minnich [EMAIL PROTECTED] wrote: so it can go here: http://bellard.org/qemu/download.html might as well make it available .. Not sure why qemu/download.html shows so few bootable images. Another alternative is oszoo.org. See for instance

Re: [9fans] mmap

2008-11-04 Thread Bakul Shah
On Tue, 04 Nov 2008 20:15:04 +1300 Andrew Simmons [EMAIL PROTECTED] wrote: I don't want to imply that Ron is quite such an old fart as me, but somehow I don't get the impression that he was a kid in 1981, when Time Bandits came out. Ron, if you could give some clue as to when you saw the

Re: [9fans] Do we have a catalog of 9P servers?

2008-11-08 Thread Bakul Shah
It's not just the PHBs. I showed the original 9p (for 2.0.36) in 1998 to a fair number of linux people, and back then I had private name spaces, union mounts, user level servers, in fact just about all you get in plan 9 today and STILL don't get in linux. They were strongly convinced there

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

2008-12-01 Thread Bakul Shah
On Mon, 01 Dec 2008 10:25:09 PST Roman V. Shaposhnik [EMAIL PROTECTED] wrote: P.S. I have always wanted to be able to trade namespaces between different processes the same way file descriptors get traded using #s. On the other hand, I have never ever possessed enough insight into the

Re: [9fans] Itanium

2009-01-08 Thread Bakul Shah
On Thu, 08 Jan 2009 12:09:51 EST ge...@plan9.bell-labs.com wrote: You don't want to use an amd29k (even if you could get one). They look cute on paper but their freeze-mode interrupt handling is a Chinese puzzle and unless you use Ken's compiler (previously called 9c), you're stuck with

Re: [9fans] Itanium

2009-01-12 Thread Bakul Shah
On Mon, 12 Jan 2009 10:36:37 EST erik quanstrom quans...@quanstro.net wrote: how do you get around the fact that the parallelism is limited by the instruction set and the fact that one slow sub-instruction could stall the whole instruction? The hardware also has built-in support for

Re: [9fans] threads vs forks

2009-03-03 Thread Bakul Shah
On Tue, 03 Mar 2009 10:11:10 PST Roman V. Shaposhnik r...@sun.com wrote: On Tue, 2009-03-03 at 07:19 -0800, David Leimbach wrote: My knowledge on this subject is about 8 or 9 years old, so check with your local Python guru The last I'd heard about Python's threading is that it

Re: [9fans] threads vs forks

2009-03-06 Thread Bakul Shah
On Fri, 06 Mar 2009 10:47:20 PST Roman V Shaposhnik r...@sun.com wrote: Clojure is definitely something that I would like to play with extensively. Looks very promising from the outset, so the only question that I have is how does it feel when used for substantial things. You can browse

Re: [9fans] threads vs forks

2009-03-07 Thread Bakul Shah
On Fri, 06 Mar 2009 12:38:57 PST David Leimbach leim...@gmail.com wrote: Things like Clojure, or Scala become a bit more interesting when the VM is extended to allow tail recursion to happen in a nice way. A lack of TCO is not something that will prevent you from writing many interesting

Re: [9fans] Plan 9 on Routers?

2009-03-24 Thread Bakul Shah
On Tue, 24 Mar 2009 16:05:08 EDT Rahul Murmuria rahul.is.a...@gmail.com wrote: I am willing to explore this area. Maybe if /net reaches every router, such metrics can be retrieved and exchanged between the routers like other router OSes do (or maybe better than they already do) ? I am

Re: [9fans] Plan 9 on Routers?

2009-03-25 Thread Bakul Shah
On Wed, 25 Mar 2009 09:00:58 EDT Devon H. O'Dell devon.od...@gmail.com wrote: While creating an entire routing suite (such as Zebra/Quagga) is probably outside of the scope of a 3 month project, I think a diligent student could probably do

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

2009-03-25 Thread Bakul Shah
On Wed, 25 Mar 2009 21:25:07 CDT Eric Van Hensbergen eri...@gmail.com wrote: Also, figuring out how multitouch works with plan 9 would be valuable in itself -- although admitadly could be done without an iPhone. Exactly what I was thinking while reading this thread! An intuitive multitouch

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

2009-03-26 Thread Bakul Shah
suits lot's of people's needs. On Thu, Mar 26, 2009 at 12:20 AM, Bakul Shah bakul+pl...@bitblocks.com wr= ote: On Wed, 25 Mar 2009 21:25:07 CDT Eric Van Hensbergen eri...@gmail.com = =C2=A0wrote: Also, figuring out how multitouch works with plan 9 would be valuable in itself -- although

Re: [9fans] Stuck at partdisk

2009-04-05 Thread Bakul Shah
On Sun, 05 Apr 2009 15:54:19 EDT Devon H. O'Dell devon.od...@gmail.com wrote: 2009/4/5 ron minnich rminn...@gmail.com: On Sun, Apr 5, 2009 at 12:12 PM, Devon H. O'Dell devon.od...@gmail.com wr ote: 2009/4/5 Devon H. O'Dell devon.od...@gmail.com: Ideas? Works fine if I turn off DMA.

Re: [9fans] Stuck at partdisk

2009-04-05 Thread Bakul Shah
On Sun, 05 Apr 2009 16:56:51 EDT Devon H. O'Dell devon.od...@gmail.com wrote: 2009/4/5 Bakul Shah bakul+pl...@bitblocks.com: On Sun, 05 Apr 2009 15:54:19 EDT Devon H. O'Dell devon.od...@gmail.com wrote: 2009/4/5 ron minnich rminn...@gmail.com: On Sun, Apr 5, 2009 at 12:12 PM, Devon H

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

2009-04-05 Thread Bakul Shah
On Thu, 02 Apr 2009 20:28:57 BST roger peppe rogpe...@gmail.com wrote: 2009/4/2 fge...@gmail.com: i wanted to go a little beyond sh while stopping short of the type profligacy of most other languages, hoping to create a situation where many commands used exactly the same types, and hence

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

2009-04-06 Thread Bakul Shah
On Mon, 06 Apr 2009 12:02:21 EDT erik quanstrom quans...@quanstro.net wrote: 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. ☺ In effect you are imposing a

Re: [9fans] extensions of interest

2009-04-09 Thread Bakul Shah
On Thu, 09 Apr 2009 15:31:35 MDT andrey mirtchovski mirtchov...@gmail.com wrote: ps, the quote is Simplify, then add lightness Makes perfect sense for Chapman's purposes. Replace steel with aluminium. Fiberglass instead of sheet metal and so on. Unfortunately we don't have exact analogs in

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

2009-04-16 Thread Bakul Shah
On Thu, 16 Apr 2009 18:24:36 BST roger peppe rogpe...@gmail.com wrote: 2009/4/6 Bakul Shah bakul+pl...@bitblocks.com: On Thu, 02 Apr 2009 20:28:57 BST roger peppe rogpe...@gmail.com =C2=A0w= rote: a pipeline is an amazingly powerful thing considering that it's not a turing-complete

Re: [9fans] security questions

2009-04-16 Thread Bakul Shah
On Thu, 16 Apr 2009 21:25:06 EDT Devon H. O'Dell devon.od...@gmail.com wrote: That said, I don't disagree. Perhaps Plan 9's environment hasn't been assumed to contain malicious users. Which brings up the question: Can Plan 9 be safely run in a potentially malicious environment? Based on

Re: [9fans] security questions

2009-04-17 Thread Bakul Shah
On Fri, 17 Apr 2009 08:14:12 EDT Devon H. O'Dell devon.od...@gmail.com wrote: 2009/4/17 erik quanstrom quans...@quanstro.net: What if each user can have a separate IP stack, separate (virtualized) interfaces and so on? already possible, but you do need 1 physical ethernet per ip stack

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

2009-04-21 Thread Bakul Shah
On Mon, 20 Apr 2009 16:33:41 EDT erik quanstrom quans...@coraid.com wrote: let's take the path /sys/src/9/pc/sdata.c. for http, getting this path takes one request (with the prefix http://$server) with 9p, this takes a number of walks, an open. then you can start with the reads. only the

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

2009-04-21 Thread Bakul Shah
On Tue, 21 Apr 2009 10:50:18 EDT erik quanstrom quans...@quanstro.net wrote: On Tue Apr 21 10:34:34 EDT 2009, n...@lsub.org wrote: Well, if you don't have flush, your server is going to keep a request for each process that dies/aborts. If a process crashes, who sends the Tflush? The

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

2009-04-21 Thread Bakul Shah
On Tue, 21 Apr 2009 17:03:07 BST roger peppe rogpe...@gmail.com wrote: the idea with my proposal is to have an extension that changes as few of the semantics of 9p as possible: C-S Tsequence tag=3D1 sid=3D1 C-S Topen tag=3D2 sid=3D1 fid=3D20 mode=3D0 C-S Tread tag=3D3 sid=3D1 fid=3D20

Re: [9fans] off-topic: small is beautiful article

2009-06-25 Thread Bakul Shah
Nils Holm's Scheme interpreter @ http://t3x.org/s9fes has been available for a few months now. It runs on plan9 though not on inferno. Like Chibi-scheme it too is fairly small. (about 5.5Klocs of C, 1.4Klock of Scheme). I am more interested in Gambit as it is one of the fastest Scheme

Re: [9fans] Fonts

2009-07-08 Thread Bakul Shah
But how do you make them? I played with some TTF font generators about 10 years ago that I'm sure I illegally obtained somehow, but I realize that I have zero idea of how fonts are designed and packaged. Does anybody know anything about how fonts are created and packaged (info on subfonts

Re: [9fans] Google finally announces their lightweight OS

2009-07-09 Thread Bakul Shah
On Thu, 09 Jul 2009 13:44:20 -0800 Jack Johnson knapj...@gmail.com wrote: On Thu, Jul 9, 2009 at 1:34 PM, erik quanstromquans...@quanstro.net wrote: the problem i have with literate programming is that it tends to treat code like a terse and difficult-to-understand footnote. And thus,

[9fans] channels across machines

2009-07-18 Thread Bakul Shah
Has anyone extended the idea of channels where the sender/receiver are on different machines (or at least in different processes)? A netcat equivalent for channels! Actual plumbing seems easy: one can add a `proxy' thread in each process to send a message via whatever inter process mechanism is

Re: [9fans] channels across machines

2009-07-18 Thread Bakul Shah
On Sat, 18 Jul 2009 06:25:19 EDT erik quanstrom quans...@quanstro.net wrote: On Sat Jul 18 03:46:01 EDT 2009, bakul+pl...@bitblocks.com wrote: Has anyone extended the idea of channels where the sender/receiver are on different machines (or at least in different processes)? A netcat

Re: [9fans] channels across machines

2009-07-18 Thread Bakul Shah
On Sat, 18 Jul 2009 10:20:11 PDT Skip Tavakkolian 9...@9netics.com wrote: Or is there a better idea? This certainly seems preferable to RPC or plain byte pipes for communicating structured values. i have some incomplete ideas that are tangentially related to this -- more for handling

Re: [9fans] Parallels Vesa driver question

2009-08-04 Thread Bakul Shah
On Mon, 03 Aug 2009 20:12:08 PDT David Leimbach leim...@gmail.com wrote: Wow Where's parallels 4. I doubt I qualify for a free one. And VMWare Fusion really sucks with Plan 9 at the moment :-( qemu works well enough for me on FreeBSD Linux but not on a Mac. VirtualBox doesn't run

Re: [9fans] Parallels Vesa driver question

2009-08-04 Thread Bakul Shah
On Tue, 04 Aug 2009 05:47:25 PDT David Leimbach leim...@gmail.com wrote: On Tue, Aug 4, 2009 at 12:25 AM, Bakul Shah bakul+pl...@bitblocks.combakul%2bpl...@bitblocks.com wrote: On Mon, 03 Aug 2009 20:12:08 PDT David Leimbach leim...@gmail.com wrote: Wow Where's parallels 4

Re: [9fans] Parallels Vesa driver question

2009-08-04 Thread Bakul Shah
On Tue, 04 Aug 2009 08:25:53 PDT David Leimbach leim...@gmail.com wrote: On Tue, Aug 4, 2009 at 8:20 AM, Bakul Shah bakul+pl...@bitblocks.combakul%2bpl...@bitblocks.com wrote: ... I think vbox devices and recompiler are based on qemu but I don't really know. IIRC early qemu did

Re: [9fans] Parallels Vesa driver question

2009-08-12 Thread Bakul Shah
On Tue, 04 Aug 2009 13:46:31 EDT erik quanstrom quans...@quanstro.net wrote: Anyway, a couple of areas to look into, if you want plan9 on vbox: try changing the memory layout of plan9 or figure out what qemu did to make plan9 run well and apply that change to vbox. what makes you think

Re: [9fans] audio standards -- too many to choose from

2009-08-14 Thread Bakul Shah
On Sat, 15 Aug 2009 05:24:01 +0800 sqweek sqw...@gmail.com wrote: On 12/08/2009, Tim Newsham news...@lava.net wrote: Draw the line at what the hardware can be told to decode with a flip of a register? The driver interface can easily accomodate arbitrary encoding names (see inferno's

Re: [9fans] Plan 9 via QEMU

2009-08-22 Thread Bakul Shah
On Fri, 21 Aug 2009 21:34:03 EDT Akshat Kumar aku...@mail.nanosouffle.net wrote: If I start QEMU with the option to boot directly from the HD image, as opposed to booting from network, then it starts up fine - but then the kernel is different also. I don't know what part of this is really

Re: [9fans] Interested in improving networking in Plan 9

2009-08-31 Thread Bakul Shah
On Mon, 31 Aug 2009 09:25:36 CDT Eric Van Hensbergen eri...@gmail.com wrote: Why not have a synthetic file system interface to ndb that allows it to update its own files? I think this is my primary problem. Granular modification to static files is a PITA to manage -- we should be using

Re: [9fans] scheme plan 9

2009-09-02 Thread Bakul Shah
On Wed, 02 Sep 2009 12:32:53 BST Eris Discordia eris.discor...@gmail.com wrote: Although, you may be better off reading SICP as intended, and use MIT Scheme on either Windows or a *NIX. The book (and the freaking language) is already hard/unusual enough for one to not want to get confused

Re: [9fans] Interested in improving networking in Plan 9

2009-09-02 Thread Bakul Shah
On Mon, 31 Aug 2009 11:33:13 CDT Eric Van Hensbergen eri...@gmail.com wrote: On Mon, Aug 31, 2009 at 11:16 AM, Bakul Shahbakul+pl...@bitblocks.com wrote: An intriguing idea that can point toward a synth fs interface to a dbms or search results But I don't think this would be a

Re: [9fans] Blocks in C

2009-09-02 Thread Bakul Shah
On Wed, 02 Sep 2009 08:20:52 PDT Roman V Shaposhnik r...@sun.com wrote: On Wed, 2009-09-02 at 10:04 +0200, Anant Narayanan wrote: Mac OS 10.6 introduced a new C compiler frontend (clang), which added support for blocks in C [1]. Blocks basically add closures and anonymous functions to

Re: [9fans] scheme plan 9

2009-09-03 Thread Bakul Shah
On Thu, 03 Sep 2009 07:29:53 BST Eris Discordia eris.discor...@gmail.com wrote: I mean, I never got past SICP Chapter 1 because that first chapter got me asking, why this much hassle? May be you had an impedance mismatch with SICP? P.S. I'm leaving. You may now remove your

Re: [9fans] Blocks in C

2009-09-04 Thread Bakul Shah
On Fri, 04 Sep 2009 00:44:35 EDT erik quanstrom quans...@quanstro.net wrote: that sucker is on the stack. by-by no-execute stack. I don't think so. See below. how does it get to the stack? is it just copied from the text segment or is it compiled at run time? I don't think I

Re: [9fans] Blocks in C

2009-09-04 Thread Bakul Shah
On Thu, 03 Sep 2009 22:35:35 PDT David Leimbach leim...@gmail.com wrote: Actually, reading on a bit more they deal with the variable capture talking about const copies. Automatic storage variables not marked with __block are imported as const copies. The simplest example is that of

Re: [9fans] Blocks in C

2009-09-04 Thread Bakul Shah
On Fri, 04 Sep 2009 00:47:18 PDT David Leimbach leim...@gmail.com wrote: On Fri, Sep 4, 2009 at 12:11 AM, Bakul Shah bakul+pl...@bitblocks.combakul%2bpl...@bitblocks.com wrote: But this has no more to do with parallelism than any other feature of C. If you used __block vars in a block

Re: [9fans] Blocks in C

2009-09-04 Thread Bakul Shah
On Fri, 04 Sep 2009 08:04:40 PDT David Leimbach leim...@gmail.com wrote: On Fri, Sep 4, 2009 at 7:41 AM, Bakul Shah bakul+pl...@bitblocks.combakul%2bpl...@bitblocks.com wrote: On Fri, 04 Sep 2009 00:47:18 PDT David Leimbach leim...@gmail.com wrote: On Fri, Sep 4, 2009 at 12:11 AM

Re: [9fans] Blocks in C

2009-09-08 Thread Bakul Shah
On Tue, 08 Sep 2009 08:31:28 PDT David Leimbach leim...@gmail.com wrote: Having wrestled with this stuff a little bit, and written something. I can immediately see how one can get away from needing to select in code so much, and fire off blocks to handle client server interactions etc.

Re: [9fans] Petabytes on a budget: JBODs + Linux + JFS

2009-09-20 Thread Bakul Shah
On Mon, 14 Sep 2009 12:43:42 EDT erik quanstrom quans...@quanstro.net wrote: I am going to try my hands at beating a dead horse:) So when you create a Venti volume, it basically writes '0's' to all the blocks of the underlying device right? If I put a venti volume on a AoE device which

Re: [9fans] Petabytes on a budget: JBODs + Linux + JFS

2009-09-21 Thread Bakul Shah
8 bits/byte * 1e12 bytes / 1e14 bits/ure = 8% Isn't that the probability of getting a bad sector when you read a terabyte? In other words, this is not related to the disk size but how much you read from the given disk. Granted that when you resilver you have no choice but to read

Re: [9fans] Petabytes on a budget: JBODs + Linux + JFS

2009-09-21 Thread Bakul Shah
On Mon, 21 Sep 2009 14:02:40 EDT erik quanstrom quans...@quanstro.net wrote: i would think this is acceptable. at these low levels, something else is going to get you -- like drives failing unindependently. say because of power problems. 8% rate for an array rebuild may or may not

Re: [9fans] Petabytes on a budget: JBODs + Linux + JFS

2009-09-21 Thread Bakul Shah
On Mon, 21 Sep 2009 16:30:25 EDT erik quanstrom quans...@quanstro.net wrote: i think the lesson here is don't by cheep drives; if you have enterprise drives at 1e-15 error rate, the fail rate will be 0.8%. of course if you don't have a raid, the fail rate is 100%. if that's not

Re: [9fans] zero length arrays in gcc

2009-09-22 Thread Bakul Shah
On Wed, 23 Sep 2009 02:49:44 +0800 Fernan Bolando fernanbola...@mailc.net wrote: Hi all nhc98 uses a few of static unsigned startLabel[]={}; which is a zero length array. It appears that it uses this as reference to calculate the correct pointer for a bytecode. pcc does not allow

Re: [9fans] mishandling empty lists - let's fix it

2009-10-03 Thread Bakul Shah
On Sun, 04 Oct 2009 03:03:27 +1100 Sam Watkins s...@nipl.net wrote: find -name '*.c' | xargs cat | cc - # this clever cc can handle it :) This program works fine until there are no .c files to be found, in that case it hangs, waiting for one on stdin! This is a hazard to shell

Re: [9fans] bison problem, not plan9 related

2009-10-21 Thread Bakul Shah
Is this what you are trying to do? $ cat b.y 'EOF' %token ATOM REP %% blocks: block | block blocks; block: ATOM | REP block | '[' blocks ']'; %% EOF $ bison b.y $ On Wed, 21 Oct 2009 19:52:41 +0200 Rudolf Sykora rudolf.syk...@gmail.com wrote: Hello, sorry for an off-topic thing. But I guess

Re: [9fans] ideas for helpful system io functions

2009-12-05 Thread Bakul Shah
On Sat, 05 Dec 2009 15:03:44 EST erik quanstrom quans...@quanstro.net wrote: The OS support I am talking about: a) the fork behavior on an open file should be available *without* forking. dup() doesn't cut it (both fds share the same offset on the underlying file). I'd call the new

Re: [9fans] ideas for helpful system io functions

2009-12-05 Thread Bakul Shah
On Sat, 05 Dec 2009 15:27:02 EST erik quanstrom quans...@quanstro.net wrote: To be precise, both fds have their own pointer (or offset) and reading N bytes from some offset O must return the same bytes. wrong. /dev/random is my example. You cut out the bit about buffering where I

Re: [9fans] du and find

2010-01-02 Thread Bakul Shah
On Sat, 02 Jan 2010 14:47:26 EST erik quanstrom quans...@quanstro.net wrote: my beef with xargs is only that it is used as an excuse for not fixing exec in unix. it's also used to bolster the that's a rare case argument. I often do something like the following: find . -type f condition

Re: [9fans] du and find

2010-01-02 Thread Bakul Shah
On Sat, 02 Jan 2010 20:49:39 EST erik quanstrom quans...@quanstro.net wrote: And can eat up a lot of memory or even run out of it. On a 2+ year old MacBookPro find -x / takes 4.5 minutes for 1.6M files and 155MB to hold paths. My 11 old machine has 64MB and over a million files on a

Re: [9fans] parallels

2010-01-08 Thread Bakul Shah
On Fri, 08 Jan 2010 14:12:39 EST ge...@plan9.bell-labs.com wrote: I don't have enough experience with VirtualBox to make a sensible comparison. Plan9 on virtualBox is unusably slow. The thing that none of the VM monitors seem to offer (though I'd love to be proven wrong) is debugging tools

Re: [9fans] NaN, +Inf, and -Inf, constants?

2010-02-07 Thread Bakul Shah
On Sun, 07 Feb 2010 15:19:58 MST Lyndon Nerenberg (VE6BBM/VE7TFX) lyn...@orthanc.ca wrote: i suspect the rationale was that, finally, C provided a way outside the preprocessor to give symbolic names to constants. why restrict that to int? Because enum's have been int's since their

Re: [9fans] recreational programming of an evening

2010-03-21 Thread Bakul Shah
On Sat, 20 Mar 2010 22:48:53 PDT ron minnich rminn...@gmail.com wrote: ... So here is the result: very minor extension to the kernel code, shell script a bit longer (25 lines!) but what happens is e.g. you trace an rc, and for each fork/exec that happens, a new truss display pops up

Re: [9fans] recreational programming of an evening

2010-03-21 Thread Bakul Shah
On Sun, 21 Mar 2010 14:03:14 EDT Devon H. O'Dell devon.od...@gmail.com wrote: 2010/3/21 Bakul Shah bakul+pl...@bitblocks.com: [snip] What's really missing is a whole book on hands on OS hacking along the lines of the Art of Electronics or SICP (Structure and Interpretation of Computer

Re: [9fans] Mars Needs Women (was Re: TeX: hurrah!)

2010-04-17 Thread Bakul Shah
On Fri, 16 Apr 2010 16:58:00 PDT Corey co...@bitworthy.net wrote: The Plan 9ers have successfully prevented the Plan Xers from encroaching, but it's the Plan Xers who are going to find new and interesting expressions of a Plan 9 based operating system, however in order to bootstrap, the Plan

Re: [9fans] Mars Needs Women (was Re: TeX: hurrah!)

2010-04-18 Thread Bakul Shah
On Sat, 17 Apr 2010 22:35:53 BST C H Forsyth fors...@vitanuova.com wrote: perhaps Plan 9 is just the Black Books of software? You mean with 9fans playing the role of Bernard Black? Could be -- if you squint a bit Black Books is an anarchic place, with piles of books, cartons of old

Re: [9fans] Integer arithmetic: some lessons

2010-04-21 Thread Bakul Shah
On Wed, 21 Apr 2010 15:40:19 +0200 tlaro...@polynum.com wrote: Hello, Still about integer arithmetic. ... Conclusion (apparently): gcc always translate div involving power of two to binary manipulations, while (apparently) ken-cc does not. gcc may choose to implement / with

Re: [9fans] BUG!!! in Plan9 compiler!

2010-04-22 Thread Bakul Shah
On Thu, 22 Apr 2010 17:29:53 +0200 tlaro...@polynum.com wrote: Data: Under NetBSD/gcc, I have the following values: before: x1:=5440, x2:=-5843, x3:=78909 after: x1:=5440, x2:=-201, x3:=18166, r:=6827 t:=30232 Under Plan9/gcc, I have the following values: before:

Re: [9fans] BUG!!! in Plan9 compiler!

2010-04-22 Thread Bakul Shah
On Thu, 22 Apr 2010 21:32:36 +0200 tlaro...@polynum.com wrote: On Thu, Apr 22, 2010 at 03:08:40PM -0400, ge...@plan9.bell-labs.com wrote: What type is `smallnumber'? typedef unsigned char smallnumber; Aha! translated from Pascal: small_number=0..63; IIRC in C89

Re: [9fans] BUG!!! in Plan9 compiler!

2010-04-22 Thread Bakul Shah
On Thu, 22 Apr 2010 23:15:51 +0200 tlaro...@polynum.com wrote: This is: signed long + signed long + unsigned char. Do you mean that there is first promotion : 1) unsigned char is promoted to unsigned int (A6.1). As per C89 in this case the unsigned char value should be promoted to a

Re: [9fans] BUG!!! in Plan9 compiler!

2010-04-23 Thread Bakul Shah
On Fri, 23 Apr 2010 19:53:24 BST C H Forsyth fors...@vitanuova.com wrote: As per C89 in this case the unsigned char value should be promoted to a *signed* int value. The sum will be of type signed int and so the division will do the right thing. In kencc case it seems the sum has type

Re: [9fans] A simple experiment

2010-04-29 Thread Bakul Shah
On Thu, 29 Apr 2010 11:34:44 EDT erik quanstrom quans...@quanstro.net wrote: Wasn't IL somewhat abandoned because to make it as good as TCP you basically had to implement TCP anyway? due to a failure of vision, the internet only does well with certain types of ip packets. :-) il is

Re: [9fans] A simple experiment

2010-04-29 Thread Bakul Shah
On Thu, 29 Apr 2010 13:23:00 EDT erik quanstrom quans...@quanstro.net wrote: 9p, like aoe, is a ping-pong protocol. each message requires an ack. therefore, the transport layer doesn't need flow control. Therefore, it is also not able to utilise bandwidth effectively over longhaul

Re: [9fans] A simple experiment

2010-04-30 Thread Bakul Shah
On Fri, 30 Apr 2010 01:01:59 EDT erik quanstrom quans...@quanstro.net wrote: If the sender-receiver pipe can hold N bytes and the sender is streaming (that is, keeping the pipe full), the sender *will* be ahead of the receiver by N bytes. So a *streaming* protcol has to allow it to be N

Re: [9fans] A simple experiment

2010-05-02 Thread Bakul Shah
On Fri, 30 Apr 2010 12:13:59 EDT erik quanstrom quans...@labs.coraid.com wrote: i don't see any reason why 9p couldn't use some of the same congestion control ideas. the trick would be to feed back packet loss detection and retransmission info to the point where file io gets turned

Re: [9fans] tun/tap support for 9vx

2010-05-07 Thread Bakul Shah
On Sat, 08 May 2010 03:54:26 +1000 Tully Gray tullyg...@arc.net.au wrote: I have modified Erik Quanstrom's raw socket ethernet driver for 9vx so that it uses the Linux kernel's tap device. Neat! if((fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) 0) --- if((fd =

Re: [9fans] system call trace version of 9vx available.

2010-05-18 Thread Bakul Shah
On Tue, 18 May 2010 18:54:21 PDT David Leimbach leim...@gmail.com wrote: Were all of the binaries within recompiled against this code? Running 9vx on my iMac is pretty smooth! vx32/src/9vx.*.gz are the same as before (in case you are running those). Compiling 9vx on a MAC OS 10.6.3

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 08:09:50 PDT ron minnich rminn...@gmail.com wrote: The format arose out of discussions with nemo and others. It is a straight text layout of system call params and return. The = separates the params and return. The format is: pid textname syscall-name pc [params] =

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 10:41:26 PDT ron minnich rminn...@gmail.com wrote: On Wed, May 19, 2010 at 10:18 AM, Bakul Shah bakul+pl...@bitblocks.com wrote 0. Name syscalltrace is too long :-) pick a name and I'll change it. I used strace but don't really care what you call it as long

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 10:53:59 PDT ron minnich rminn...@gmail.com wrote: I'll only take that patch if it does NOT include stdio.h. Well, you have the trivial diff so do what you want. As for output ... I'm conflicted on output on 1 vs. 2. But it is nice that you can see normal output of the

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 11:33:24 PDT ron minnich rminn...@gmail.com wrote: On Wed, May 19, 2010 at 11:23 AM, Bakul Shah bakul+pl...@bitblocks.com wrote: Ok! I don't feel strongly either way. =A0But I hope you do consider counted bytestrings to represent random memory. It is cheap to parse

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 13:38:36 PDT ron minnich rminn...@gmail.com wrote: On Wed, May 19, 2010 at 1:30 PM, Bakul Shah bakul+pl...@bitblocks.com wro= te: You write startsyscall to pid/syscall for every trace buffer read -- don't quite understand why that is needed. It gives you the option

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 15:25:52 PDT ron minnich rminn...@gmail.com wrote: On Wed, May 19, 2010 at 3:02 PM, Bakul Shah bakul+pl...@bitblocks.com wrote : It gives you the option of not restarting the system call until later. There could be more complex usage scenarios. I don't understand

Re: [9fans] system call trace version of 9vx available.

2010-05-21 Thread Bakul Shah
On Wed, 19 May 2010 17:32:19 PDT ron minnich rminn...@gmail.com wrote: On Wed, May 19, 2010 at 5:26 PM, Bakul Shah bakul+pl...@bitblocks.com wro= te: time ratrace -o /dev/null -c mk # about 19.67 seconds did you want [2]/dev/null? No, because that eats time output as well. My change

  1   2   3   4   5   6   7   >