Tech News
← Home  ·  All topics

Uuid

2 GoKawiil briefs on this topic · RSS for uuid

Rust developer explains workarounds for the language's Orphan Rule restriction

A technical blog post examines Rust's Orphan Rule, the compiler restriction (error E0117) that blocks developers from implementing a trait for a type unless either the trait or the type originates in their own crate. The author walks through a common scenario—trying to implement a serialization trait like ToJson for a third-party type such as uuid::Uuid—and explains why Rust enforces this rule to avoid conflicting trait implementations across dependencies. The piece argues that despite the restriction, there are established patterns developers can use to connect third-party traits and types without violating coherence.

RFC 9562 allows UUIDv7 timestamps to drift from actual creation time

A blog post by Robert Alexander examines UUIDv7, the time-ordered UUID format, and argues that its commonly assumed properties—monotonic ordering, accurate embedded timestamps, and unguessability—are not strictly guaranteed. He cites RFC 9562 itself, which permits implementations to alter the timestamp field rather than deriving it strictly from the system clock, and notes Postgres documentation warning that extracted timestamps may not match actual generation time. According to the post, the only property UUIDv7 reliably provides is uniqueness and collision resistance.