Show HN: 128-bit, roughly-ordered, URL-safe UUIDs
There’s a spec called ULID that’s pretty much this with default base32 encoding<p><a href="https://github.com/ulid/spec" rel="nofollow">https://github.com/ulid/spec</a><p>I’ve also worked on a UUID-ULID bridge for Go<p><a href="https://github.com/sudhirj/uulid.go" rel="nofollow">https://github.com/sudhirj/uulid.go</a><p>And seeing as this is just 128 bits it’s quite easy to move seamlessly between formats and representations.<p>I’ve found this concept especially useful in nosql stores like DynamoDB, where using a ULID primary key makes objects time sortable automatically. It’s also quite easy to query for items by zeroing out the random component and setting only the time stamp bytes.