Why Rust Async Functions Need Pin: A Mental Model
Or: how a compiler trick leads to a surprisingly deep problem. A ground-up explanation of async state machines, self-referential structs, and why Pin exists.
Writing on programming, Solana, Rust, and everything in between.
Rust
Or: how a compiler trick leads to a surprisingly deep problem. A ground-up explanation of async state machines, self-referential structs, and why Pin exists.
How to structure error types in real Rust projects — going beyond Box<dyn Error> without overengineering.
Solana
Most developers use Anchor without knowing what's happening between .rpc() and their Rust handler. Here's the full picture.
Solana's account model is unlike anything in Ethereum. Here's how it actually works and why it matters for program design.