-
lovetox
world would be so good if we all would use sortable UUIDs :/
-
MattJ
Prosody and ejabberd do, I don't know if you will ever reach "all" :)
-
lovetox
yeah i know ejabberd does, since when does prosody?
-
lovetox
this is great, now can we have a mam-feature that advertises the fact, then i can also depend on it✎ -
lovetox
this is great, now can we have a mam-feature that advertises the fact, than i can also depend on it ✏
-
lovetox
or maybe it should be a 0359 feature
-
MattJ
Prosody since 13.0.0 I think
-
Martin
> world would be so good if we all would use sortable UUIDs :/ Doesn't some xep demand to use uuid v4, which is not sortable.
-
lovetox
no
-
Martin
Seems xep-0388 requires a uuidv4 vor the user agent ID and as I have one getID() function I use everywhere, I use an v4 everywhere now. :D
-
singpolyma
I use uuidv7 everywhere for similar reason
-
singpolyma
0388 says it requires UUID because it wants to avoid someone picking a garbage id. The actual requirement that it be uuidv4 isn't really there in practise
-
Martin
Maybe the xep could be changed to require uuid >= v4.
-
lovetox
Why?
-
lovetox
This is for the client id
-
lovetox
The criterion is that's it must be unique
-
lovetox
No use case comes to mind why you would want to sort client ids
-
lovetox
They are not even generated by the same entity
-
singpolyma
Sure. But also it doesn't matter. It should probably say "a suitably unique identifier, such as uuidv4"
-
lovetox
Yes it should
-
lovetox
But it's not really relevant to the the stanza id debate, there it has a use
-
Martin
lovetox: I find it better to have one getID() that I use everywhere, than having to use getIDv4() for one thing and another one for others. That's why I would prefer the client id from 388 to be more flexible and not nailed to v4.
-
Martin
That's the reason I currently use v4 everywhere. :)
-
lovetox
The server cannot verify if you used a uuid 😉
-
theTedd
UUIDv4 has some bits that are fixed, so it is possible to verify when it hasn't been used (except in the case where those bits coincidentally match)
-
lovetox
You can match a form, you can not verify if it's unique
-
lovetox
at least not globally, the server of course can check if its unique within his user base, not sure if this has any implications somewhere else
-
lovetox
reading it looks more like a, client better use something unique, otherwise they shoot themself in the foot
-
theTedd
UUID doesn't guarantee global uniqueness either, it's just on the balance of probabilities
-
lovetox
thats true, still good enough
-
Martin
> The server cannot verify if you used a uuid 😉 True, but I usually don't knowingly violate the XEP. :D
-
lovetox
tell me you are a new xmpp developer, without telling me
-
Martin
lol
-
Martin
So, you'd say UUIDv7 would also do, as the spirit of the xep demanding v4 is just to assure a "minimum quality"?
-
singpolyma
Yes
-
Martin
Will I be considered an experienced xmpp developer once I knowingly violate a xep? :D
🤣 1 -
theTedd
And the XSF awards you a _Veteran XMPP Developer_ medal
-
moparisthebest
they are just suggestions