From: Peter Foldiak Subject: Re: Two usage examples for attribute directories. Date: Sat, 03 Dec 2005 10:54:31 +0000 Message-ID: <43917967.4080008@st-andrews.ac.uk> References: <200511201317.12598.pvh@uvic.ca> <200511230057.22520.pvh@uvic.ca> <4390E5F6.704@st-andrews.ac.uk> <200512021649.54939.pvh@uvic.ca> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <200512021649.54939.pvh@uvic.ca> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Peter van Hardenberg , Hans Reiser Cc: reiserfs-list@namesys.com Peter van Hardenberg wrote: >> PvH, >> >> I am really worried about introducing this new concept of "attribute >> directory" and new syntax. Maybe I am just missing the point (in which >> case please explain), but is there anything you can do with this that >> there is no way you could do without it. >> Hans' favourite topic (quite rightly) is namespace unification, which >> involves keeping the syntax as simple as possible, having only one type >> of expression for one kind of logical structure. If you could possibly >> do this without the "..@", do it without it. >> >> So why not just do (to take your example): >> >> $ echo "Matmos" >> track01.mp3/artist >> >> >> Peter F >> > > This is not new syntax, it is a new type of File (well, tecnically, it would > be implemented as a new pseudoplugin.) > But why do we need a new type of file? What can you do with it that you absolutely couldn't without? What is wrong with my simplification of your example? (track01.mp3/artist) > From a user's point of view, these files are equivalent to an XML attribute, > whereas normal files are child elements. I never quite understood the need for XML attributes either. You could easily survive without them, right? > The semantic difference is, I contend, significant. > Could you explain this difference. > From an implementation point of view, this would allow us to provide guidance > to, or eventually even full FS-level support for indexed attributes. > Sorry for my ignorance, what is an "indexed attribute" and what's good about it. Are you sure the simple "/" is not a more elegant and simple way to do all this. Peter