9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Different representations of the same
@ 2009-06-17 17:05 Chad Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Chad Brown @ 2009-06-17 17:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 747 bytes --]

On Jun 17, 2009, at 1:54 AM, Charles Forsyth wrote:

>> The only drawback so far seems to be the fact that if one
>> needs flexibility, then every file becomes a subdirectory.
>> Not that it is scary or anything, but it smells too much
>> of resource forks (or may be I'm just too easily scared).
>
> it's the other way round: they ought to have represented
> collections of related data and metadata using directories
> instead of inventing rubbish like resource forks.

They sort-of-kind-of got there in Mac OS X with `application bundles'
that are just specially named directories with some canonical
contents.  It'll take another major systems change for them to wean
themselves off of resource forks entirely, I expect.

*chad

[-- Attachment #2: Type: text/html, Size: 1319 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [9fans] Different representations of the same file/resource in a synthetic FS
@ 2009-06-11  3:44 Roman V. Shaposhnik
  2009-06-11  4:49 ` [9fans] Different representations of the same lucio
  0 siblings, 1 reply; 9+ messages in thread
From: Roman V. Shaposhnik @ 2009-06-11  3:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

В Втр, 09/06/2009 в 11:27 -0600, andrey mirtchovski пишет:
> I think I've mentioned this before, but on a few of my synthetic file
> systems here I'm using what you describe to slice a database by
> specific orderings. For example, I have a (long) list of resources
> which I'm managing in a particular environment each has an owner,
> type, status and a few static data containers. It's all backed by a
> relational database, but the file server presents different "slices"
> of that to external users, where the directory structure is rigidly
> defined as:
> 
> /
>  available/
>  by-type/
>  by-owner/
>  inuse/
>  ...
> 
> with all data to fill the directories being dynamically pulled from
> the database.

This looks like a slightly different use case than what I'm worried
about. Mainly it seems that you don't really have to deal with
the representations of the same resource, your problem is how to
group these resources in a reasonable fashion. Essentially you're
mapping a relational database to a tree hierarchy.

In your case, the sooner you have the fork of
  by-this/
  by-that/
  ....
in your hierarchy -- the better.

My case is a flip side of that. In fact, my worst case scenario is
that I can't really predict all the representations of existing
resources down the road, thus it appears that I have to push
that part of a filename as close to an actual file as possible:
   /long-path/file.<representation>
I'm almost tempted to consider "virtual extensions":
   /long-path/file ## default representation
   /long-path/file.gif
   ....
   /long-path/file.pdf
but at that point it becomes no more appealing than the content
negotiation techniques of HTTP.

Thanks,
Roman.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-06-18  0:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17 17:05 [9fans] Different representations of the same Chad Brown
  -- strict thread matches above, loose matches on Subject: below --
2009-06-11  3:44 [9fans] Different representations of the same file/resource in a synthetic FS Roman V. Shaposhnik
2009-06-11  4:49 ` [9fans] Different representations of the same lucio
2009-06-13  1:02   ` Roman V Shaposhnik
2009-06-13  1:56     ` erik quanstrom
2009-06-16 23:12       ` Roman V Shaposhnik
2009-06-17  8:54         ` Charles Forsyth
2009-06-18  0:20           ` Roman V Shaposhnik
2009-06-13  3:43     ` lucio
2009-06-16 23:15       ` Roman V Shaposhnik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).