Page 2 of 2
Rust gets a lot of first impression posts. For people in the community, reading
those posts can often be frustrating, with factual errors leaving people concerned
that others will get the wrong impression. For people outside the community, they
may be unsure of how much said is true, or how to read these posts effectively. In
this post, I outline how I think about first impression posts, and why I recommend
reading them the same way.
Aug 14th, 2020
· Community
· #opinion
· By Andrew Lilley Brinker
Foreign Function Interfaces (FFI) are a core mechanism for enabling integration of
new languages into existing codebases or building on existing libraries. That said,
the term “FFI” is often overloaded in ways that may be unclear or ambiguous, and the
area can seem overwhelming to approach. In this post, I explain the two “directions”
of FFI, some patterns for how FFI in each direction is handled in Rust and further
break down some FFI design approaches.
Aug 5th, 2020
· Guide
· #ffi
· By Andrew Lilley Brinker
Rust has two major mechanisms for delegating logic: enums and trait objects,
and it may be unclear when to use one or the other. In this post, I will
walk through how each works, what the tradeoffs are, and how to choose the
right option for your code.
Jul 27th, 2020
· Guide
· #enums, #trait objects
· By Andrew Lilley Brinker
The Rust compiler ships with a number of useful lints on by default,
and many use Clippy to provide additional lints. It’s less well known
that the Rust compiler ships with some useful lints which are set to
allow
by default, meaning they don’t generate warnings. In this post,
I’ll explain what each of these lints does, and why it might be useful.
Jun 21st, 2020
· Pattern
· #lints
· By Andrew Lilley Brinker