G'day Walt,

I did not clue into your statement:  "So, i have to ask: in case of UID 
conflict: is what would happen indeed as innocuous a condition as what you 
describe, i.e.: the two named-alike tiddlers would both display to the WWW 
browser who comes in on that link?  No other problem you can forsee arising 
out of that?"

"Named-alike" tiddlers.  As in tiddlers with same title.  When dragging 
"Tiddler A" from one TiddlyWiki to another, you really have to pay 
attention to the messages in the import mechanism.  It says when you are 
about to overwrite an existing tiddler.

What you talk about here is not a problem UID-permalinks solve.  That is a 
much greater problem than the simple thing solved by UID-permalinks.  To 
reiterate:  UID-permalink only keeps URL's to a specific tiddler from 
totally breaking when tiddlers get renamed.

Use UID-permalinks to keep URL's from breaking.  This other problem 
(uniqueness of tiddlers to prevent destruction of tiddlers upon import of 
tiddlers from some other TiddlyWiki) is more inline, I think, with what 
@PMario is looking into, which I personally think will involve a mess, 
attempting to give every tiddler a cross-TiddlyWiki unique ID akin to IP 
addresses or hardware-MAC-addresses 
<https://en.wikipedia.org/wiki/MAC_address>.  Very bleurk and very 
uninteresting to me.

Other than something akin to IP/MAC addresses, you could make it such that 
any TiddlyWiki can only be created from one centralized spot which 
guarantees assigning every TiddlyWiki in existence a unique TiddlyWiki ID 
then gets attached to every Tiddler in that TiddlyWiki.  Infinity-bleurk.

On Sunday, May 9, 2021 at 11:26:13 AM UTC-3 ludwa6 wrote:

> I understand, Charlie, how you are only trying to solve the problem w/in 
> scope of a single wiki -and if that were a truly closed system, then indeed 
> your solution solves the problem, if i'm understanding it correctly. 
>
> However: i do see how easily tiddlers with the same ID could wind up in 
> the same wiki in my case, where i've got a mitt-full of different editions 
> that i am drag&dropping tiddlers across without due care, i suppose (mainly 
> owing to that phenomenon Dave Gifford has described so well in his take on 
> the "What is #TiddlyWiki" 
> <https://groups.google.com/g/tiddlywiki/c/jIhG30rx1PU/m/153I2Xl7BQAJ> 
> question.  See: it's Silly-Putty, as i said :-).
>
> So, i have to ask: in case of UID conflict: is what would happen indeed as 
> innocuous a condition as what you describe, i.e.: the two named-alike 
> tiddlers would both display to the WWW browser who comes in on that link?  
> No other problem you can forsee arising out of that?
>
> I do still think that the create date/time is sufficiently granular as to 
> make the risk of similarly-coded tiddlers as near-zero as you could want, 
> especially if combined with and/or hashed by some other factor.  I gather 
> that this doesn't work for those pesky "$:/" tiddlers -but that's fine, 
> since we don't want it to (and there's no way such a thing could happen by 
> accident, right?)
>
> /walt
> On Sunday, May 9, 2021 at 2:59:14 PM UTC+1 [email protected] wrote:
>
>> It will always be unique within one TiddlyWiki.  Same as "Sequence 
>> numbers" in an Oracle Database.
>>
>> The UID isn't really a counter.  It gets the the largest value of UID 
>> that exists among the tiddlers, then gives "this tiddler" the greatest 
>> value + 1.
>>
>> So not a counter in the sense of a stored value in some field.  Maybe, 
>> for performance, I'll have to set things up that way someday, but not for 
>> now.
>>
>> That said, this is only about unique and stable permalinks for Tiddlers 
>> in a TiddlyWiki, not about unique identification of tiddlers.
>>
>> If you wanted to, you could create a bunch of tiddlers, and copy-paste 
>> the UID's among a bunch of them so that a UID permalink actually opens a 
>> group of related tiddlers, if that's something someone wanted.
>>
>> To reiterate:  The UID's are not about unique identifiers for tiddlers.  
>> That's a different problem, but one that I don't think needs solving.  
>> Well, until it ever bites me in the caboose.  It hasn't yet, but my caboose 
>> is polished and ready for the bite at any time.
>>
>> That aside ...
>>
>> Say we both have TiddlyWiki's that use this UID thing I've developed.
>>
>> And say I import one of your tiddlers into my TiddlyWiki, and I now have 
>> two tiddlers that have UID values of 55.  One of mine, and the one I 
>> imported from your TiddlyWiki.
>>
>> Who cares?
>>
>> Every URL link out in the wild that references my TiddlyWiki with UID 55 
>> will now open with my tiddler and your tiddler.
>>
>> However, my original intent for the UID permalink is not borked.  We can 
>> still easily get to my tiddler.
>>
>> If your tiddler (UID=55) gets to be a real pain, then I'll strip the UID 
>> off of your tiddler that is in my TiddlyWiki.
>>
>> Anyway, all of that said, this UID-permalink thing does what it is 
>> supposed to do in the problem scope I'm thinking, but is in no means meant 
>> to solve the problem scope of unique identifiers for all the tiddlers in 
>> the world.  That is not a problem I am interested in at all.
>>
>>
>> On Sunday, May 9, 2021 at 10:43:06 AM UTC-3 PMario wrote:
>>
>>> Hi, 
>>> TLDR; I think a "counter" used as UID will fail in the short run!
>>>
>>> I did my post my concerns at github. 
>>> https://github.com/Jermolene/TiddlyWiki5/discussions/5668#discussioncomment-715278
>>>
>>> -mario
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4db3b194-a47a-49e2-8674-a49fe565d28en%40googlegroups.com.

Reply via email to