On Tue, 15 Nov 2011, tiddlygrp wrote:

For the client tw adding a uuid doesn't matter directly.  It wouldn't
allow for tiddlers with different titles to exist, as it is forbidden
in tw now.  It would be just an extra field.  In fact just introducing
a uuid field needs no user interface.

Yes.

The uuid is important to establish a standard a server or another
client can count on.

Yes, something that has been bewildering me in the back and forth
about this is the discussion about "semantics of uuids". If we're
talking about uuids in the RFC 4122 sense or in the sense of
universally unique identifiers then the exact point of having such
things is because they _don't_ have semantics.

An identifier which is persistent and unique may not have semantics.

So question really becomes one of representational syntax, and
tiddlers already provide us with the fields attribute and if we want
deep coverage we have to use uuid4 (as it can be done without access
to the hosting system) and since we are using fields the stored
information must be a string, of hex digits.

In Python that's:

import uuid
str(uuid.uuid4())
'0d9b98c0-5f73-45eb-ac4a-386d445905e3'

The goal of an identifier is not to provide meaning or activity, it
is simply to allow something to be identified in a process. In a
universe of tiddlers, the tiddler title can _never_ be the id
becuase it will never be unique. The host of the tiddler plus the
title can never provide an id either, because we want tiddlers to be
able to move. So you have to make the tiddler have a unique id,
without meaning.

And, if you want that id to actually work as an identifier througout
the entire lifecycle of the tiddler where it may go or do, it _has_
to be created when the tiddler is born.

Similarly, in order for the id to remain "safe" it must _never_
encode information about the tiddler in itself. No hash of the title
and host or anything like that. Doing so means that the identifier
has gained semantics and when it does, it isn't a _universal_
identifier any more, and in order for federation (migratory
tiddlers) to work they have to have identifiers that are universal.

--
Chris Dent                                   http://burningchrome.com/
                                [...]

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to