UUIDs are neat. y'know, cfbff0d1-9375-5685-968c-48ce8b15ae17 type of shit. if you're like me until a few days ago, all you know about the types of UUID is that v4 is the good one. but why are there other ones? is there a secret better one? why are the dashes asymmetrical? let's take a (roughly paraphrased from wikipedia and probably not quite accurate) look.
some notes on further research i did that's relevant to me and maybe you, the reader of this share?
- the Internet-Draft linked above has now been moved into the IETF "UUIDREV Working Group", if you want to read the latest draft and have opinions: https://datatracker.ietf.org/doc/draft-ietf-uuidrev-rfc4122bis/ https://github.com/ietf-wg-uuidrev/rfc4122bis ā looks like it is still actively being worked on which is great.
- UUIDv7 looks a lot like ULID! but also the ULID spec looks like it has languished a bit, despite a number of requests for clarification etc.
- the
uuidRust crate starting in 1.2.0 has support for generating UUIDv7. yay! i'm going to go use that now. [edit: ugh they're being responsible and making you passRUSTFLAGS="--cfg uuid_unstable"until the spec passes i guess. ugh]