Blog posts

Computer as she is spoke

I've just finished giving a session of our Advanced Rust training at $DAYJOB. Overall I felt confident, the trainees were actively participating, and I think I could answer most of the questions I was asked accurately and helpfully. There is, however, one thing I'm frustrated I could not answer properly. The one question they kept coming back with was: "How do we know what is a good or bad way to express in Rust?".

Read more >>>

Rust gotcha: deriving Copy and Clone can be too restrictive

For a generic struct, #[derive] implements Clone (resp. Copy) conditionally by adding bound Clone (resp. Copy) on generic parameters, which isn't always desired.

Read more >>>

Exception safety in Rust: using transient droppers to prevent memory leaks

In this post, we dive into a common Rust pattern to prevent memory leaks in case of exceptions in unsafe code, as used in the array-init crate.

Read more >>>

Derive yourself a Kalman filter

In this post, I will try to explain Kalman filters as I would have liked them to be explained to me. Building them up from simple assumptions of Gaussian-ness.

Read more >>>