From: PFC <lists@boutiquenumerique.com>
To: Peter Foldiak <Peter.Foldiak@st-andrews.ac.uk>,
Hans Reiser <reiser@namesys.com>,
Peter van Hardenberg <pvh@uvic.ca>
Cc: reiserfs-list@namesys.com
Subject: Re: Plugins: Pseudo-fun.
Date: Thu, 10 Nov 2005 13:26:26 +0100 [thread overview]
Message-ID: <op.sz0x6cegth1vuj@localhost> (raw)
In-Reply-To: <200511101217.54513.Peter.Foldiak@st-andrews.ac.uk>
> book/chapter[3]/paragraph[2]
I'd rather nitpick this to be :
book/chapters/3/paragraphs/2
simply because this makes little things like enumerating chapters,
paragraphs etc. easier (not having to do some sprintf("chapter%d",n)),
also all the items in the chapters/ are of the same "type" which is
cleaner, and you can also have other attributes in book/ or in a chapter
without having clutter.
ex :
book/author
book/chapters/1
book/chapters/2
book/chapters/3
book/chapters/4
book/chapters/5
book/title
seems better than
book/author
book/chapter1
book/chapter2
book/chapter3
book/chapter4
book/chapter5
book/title
>
> and not anything else. It should NOT matter whether the person who
> scanned the
> book decided to put each chapter into a separate "file" (whatever that
> concept will become) or into one big "file" with some way (e.g. markup,
> e.g.
> XML) to indicate the structure within that "file".
> You can read this as "paragraph 2 OF chapter 3 OF the book".
> I think I managed to convince Hans that on the long run, it would be much
> better to be able to
>
> cat /home/peter/book
>
> instead of
>
> cat /home/peter/book/..../childcat
>
> which is neither natural or obvious.
>
> The trouble with this example is just that the person using the naming
> should
> not be required to know how the book is stored (by chapters or as one big
> object). [The whole point of uniting files and directories into objects
> is
> that this distinction should eventually vanish anyway. What you have on
> disk
> is a tree structure, and whether you give different parts of that tree
> should
> just be a matter of convenience. Which bits have metadata connected to
> them
> is another matter.]
>
> Similarly, I would argue that if you want to know Robert's hat size, you
> should use
>
> Robert/hat-size
>
> and read it as "hat-size OF Robert".
> This would be analogous to the conventional /etc/passwd read as "the
> passwd
> file OF the etc directory".
>
> Another reading of the "/" operator would be "the value of", as in
>
> subject/strike to/elves from/Santa
>
> which would read as "the subject IS strike, the sender IS Santa, ..."
> (It remains to be seem whether the "IS" and "OF" interpretation of "/"
> clash
> at some point. I can't see it at the moment.)
>
> Anyway, my point is that if we can implement
>
> Robert/size
>
> for Robert's size then it is much preferable to anything more
> complicated-looking.
> Also, possibly
>
> Robert/..../size
>
> should refer to the size of the Robert file (or object), rather than
> Robert's
> own size. This would be a very useful distinction to be able to make.
>
> Peter (Foldiak)
>
next prev parent reply other threads:[~2005-11-10 12:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-09 11:20 Plugins: Pseudo-fun Peter van Hardenberg
2005-11-09 18:02 ` Hans Reiser
2005-11-09 19:05 ` Peter van Hardenberg
2005-11-09 19:31 ` Hans Reiser
2005-11-09 20:38 ` michael chang
2005-11-10 7:02 ` Peter van Hardenberg
2005-11-10 12:17 ` Peter Foldiak
2005-11-10 12:23 ` Peter Foldiak
2005-11-10 12:26 ` PFC [this message]
2005-11-10 12:36 ` Peter Foldiak
2005-11-10 21:20 ` Peter van Hardenberg
2005-11-10 17:16 ` Hans Reiser
2005-11-10 20:13 ` Peter Foldiak
2005-11-10 20:32 ` Hans Reiser
2005-11-09 19:36 ` about reiser4 hacks Yoanis Gil Delgado
2005-11-10 0:51 ` Plugins: Pseudo-fun Alexander G. M. Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.sz0x6cegth1vuj@localhost \
--to=lists@boutiquenumerique.com \
--cc=Peter.Foldiak@st-andrews.ac.uk \
--cc=pvh@uvic.ca \
--cc=reiser@namesys.com \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.