de en es fr nl pl pt sv

rust

Unsafe Rust Is Harder Than C

Chad Austin

Or: The Most Expensive Linked List I’ve Ever Written Some of you already know the contents of this post, especially if you’ve written embedded or unsafe code in Rust. But I didn’t, so I thought it was useful to write down my experience as accurately as I can. Without further ado… Last year, I...

Reference Counting Things

Chad Austin

Reference counting is cheap and easy. An integer starts at one, increments on every new reference, and whoever decrements it to zero is responsible for deallocation. If references are shared across threads, increments and decrements must be atomic. Decades ago, I wrote an audio library that...