elliot_
homearticlesprojectssnippetsplayground

snippets

short code patterns and reference material.

Rust Lifetime Patterns

RustOct 8, 2024

Common lifetime annotation patterns in Rust that come up repeatedly when building parsers, buffers, and zero-copy APIs.

RustLifetimesPatterns

Gap Buffer in Rust

RustSep 1, 2024

A minimal gap buffer implementation for efficient text editing with O(1) insertions at the cursor.

RustData StructuresText Editing

Go Concurrency Patterns

GoAug 14, 2024

Practical patterns for goroutines, channels, and the sync package that I reach for regularly.

GoConcurrencyChannels
articlesprojectssnippetsplayground
githubemail

© 2026