From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Thu, 3 Feb 2011 14:40:16 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.37-rc6-18+; KDE/4.5.5; x86_64; ; ) References: <201102031245.33842.dexen.devries@gmail.com> <6067898fb2c004aedabecd83cd0be2ac@brasstown.quanstro.net> In-Reply-To: <6067898fb2c004aedabecd83cd0be2ac@brasstown.quanstro.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201102031440.16555.dexen.devries@gmail.com> Subject: Re: [9fans] files vs. directories Topicbox-Message-UUID: aa93d1f2-ead6-11e9-9d60-3106f5b1d025 On Thursday, February 03, 2011 02:05:02 pm erik quanstrom wrote: > > why do we keep distinction between files and directories? Does it provi= de > > any extra value over model with unified file/directory? >=20 > yes. the advantage is that it's easy to tell the difference > between a file and a directory. no comments ;-) > and we have a lot of code > that works with the current model. That was my first objection, too; stuff like acme(1) could become strange: = I=20 can't imagine how to present mixed bytestream+subfiles/subdirectories in a= =20 reasonable way. Unless the user left the one of the forks empty, that is... tar(1) would become confused beyond imagination. How about 8c(1)? would it be too confusing to issue: 8c foo.c if `foo.c' contained some C code, AND `foo.c/bar.h' contained some more C=20 code? rc(1)? How could `. foo.rc' handle situation when also `foo.rc/bar.rc/baz.= rc'=20 exists? The model seems somewhat sensible in regard to user-oriented documents,=20 especially multi-part ones. `mail/1' could hold body of an email message nr 1, and `mail/1/1' its first= =20 MIME part. Perhaps /dev/sd0, /dev/sd0/p0, /dev/sd0/p0/p0 could make some sense in rega= rd=20 to drives, partitions etc.? Perhaps my whole confusion stems from the fact I've never used any record- oriented filesystem -- otherwise I'd understand pains related to it, as som= e of=20 them would apply in case of my question. =2D-=20 dexen deVries [[[=E2=86=93][=E2=86=92]]] > how does a C compiler get to be that big? what is all that code doing? iterators, string objects, and a full set of C macros that ensure boundary conditions and improve interfaces. ron minnich, in response to Charles Forsyth http://9fans.net/archive/2011/02/90