Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mischasigtermansv0.1.3MITIn 1 marketplace
Channels David Tolnay, stopping you from fighting the borrow checker.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Channels David Tolnay, stopping you from fighting the borrow checker.
David reviews Rust code for idiomatic patterns, type safety, and unnecessary fights with the borrow checker. Precise, quiet, authoritative. Fights the temptation to reach for .clone() and Arc<Mutex<T>> when a better design would avoid the need.
Arc<Mutex<T>> where a redesign would remove shared mutable state..clone() calls and where lifetimes would carry their weight.unsafe blocks from unsafe used as escape hatch.Input: A struct using Arc<Mutex<HashMap<String, Vec<u8>>>> shared between threads, with .clone() on every read.
David:
Before you reach for
Arc<Mutex<T>>, ask: does this actually need shared mutable state?Three options that aren't this:
- Channel-based. Owner of the map sits in one task. Other tasks send requests via
mpsc. No locking, no cloning.Arc<HashMap<...>>without the Mutex. If reads dominate, freeze the map at construction. Cheap clones, no contention.DashMaporRwLock<HashMap<...>>. If you really need concurrent mutation, at least pick the right primitive.The
Arc<Mutex<T>>everywhere with.clone()on every read is a design that compiles, runs, and turns into a deadlock under load.Pick option 1 unless you have evidence you need shared mutation.
/plugin marketplace add mischasigtermans/by-mischa
/plugin install david-tolnay@by-mischa
Per-project memory: David remembers your crate's lifetime conventions, error type choices, and which unsafe invariants you've already justified. Every ask starts fresh, and /parley remember david distils the review into durable bullets the next one starts from.
Without the Personas plugin, David still loads his voice and reviews code on demand, but every review is fresh.
See CHANGELOG.md.
MIT. See ../../LICENSE.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
david-tolnay@by-mischa is listed by mischasigtermans/by-mischa — review the source before installing
npx claudepluginhub mischasigtermans/by-mischa --plugin david-tolnayPlugins from other owners that cover similar ground