Hacker GitHub

← All repos

ulid/spec

View on GitHub ↗ ★ 10,850

The canonical spec for ulid

70 mentions on Hacker News by 63 people: 12 stories, 58 comments · first 2018-09-01 · latest 2026-10-24

Mentions per year 70 mentions · busiest year 2023 (16)
20082026
  1. …It is probably not the right choice if you require a cryptographically strong and unique ID. [0] https://github.com/ulid/spec
  2. …IDs, there are options like CUID2 (github.com/paralleldrive/cuid2). Older designs like ULIDs ( https://github.com/ulid/spec ) and Snowflake IDs ( https://en.wikipedia.org/wiki/Snowflake_ID ) have similar properties to UUIDv7, and…
  3. ▲ 3
    ULID -- Universally Unique Lexicographically Sortable Identifier
    story by gjvc · 2026-06-22 · 0 comments
  4. …just so much easier when you do not have to care about whether an ID happens to already exist. [0] https://github.com/ulid/spec
  5. …quite gotten there yet. I haven't pushed it to GitHub yet, but it's fairly done at this point. 0: https://github.com/ulid/spec 1: https://github.com/pgcentralfoundation/pgrx
  6. Sounds like its trying to achieve something similar to what ULID is going for: https://github.com/ulid/spec timestamp + readability
  7. …increasing as opposed to what the RFC for UUIDv7 states, which is a big deal IMHO. [0]: https://github.com/ulid/spec
  8. …sacrificing other things (case sensitivity, url-safeness) - again, not great for a standard. [0] https://github.com/ulid/spec
  9. …a section about monotonic sort order[1]. And looks like not all libraries implement it [2]. [1]: https://github.com/ulid/spec?tab=readme-ov-file#monotonicity [2]: https://github.com/suyash/ulid/issues/10
    comment by thih9 · 2024-07-14 · in ULID: Like UUID but Sortable (2019)
  10. ▲ 107
    ULID: Like UUID but Sortable (2019)
    story by fagnerbrack · 2024-07-14 · 57 comments
  11. The GH repo for ULIDs provides better and more relevant reasons for use. https://github.com/ulid/spec
  12. Can use ULID to "fix" some issues https://github.com/ulid/spec
    comment by djbusby · 2024-04-11 · in The UX of UUIDs
  13. ▲ 2
    Ulid: Universally Unique Lexicographically Sortable Identifier
    story by alexzeitler · 2024-03-30 · 6 comments
  14. …(unlike conventional UUIDs) use time code prefixes (so indexing clusters.) https://uuid7.com/ https://github.com/ulid/spec
  15. …throws an error because it doesn't recognise v7, but I guess it could happen, in theory?) * ULIDs ( https://github.com/ulid/spec ) are 128 bits long, 48 bits encode a unix timestamp with millisecond precision, 80 bits are random. You're…
    comment by Lazare · 2023-10-02 · in Goodbye integers, hello UUIDv7
  16. …to leave the version specifying sections of the bit field layout unused in the ULID binary spec ( https://github.com/ulid/spec#binary-layout-and-byte-order ) for the sake of future compatibility with "proper" UUIDs... Performing one quick…
  17. I would use a ULID rather than thread ID. https://github.com/ulid/spec They (and others) are great for this kind of case - and many others.
  18. …and provides better database locality (K-sortable). [0] https://github.com/jetpack-io/typeid [1] https://github.com/ulid/spec [2] https://github.com/segmentio/ksuid
    comment by ekojs · 2023-09-11 · in You Don't Need UUID
  19. …you could use it to grab the CreatedDate of a record without a need for another field. https://github.com/ulid/spec
    comment by nwah1 · 2023-09-11 · in You Don't Need UUID
  20. I prefer ULIDs to UUIDs. https://github.com/ulid/spec
    comment by listenallyall · 2023-08-16 · in UUID Collision
  21. Many people had the same idea. For example ULID https://github.com/ulid/spec is more compact and stores the time so it is lexically ordered.
  22. ▲ 4
    ULID: Universally Unique Lexicographically Sortable Identifier
    story by manigandham · 2023-06-26 · 0 comments
  23. ULIDs, https://github.com/ulid/spec , are also already in widespread use and are essentially the same idea as v7 UUIDs.
  24. …compact way. Example Ulid vs UUID: 000360TJXZDDMSKJSQGBQHA5YA fb87f306-b613-4948-be24-00609cf9ccc8 https://github.com/ulid/spec https://tsid.com/de
  25. …format and sensible timestamp and increment semantics. I guess it's not far off a v7 UUID though. https://github.com/ulid/spec
  26. …switch to ULID[1] instead. [0] https://github.com/stephenc/eaio-uuid/blob/master/src/main/j... [1] https://github.com/ulid/spec
    comment by 66fm472tjy7 · 2023-03-22 · in Java 20 / JDK 20: General Availability
  27. Does ULID solve both? https://github.com/ulid/spec ulid() // 01ARZ3NDEKTSV4RRFFQ69G5FAV - 128-bit compatibility with UUID 1.21e+24 unique ULIDs per millisecond Lexicographically sortable! - Canonically encoded as a 26 character string, as…
    comment by inphovore · 2023-02-19 · in UUIDs vs. Serials for Keys
  28. …about the filesystem you use and its block size (and record size, if you use ZFS). Good luck! [0]: https://github.com/ulid/spec [1]: https://github.com/ai/nanoid/blob/main/async/index.js#L5 [2]: https://github.com/nodejs/node/blob/main/doc/…
  29. I use ULID, 128 bits, time and great sorting https://github.com/ulid/spec
    comment by djbusby · 2023-01-20 · in Choosing a Postgres primary key
  30. …and can be converted to UUID for use with databases supporting this datatype (not a strong column): https://github.com/ulid/spec
  31. …seem like it has much stewardship, the last commit was in 2019 with a bunch of open PRs and issues: https://github.com/ulid/spec/issues I went through this exploration a while back for a new project and decided on uuidv7s, which are binary…
    comment by SirensOfTitan · 2022-12-29 · in ULIDs and Primary Keys
  32. ▲ 1
    The Canonical Spec for Ulid
    story by vinnyglennon · 2022-12-19 · 0 comments
  33. ▲ 1
    Universally Unique Lexicographically Sortable Identifier (ULID)
    story by kretaceous · 2022-12-05 · 0 comments
  34. …I don't actually know: If a format spec is GPL, does that encumber implementations of said spec? 0: https://github.com/ulid/spec
  35. These days ULID ( https://github.com/ulid/spec , or any of the variants), or most recently the new UUID versions ( https://www.ietf.org/archive/id/draft-peabody-dispatch-new-u... ) give you creation-order sorting.
    comment by theptip · 2022-11-22 · in Moving Away from UUIDs (2018)
  36. Some UUID alternatives: - https://github.com/ai/nanoid - https://github.com/segmentio/ksuid - https://github.com/ulid/spec
    comment by gcoguiec · 2022-11-22 · in Moving Away from UUIDs (2018)
  37. ULID was new to me. It's quite interesting https://github.com/ulid/spec
    comment by ofrzeta · 2022-09-26 · in WordPress WASM
  38. …be for a more rigid specification for interoperability. [1]: https://github.com/ahawker/ulid [2]: https://github.com/ulid/spec [3]: https://github.com/ulid/spec/issues/11
    comment by rekwah · 2022-06-12 · in New UUID Formats
  39. Sounds like a ULID that doesn't fit in a UUID column - https://github.com/ulid/spec
    comment by itsdrewmiller · 2022-01-08 · in UUIDs are popular, but bad for performance (2019)
  40. Is the spec not a better link than a go implementation? https://github.com/ulid/spec
  41. …a non-random "randomness" section still called "randomn" in the spec even though they are not. [1]: https://github.com/ulid/spec
  42. …discussed on HN[3] [0] https://datatracker.ietf.org/doc/html/draft-peabody-dispatch... [1] https://github.com/ulid/spec [2] https://github.com/segmentio/ksuid [3] ulid discussion: https://news.ycombinator.com/item?id=18768909 UUIDv7…
    comment by spiffytech · 2021-11-09 · in Lesser-known Postgres features
  43. …isn’t enough. Who cares in your millisecond timestamp wraps every 8900 years as they do in a ULID? https://github.com/ulid/spec
    comment by tatersolid · 2021-08-12 · in New UUID Formats – IETF Draft
  44. Seems like a missed opportunity to sneak ULID right in ( https://github.com/ulid/spec ), given that it's already pretty widely used.
    comment by skrebbel · 2021-08-07 · in New UUID Formats – IETF Draft
  45. …code and then store them in uuid columns in Postgres to realize the compact (binary) size benefits. https://github.com/ulid/spec
    comment by ComputerGuru · 2021-08-06 · in New UUID Formats – IETF Draft
  46. I use a ulid[1] as a uuidv4 replacement: https://github.com/ulid/spec
  47. ▲ 3
    Universally Unique Lexicographically Sortable Identifier
    story by mooreds · 2021-05-10 · 0 comments
  48. …ordering. That might not be a deal breaker depending on your use case but something to consider. * https://github.com/ulid/spec * https://github.com/ahawker/ulid
    comment by rekwah · 2021-05-03 · in Sortable Collision-Free UUIDs
  49. …in dozens of languages already, and many ULID libraries support conversion into UUID format. https://github.com/ulid/spec "Universally Unique Lexicographically Sortable Identifier"
    comment by dralley · 2021-05-03 · in Sortable Collision-Free UUIDs
  50. Here’s a link to a description of ULID, for those like me who had never heard of it: https://github.com/ulid/spec
    comment by andrewem · 2021-02-19 · in Things you should do now (2011)