-
Ge0rG
flow: now that MUCs SHOULD retain message @ids, would you remove <origin-id> from 0359? :)
-
jonasw
and then we’re gonna burn 0359 and re-integrate stanza-id into MAM?
-
jonasw
+ a "Best Practices for Message IDs" informational XEP referenced from all the XEPs which reference message IDs
-
Ge0rG
jonasw: awesome idea
-
Ge0rG
"This document is a patch of RFC 6120" ;)
-
jonasw
i.e. "use at least 120 bits of entropy, however you do that. a uuid4 is fine, if seeded from a proper CSPRNG"
-
Ge0rG
"please don't use hex-encoding"
-
jonasw
doesn’t matter, in the end. if implementations have easy access to a CSPRNG-seeded uuid4, I prefer them using that over building their own thing which uses rand()
-
Ge0rG
Lazy but effective
-
Ge0rG
I still hate the 50% bit efficency of hex encoding.
-
jonasw
I do too
-
jonasw
and uuids don’t improve that with their dashes
-
Ge0rG
Right.
-
jonasw
getrandom | base64 is my favourite, but yeah.
-
jonasw
urlsafe base64 probably
-
Ge0rG
But this is probably a sign of the times, where people bundle a 500KB JavaScript application into a 700MB runtime
-
jonasw
or implement IM clients whose core message view component is a browser engine.
-
Ge0rG
it's webviews all the way down
-
jonasw
yeah
-
jonasw
(tbf, I plan to implement a non-webview thing optionally for the type of folks who prefer compact monospaced things)
-
jonasw
no embedded youtube for those then though!
-
Ge0rG
jonasw: you can add another [X] into https://github.com/xsf/xeps/issues/601 ;)
-
jonasw
t
-
jonasw
so how should a modern client pick it’s resource?
-
jonasw
generate a random ID (4-6 chars) and use "$clientname.$randomid"?
-
jonasw
for extra fubar, use emoji as random ID :-)✎ -
MattJ
jonasw, that's my personal preference these days
-
jonasw
(for extra fubar, I could use emoji as random ID :-)) ✏
-
MattJ
Even though I spent years telling Ge0rG he was wrong
-
MattJ
for this, and for sending to bare JIDs
-
daniel
Yes that's what I'm doing
-
jonasw
what did change your mind about the resource thing?
-
daniel
3 bytes random in base64
-
daniel
That's four chars
-
MattJ
jonasw, the realisation that the server can override it, so it really doesn't matter - and it's useful for tracking devices
-
jonasw
right
-
MattJ
My preference would be that bind2 comes along with a device-id built-in
-
MattJ
But until that day, this works fine (and is backwards-compatible with all the clients that allow manual resources)
- Ge0rG waves his "told you so" sign
-
Dave Cridland
I just use a fixed resource string.
-
Zash
Holy war!
-
MattJ
Server developers will always win this one
-
Ge0rG
MattJ: server developers might have the bigger lever, but they don't win by just applying it
-
Ge0rG
They can make life miserable for everyone, but in my book that's not synonymous to "win
-
MattJ
and here I thought the definition of "to win" was "to make life miserable for everyone who lost"
-
Ge0rG
MattJ: I'd say "to win" also includes making life better for yourself
-
Ge0rG
Unless you are in for the game.