Future Proofing Rust

This is a set of recommendations on how to design and present APIs for the Rust programming language. Read more

Similar

Writing a Seqlock in Rust

A seqlock — or “sequence lock” — is an optimized implementation of a reader-writer lock. In a seqlock “the data can be ‘protected’ by a sequence number. The sequence number starts at zero, and is incremented before and after writing the object. Each reade... (more…)

Read more »

Implementing a Type-safe printf in Rust

I show how to use heterogeneous lists and traits to implement a type-safe printf in Rust. These mechanisms can ensure that two variadic argument lists share important properties, like the number of format string holes matches the number of printf argument... (more…)

Read more »