Posts

Essays, experiments, and field notes from building software.

Browse by topic

2020

28-minute read

Writing Non-Trivial Macros in Rust

Macros in Rust tend to have a reputation for being complex and magical, the likes which only seasoned wizards like @dtolnay can hope to understand, let alone master. Rust’s declarative macros provide …

12-minute read

Rust Closures in FFI

Every now and then when using native libraries from Rust you’ll be asked to pass a callback across the FFI boundary. The reasons are varied, but often this might be done to notify the caller when …

14-minute read

I Made A Thing: Markedit

A couple days ago I released markedit , a small crate for editing unstructured markdown documents. This is a useful enough library that I thought I’d explain the main ideas behind it and potential use …