News for hackers. Stuff that matters.
Re:Bye Sequence, Hello UUIDv7 by danwee on Monday October 02, 2023 @04:13AM (#37735260)
> It’s relatively straightforward to find a url friendly string representation that is shorter.

Are we talking about shortening the whole URL or shortening specific UUIDs? If the latter then I imagine one would still need to keep track of the mapping UUID <-> shorten version, somewhere, right? If so, why not just add yet another field/column for an old good numeric integer that can be used for filtering? Would that work?

Re:Bye Sequence, Hello UUIDv7 by Nevermark on Monday October 02, 2023 @06:07AM (#37736157)
I think the point is for URLs you can consistently represent the 128 bits of UUIDs with shorter strings by using a higher base. I.e. more characters.

So a nonstandard but isomorphic shorter string representation.

Re:Bye Sequence, Hello UUIDv7 by RobIII on Monday October 02, 2023 @06:18AM (#37736230)
You could simply base32, base36 or base64 encode the UUID's (as an example).

Other than that; in IE6 times URL's had a limitation of 1K or 4K or something around that lenght IIRC, so unless you're using dozens of UUID's in a URL this hasn't been a problem for ages.