4 ms·
> Linking to a github repo without any context does not prove your point. The GitHub link in question is that of an IETF working group. https://www.ietf.org/a
by codetrotter 4y ago
> Linking to a github repo without any context does not prove your point.
The GitHub link in question is that of an IETF working group.
https://www.ietf.org/about/introduction/ https://www.ietf.org/about/introduction/
Granted, linking to the draft of the standard may have been more clear. The draft is in the repo they linked. Direct link to the draft here:
https://ietf-wg-uuidrev.github.io/rfc4122bis/draft-00/draft-ietf-uuidrev-rfc4122bis.html https://ietf-wg-uuidrev.github.io/rfc4122bis/draft-00/draft-...
Alternatively, the currently published draft:
https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-00.html https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bi...
> squeezing a timestamp in there seems to be a hack with unexpected consequences at best
It’s not a hack. It’s a future standard, and it is going to be widely used.
IETF is an organisation that publishes many of the standards that the internet and computer software is built with. Including publishing a standard for the existing UUID variants in common use today:
> UUIDs are standardized by the Open Software Foundation (OSF) as part of the Distributed Computing Environment (DCE).
> UUIDs are documented as part of ISO/IEC 11578:1996 "Information technology – Open Systems Interconnection – Remote Procedure Call (RPC)" and more recently in ITU-T Rec. X.667 | ISO/IEC 9834-8:2005.
> The Internet Engineering Task Force (IETF) published the Standards-Track RFC 4122, technically equivalent to ITU-T Rec. X.667 | ISO/IEC 9834-8.
https://en.wikipedia.org/wiki/Universally_unique_identifier https://en.wikipedia.org/wiki/Universally_unique_identifier
UUID was specifically created so that it could support different versions. Some of the bits in UUID identify the version.
Hence, a standard that says how to encode timestamp into UUID, and assigns a version for this format, UUID v7, is in fact the exact opposite of a hack.
And the reason they made UUID v7 is to have chronologically sortable UUIDs. They are inspired/based on ULID format, but made to conform to the UUID format.