knowledge-base

229 pages on Rust, C++, concurrency, and data structures.

ABCDEFGHIJKLMNOPRSTUVWZ
A
absl::flat_hash_map
Google's reference Swiss Table; production standard, narrowly trails Boost in 2025 benchmarks
cppperformancedata-structures
absl::InlinedVector
Google's drop-in std::vector with inline storage; perfect API parity but ~5x random-access slowdown
cppperformancedata-structures
Adaptive Radix Tree (ART)
SIMD-optimized trie with four adaptive node sizes; O(k) lookup independent of n; concurrent variant ART-OLC
data-structuresperformance
Aggregating Funnels
PPoPP 2025 software FAA combining; up to 2.5× over plain LCRQ at high thread counts
concurrencyperformancedata-structures
Algorithmica S+ Tree
Sergey Slotin's reference SIMD B-tree; 7–18× over std::set, 3–7× over Abseil, in 150 lines of C++
performancedata-structurescpp
ambassador
Most general-purpose Rust trait delegation crate; structs and enums, cross-crate, generics
rustdesign-patternscrate
ankerl::svector
Single-header SBO vector with 8-byte minimum sizeof; 7 inline bytes, 1 byte overhead
cppperformancedata-structures
ankerl::unordered_dense
Single-header C++ hash map; uncontested iteration champion via dense std::vector storage
cppperformancedata-structures
anyhow
Type-erased application error with string context, backtraces on stable, and no_std support
rusterror-handlingcrate
Apache Iggy
Message streaming system; most documented production migration to shard-per-core (Compio)
rustperformancearchitecture
ariadne
Pretty diagnostic rendering with source spans and fine-grained label control
rusterror-handlingcrate
ART with Optimistic Lock Coupling (ART-OLC)
ART with optimistic lock coupling; fastest concurrent ordered map on integer keys; readers never write shared cache lines
concurrencyperformancedata-structures
atomic_queue
C++ header-only lock-free MPMC; OptimistAtomicQueue at 200–500M+ ops/s with sub-100 ns latency
cppconcurrencyperformance
auto_enums
Auto-generate hidden dispatch enums for functions returning different concrete types
rustdesign-patternscrate
Axum Architecture
How axum uses tower::Service, extractors, and IntoResponse for trait-driven web framework design
rustarchitecturedesign-patterns
B
Bε-Tree (Fractal Tree Index)
Fractal tree index; ~32× fewer write I/Os than B-trees via internal-node update buffering; principle survives in LSMs
data-structuresperformancearchitecture
B-Tree
Ordered container beating red-black trees by 7–18× through cache-line-sized nodes and SIMD search
data-structuresperformance
BACQ (Boundary-Aware Concurrent Queue)
Boundary-Aware Concurrent Queue (2024); 2–9× over previous GPU queue designs
concurrencyperformancedata-structures
Bevy
Data-driven game engine with ECS architecture and 40+ internal crates behind a facade
rustarchitecturecrate
Binary Fuse Filter
Probabilistic set membership filter within 13% of information-theoretic minimum; surpasses Bloom
data-structuresperformance
bitcode
Fastest traditional serialization crate with smallest output size, complementary to rkyv
rustperformancedata-structurescrate
bitflags
C-style bitflag sets via macro; ~1.1B downloads, used by the Rust compiler
rustdata-structurescrate
The Blazingly Fast Rust Crate Stack for 2025–2026
Survey of the high-performance Rust crate ecosystem for 2025–2026
rustperformancecratearchitecture
bolero
Unified fuzzing and property testing under a single API
rustcrate
boost::unordered_flat_map
2025 consensus fastest general-purpose C++ hash map; overflow byte beats Abseil's tombstones
cppperformancedata-structures
Boxing Overhead
Why Java ArrayList is 40-100x slower than C++ vector; reified vs erased generics
performancearchitecturedata-structures
BP-Tree
VLDB 2023 concurrent B+-tree with OLC; 7.4× over Masstree on points, 30× on range scans
performancedata-structuresconcurrency
BS-Tree
ICDE 2026 SIMD B-tree; 16 keys/node in 2 AVX-512 instructions; gapped nodes for branchless updates
performancedata-structures
bumpalo
Bump allocator for phase-oriented work with ~2 ns allocation and instant bulk deallocation
rustperformancedata-structurescrate
Busy-Spin
The PAUSE-loop discipline; sub-100 ns RTT at 100% core cost; 15× generational variance on Intel
concurrencyperformancearchitecture
Bw-Tree
Microsoft's lock-free B+-tree; 1.5–4.5× slower than ART-OLC because lock-freedom ≠ cache-coherence-freedom
concurrencydata-structures
bytemuck
Safe plain-data type casting, widely used in Solana/wgpu; superseded by zerocopy for new code
rustperformancecrate
bytes
Arc-backed byte buffers for zero-copy sharing throughout the Tokio ecosystem
rustperformancecrate
C
Cache Coherency
MESI protocol costs, cache-friendly design, and why thread-per-core eliminates coherency traffic
performanceconcurrencyarchitecture
Cache-Oblivious Data Structures
Data structures optimizing for every cache level simultaneously without knowing cache parameters
data-structuresperformancearchitecture
cargo-deny
Dependency graph auditor for licenses, vulnerabilities, duplicates, and banned crates
rustcrate
cargo-hakari
Workspace-hack crate manager that unifies feature flags for up to 1.7x compile speedup
rustperformancecrate
cargo-nextest
Parallel test runner replacing cargo test with per-process isolation
rustcrate
Cargo Profile Optimization
Cargo.toml release profile tuning for 10–20% runtime improvement with no code changes
rustperformancearchitecture
CHAMP (Compressed Hash-Array Mapped Prefix-tree)
Compressed Hash-Array Mapped Prefix-tree powering Clojure/Scala immutable collections; 10–100% over HAMT
data-structuresperformance
Clone Cost Stratification
Rust's `.clone()` is the same syntax across 5+ orders of magnitude of cost; the high-level Rust footgun
rustperformancearchitecture
codespan-reporting
Structured diagnostic pipeline for compiler-style error messages with source spans
rusterror-handlingcrate
color-eyre
Colorful eyre report handler with SpanTrace integration and panic hooks; repository archived
rusterror-handlingcrate
Compio
Recommended shard-per-core runtime for 2026; cross-platform, pluggable driver, validated by Apache Iggy
rustconcurrencyperformancecrate
Concurrent Queues
The 2025 MPMC hierarchy from LCRQ+Funnels down to Michael-Scott; SPSC tier, channels, stacks
concurrencyperformancedata-structures
Congee
Rust port of ART-OLC; 150 Mops/sec on 32 cores; closest Rust gets to the global concurrent-ordered-map frontier
rustconcurrencyperformancedata-structurescrate
Core Pinning
taskset, isolcpus, SCHED_FIFO; cuts P99.9 latency from 120 µs to 30 µs; HFT foundation
performanceconcurrencyarchitecture
C++ Coroutines
The C++ coroutine machinery; library-customizable promise types; powers std::generator and std::execution
cppconcurrencydesign-patterns
C++26 Contracts
C++26 pre/post conditions; configurable enforce/observe/ignore; optimizer assumption propagation
cppdesign-patternsarchitecture
C++26 Static Reflection
C++26 reflection via ^T and splicers; replaces macros and codegen for serialization/ORM/RPC
cppdesign-patternstype-theoryarchitecture
criterion
Mature statistical benchmarking with HTML reports; reduced maintainer activity
rustperformancecrate
crossbeam ArrayQueue
Vyukov-style bounded MPMC queue from crossbeam; closest Rust equivalent to LCRQ-class designs
rustconcurrencydata-structurescrate
crossbeam-channel
Proven synchronous MPMC message passing channel
rustconcurrencycrate
crossbeam-epoch
Epoch-based memory reclamation for lock-free Rust data structures; RCU equivalent
rustconcurrencycrate
Curiously Recurring Template Pattern (CRTP)
Curiously Recurring Template Pattern; C++ static polymorphism idiom; mostly displaced by deducing this
cppdesign-patternstype-theory
Crystalline
PLDI 2024 wait-free reclamation with bounded memory simultaneously — previously thought impossible
concurrencyperformancedata-structuresarchitecture
Compressed Sparse Row (CSR)
Compressed Sparse Row — fastest read-only graph representation; 40–250x faster than NetworkX
data-structuresperformancearchitecture
Cuckoo Trie
2021 trie exploiting memory-level parallelism; 20–360% over state-of-the-art via independent miss streams
data-structuresperformancearchitecture
D
d-ary Heap
Fastest practical heap (d=4); 17–30% faster than binary heaps, decisively beats Fibonacci heaps
data-structuresperformance
dashmap
Sharded RwLock concurrent HashMap with best write throughput and familiar API
rustconcurrencydata-structurescrate
Deducing `this`
C++23 explicit object parameters (this auto&&); kills CRTP; recursive lambdas; collapses four-way ref-qualified overloads
cppdesign-patternstype-theory
derive_more
Swiss-army knife derive macro (200M+): From, Into, Display, Error, operators, utility methods
rustdata-structureserror-handlingcrate
Design by Contract
Meyer's Eiffel-era methodology of machine-checked preconditions/postconditions; arriving in mainstream languages via C++26 contracts
design-patternsarchitecturetype-theory
Deterministic Simulation Testing
Testing methodology replacing I/O and time with deterministic mocks for reproducible distributed system testing
rustarchitectureconcurrency
Direct I/O
O_DIRECT bypassing OS page cache; Glommio achieves 7.7x over buffered I/O on NVMe
performancearchitecture
displaydoc
Derive Display from doc comments, no_std compatible
rusterror-handlingcrate
divan
Modern benchmarking crate with ergonomic attribute macros and allocation counting
rustperformancecrate
Driftsort
Rust's standard stable sort since 2024; up to 4x faster than previous sort via lazy runs and branchless partitioning
rustperformancedata-structures
E
Entity Component System (ECS)
Entity Component System — SoA at scale; archetype vs sparse-set storage for game engines
architectureperformancedata-structuresdesign-patterns
either
Canonical Either<L, R> sum type with trait delegation
rustdata-structurescrate
Elastic Hashing
Jan 2025 disproof of Yao's 1985 conjecture; O(log δ⁻¹) probes without reordering
performancedata-structuresarchitecture
Elimination-Backoff Stack
Hendler-Shavit-Yerushalmi 2004 stack; matches push/pop in randomized array, bypasses head bottleneck
concurrencyperformancedata-structures
emhash
C++ hash map for raw insert/erase throughput; tolerates 0.999 load factor with no tombstones
cppperformancedata-structures
enum_as_inner
Derive as_*(), into_*(), is_*() accessor methods for enum variants
rustdata-structurescrate
enum_dispatch
Static enum dispatch replacing dyn Trait at up to 10x speedup
rustperformancedesign-patternscrate
enum-map
O(1) array-backed map keyed by enum variants with exhaustive initialization
rustdata-structurescrate
error-chain
Legacy unmaintained error-handling crate; migrate to thiserror/snafu + anyhow/eyre
rusterror-handlingcrate
error-stack
Stacked Report with typed contexts and arbitrary attachments for observability-first error handling
rusterror-handlingcrate
Expert Rust Design
What separates A+ Rust from average: compile-time invariants, API design, crate architecture, knowing when to stop
rustarchitecturedesign-patterns
eyre
Fork of anyhow with swappable report handlers for customizable error presentation
rusterror-handlingcrate
F
FAA vs CAS
Why fetch-and-add beats compare-and-swap at contention hotspots; the foundational lock-free queue insight
concurrencyperformancearchitecture
Facade Crate Pattern
Workspace of specialized crates behind a curated public API; used by Bevy, Tokio, ripgrep
rustarchitecturedesign-patterns
failure
Deprecated error-handling crate (RustSec EOL); migrate to anyhow/thiserror
rusterror-handlingcrate
False Sharing and the 128-Byte Rule
The 128-byte cache-line rule; modern x86 adjacent-line prefetcher makes 64-byte padding insufficient
performanceconcurrencyarchitecture
Fastest Data Structures in Computer Science
Benchmarked survey of fastest implementations across 10 major data structure categories (2020–2026)
performancedata-structuresarchitecture
Fastest Dynamic Arrays in Computer Science
The hierarchy: realloc/mremap + good allocator beats every container; allocator dominates language
performancedata-structuresarchitecture
The Fastest Hash Map (2025)
The 2025 hash map landscape: Boost wins single-threaded, ParlayHash wins concurrent, elastic hashing reopens theory
performancedata-structuresarchitecture
Fastest Linked Lists
The 2026 linked-list landscape: 125× memory-layout lever; plf::list leads single-threaded; "fastest linked list" no longer looks like one
performancedata-structuresarchitecture
Fastest Ordered Maps in Computer Science
The 2026 ordered-map landscape: SIMD B-trees beat std::map by 7–18×; ART-OLC fastest concurrent; sub-log structures stay theoretical
performancedata-structuresarchitecture
FB+-Tree
VLDB 2025 SIMD B+-tree for variable-length keys via AVX-512 byte-wise prefix matching
performancedata-structures
Flat Combining
Hendler-Incze-Shavit-Tzafrir 2010; combiner thread batches operations; wins where lock-free CAS melts down
concurrencyperformancedata-structures
foldhash
Default hasher for hashbrown 0.15+, replacing ahash with better performance and smaller footprint
rustperformancedata-structurescrate
folly F14
Meta's chunked hash map family; lowest memory footprint at 24.7 B/elt; overflow counting
cppperformancedata-structures
folly::fbvector
Facebook's optimized vector; jemalloc-aware sizing, xallocx in-place expansion, trivial relocatability
cppperformancedata-structures
folly::small_vector
Bit-packed SBO vector with single-bit overhead; designed for billions of small vectors at fleet scale
cppperformancedata-structures
FrozenDictionary
.NET 8's read-optimized immutable dictionary; 43–69% faster string lookups via build-time analysis
performancedata-structures
frunk
Haskell/Scala-style generic programming: HList, Coproduct, Generic/LabelledGeneric, Validated
rusttype-theorydata-structurescrate
Finite State Transducer (FST)
Immutable sorted string sets/maps sharing prefixes and suffixes; powers Lucene and Tantivy
data-structuresperformancerust
Functional Core, Imperative Shell
The ImPureIm sandwich; pure decisions inside, I/O at the edges; Rust's borrow checker pushes you here
design-patternsarchitecturerust
Fusion Tree
Fredman & Willard 1990 word-parallel predecessor structure; O(log n / log log n); no practical implementation competes
data-structuresperformance
G
Generic Associated Types
Generic Associated Types: lending iterators, pointer families, lifetime-parameterized associated types
rusttype-theoryarchitecture
generic-array
Arrays generic over length via typenum; foundation for RustCrypto ecosystem
rusttype-theorydata-structurescrate
Glommio
Datadog's io_uring runtime with triple-ring architecture, proportional-share scheduling, and DMA storage I/O; effectively unmaintained
rustconcurrencyperformancecrate
GPU Queues
Warp-centric design mandatory; CAS melts down 1,112× at high thread counts; BACQ is current state of the art
concurrencyperformancearchitecture
Growth Factor Analysis
2x vs 1.5x vs adaptive growth; the memory reuse argument and why it's a third-order optimization
performancedata-structuresarchitecture
H
Harris Linked List
Timothy Harris's 2001 marked-pointer lock-free list; Träff-Pöter (2020) and VBL fix the head-retraversal weakness
concurrencydata-structures
hashbrown
Swiss Table port to Rust; std::HashMap since 1.36; 2x over Robin Hood; foldhash default hasher
rustdata-structurescrate
Hazard Pointers
Bounded-memory safe reclamation primitive; standardized in C++26; complement to EBR for stalled-thread tolerance
concurrencydata-structuresarchitecture
Heapless
Stack-allocated fixed-capacity collections via const generics for embedded and no_std
rustperformancedata-structurescrate
High-Level Rust
Pragmatic Rust style trading 10–30% perf for C#-like devx; type-first + Arc-everywhere + DDD services
rustarchitecturedesign-patterns
HOT (Height Optimized Trie)
Height Optimized Trie (Binna et al., SIGMOD 2018); varies bits per node by data distribution; beats ART on string keys
data-structuresperformance
Huge Pages
2 MB / 1 GB pages eliminate TLB misses; 32× more address space per entry; allocator-level integration
performancearchitecture
I
iai-callgrind
Deterministic instruction-count benchmarking via Valgrind for CI regression detection
rustperformancecrate
Iceberg Hashing
JACM 2023 hash table optimizing space, cache, and stability; built for persistent memory
performancedata-structuresarchitecture
`if consteval`
C++23 compile-time/runtime branch; replaces is_constant_evaluated() trap; compile-time strategy pattern
cppdesign-patternstype-theory
Inter-Thread Communication
The 50–135 ns floor; topology > algorithm; full latency ladder from cache-line transfer to scheduler wake
concurrencyperformancearchitecture
Intrusive Linked List
Linux kernel list.h pattern; pointers embedded in data structures; 5–29× over std::list via zero allocation
data-structuresperformancecpparchitecture
io_uring
Linux completion-based async I/O with cancellation safety, ecosystem incompatibility, and container security challenges
rustperformanceconcurrencyarchitecture
IPS⁴o (In-Place Super Scalar Samplesort)
In-Place Super Scalar Samplesort — dominant parallel sort; 1.5x sequential, 3x parallel competitors
performanceconcurrencydata-structures
Itertools
Canonical extension trait crate for Iterator with chunks, tuple_windows, interleave, and dozens more
rustcrate
J
jemalloc
Facebook's allocator with xallocx in-place expansion; powers folly-fbvector; 30% throughput at 36 threads
performancearchitecture
JumpRope
World's fastest rope implementation (~35–40M edits/sec); skip-list spine + gap-buffer leaves
rustdata-structuresperformancecrate
K
kanal
High-throughput message passing channel leading benchmarks at 8–16M msg/sec
rustconcurrencycrate
Kernel Bypass
DPDK pattern: poll-mode drivers, no syscalls; 5 µs UDP vs 9 µs kernel; principles translate to inter-thread
performancearchitectureconcurrency
L
LazyLock
LazyLock/LazyCell replacing lazy_static and once_cell in std (Rust 1.80)
rustarchitecturecrate
LCRQ (Linked Concurrent Ring Queue)
Linked Concurrent Ring Queue (PPoPP 2013); FAA-on-a-ring; 3× over Michael-Scott; foundation of modern fast MPMC
concurrencyperformancedata-structures
Learned Indexes
ML-based index structures (PGM-Index, RadixSpline) delivering 2–3x faster lookups than B-trees
data-structuresperformancearchitecture
llvm::SmallVector
LLVM's SBO vector with type-erased SmallVectorImpl base for template bloat avoidance
cppperformancedata-structures
LMAX Disruptor
Lock-free ring buffer achieving 52 ns/hop (630x over ArrayBlockingQueue); mechanical sympathy gold standard
concurrencyperformancearchitecture
LPRQ (Linked Portable Ring Queue)
Portable LCRQ (PPoPP 2023); drops CAS2 while matching LCRQ on x86; 1.6× over previous portable designs
concurrencyperformancedata-structures
M
Masstree
Trie-of-B+-trees concurrent ordered map; cache-craftiness readers; best for string keys at high contention
concurrencyperformancedata-structures
Mechanical Sympathy
Martin Thompson's design philosophy; Java ping-pong 50 ns vs C++ 45 ns proves hardware sets the speed
performancearchitectureconcurrency
Memory Ordering
x86 TSO vs ARM relaxed; acquire/release free on x86, costs 10–20 ns DMB on ARM; the seq_cst trap
concurrencyperformancearchitecture
Michael-Scott Queue
Canonical 1996 lock-free MPMC linked-list queue; 3× slower than LCRQ; still in Java's ConcurrentLinkedQueue
concurrencydata-structures
miette
Diagnostic-first errors with source spans, labels, help text, and rich rendering for compiler-style UX
rusterror-handlingcrate
mimalloc
Microsoft's memory allocator delivering up to 5.3x faster allocation than glibc malloc
rustperformancecrate
Modern C++ Design Patterns (C++23 and Beyond)
The C++23/C++26 pattern catalog: deducing this, std::expected, generators, mdspan, reflection, senders, contracts
cppdesign-patternsarchitecturetype-theory
Modern Rust Features
Definitive guide to Rust 2023–2026: edition 2024, async evolution, type system, pattern matching, stdlib
rustarchitecture
Monoio
ByteDance's io_uring runtime with zero-copy slab-allocated I/O; best for Linux-only network proxies
rustconcurrencyperformancecrate
moodycamel::ConcurrentQueue
C++ MPMC with per-producer sub-queues; ~1.7× Boost.Lockfree at the cost of relaxed cross-producer FIFO
cppconcurrencyperformance
MPMC Queue
The 2013–2025 algorithm progression: LCRQ → SCQ → LPRQ → wCQ → Aggregating Funnels
concurrencyperformancedata-structures
N
Newtype Pattern
Zero-cost primitive wrapping with private constructors for parse-don't-validate
rusttype-theorydesign-patterns
num_enum
Safe integer-to-enum conversions with alternatives, catch-all, and TryFrom for FFI/protocols
rustdata-structurescrate
NUMA-Aware Queues
Nuddle delegation, SmartPQ; 1.87× over NUMA-oblivious designs on multi-socket systems
concurrencyperformancearchitecture
nutype
Proc macro for generating validated newtypes with sanitization rules (2.7M+)
rusttype-theorycrate
O
`std::visit` + Overloaded Pattern
std::visit + overloaded variadic lambda; compile-time exhaustive dispatch over std::variant
cppdesign-patternstype-theory
P
papaya
Lock-free concurrent HashMap with novel memory reclamation, ideal for async read-heavy caches
rustconcurrencydata-structurescrate
ParlayHash
CMU concurrent hash map: 1,130 Mops at 128 threads via epoch-based reclamation; 39× libcuckoo
cppconcurrencyperformancedata-structures
Parse, Don't Validate
Design principle: return refined types from validation, not booleans — the foundation of type-driven design
rusttype-theorydesign-patterns
pdqsort (Pattern-Defeating Quicksort)
Pattern-Defeating Quicksort — fastest sequential unstable sort; Rust's sort_unstable; branchless variant
performancedata-structures
Perfect Hashing
Zero-collision hash construction for static key sets; PTHash, RecSplit; unbeatable on read-only data
performancedata-structuresarchitecture
Persistent Functional List
Singly-linked cons list with structural sharing; Haskell/Clojure backbone; lock-free reads via immutability
data-structurestype-theoryperformance
Persistent Queues
Functional queues: Hood-Melville (1981), Okasaki (1995), Kaplan-Tarjan (1999) with O(1) catenation
data-structurestype-theoryperformance
plf::list
Matt Bentley's drop-in std::list replacement; 333% faster insert, 6,500% faster clear via unrolled blocks and spatial-aware reinsertion
cppperformancedata-structures
proptest
Property-based testing with automatic shrinking counterexamples
rustcrate
pulp
Portable SIMD on stable Rust with runtime CPU feature detection and dispatch
rustperformancecrate
push_back_unchecked
Skipping the size==capacity branch enables vectorization; up to 5.9x speedup at small sizes on Clang
performancedata-structures
R
Railway-Oriented Programming
Wlaschin's metaphor for monadic error handling; the cross-language consensus from Result/Either to std::expected
error-handlingdesign-patternstype-theory
rapidhash
Fastest non-cryptographic hash function overall (4.25 ns geometric mean)
rustperformancedata-structurescrate
Read-Copy-Update (RCU)
Read-Copy-Update — zero read-side overhead concurrency; Linux kernel, liburcu, crossbeam-epoch
concurrencyperformancearchitecture
realloc and mremap
Linux's in-place virtual page remapping for O(1) array growth; the ceiling std::vector cannot reach
performancearchitecturedata-structures
Recursion Schemes
Catamorphisms and anamorphisms with stack safety and arena-based traversal for AST-heavy code
rustdata-structuresdesign-patternscrate
Ring Buffer
The foundation; 1.5× over std::queue, 2–10× over linked-list; underlies every fast queue
data-structuresperformanceconcurrency
rkyv
Zero-copy deserialization framework with ~21 ns access time, uncontested in its niche
rustperformancedata-structurescrate
rtrb
Wait-free SPSC ring buffer for Rust; ~7 ns/op, 520M+ ops/s on Apple M4; real-time / audio DSP
rustconcurrencyperformancecrate
Rust 2024 Edition
The largest Rust edition: RPIT capture, explicit unsafe, tighter temporaries, async prelude, resolver 3
rustarchitecture
Rust Abstraction Boundaries
Enums vs generics vs trait objects; macros as last resort; the overengineering trap
rustarchitecturedesign-patterns
Rust Allocation Patterns
Borrow → Cow → owned hierarchy; niche optimization; buffer reuse; zero-cost abstraction caveats
rustperformancearchitecture
Rust API Design
Accept broad, return specific; de-generification; builder tiers; extension traits; visibility control
rustdesign-patternsarchitecture
Rust Async Evolution
Async fn in traits (1.75), async closures (1.85), structured concurrency with JoinSet
rustconcurrencyarchitecture
Rust Build Tooling
Overview of cargo ecosystem tools for compilation, quality, and supply-chain security
rustperformancearchitecture
Rust Concurrency Patterns
Arc<Mutex> as last resort; decision framework; data-oriented state splitting; async task patterns
rustconcurrencyarchitecture
Rust Concurrent Data Structures
Landscape of concurrent maps and channels beyond std
rustconcurrencydata-structuresarchitecture
Rust Enum Crates
Survey of 60+ crates extending Rust enums: utilities, dispatch, type-level programming, recursion schemes
rustdata-structuresdesign-patternstype-theory
Rust Error Crate Comparison
Comprehensive comparative analysis of the Rust error-handling crate ecosystem with decision matrix
rusterror-handlingarchitecture
Rust Error Handling
The four-layer Rust error-handling architecture: typed definition, type-erased reporting, diagnostics, and observability
rusterror-handlingarchitecture
Rust Memory Allocators
Comparison of mimalloc and jemalloc as global allocator replacements
rustperformancearchitecture
Rust Pattern Matching
let-else, let-chains, exclusive ranges, exhaustive patterns — modern pattern matching ergonomics
rustarchitecture
Rust Testing Patterns
Layered testing (unit, integration, doc, property-based) and CI lint enforcement
rustarchitecturedesign-patterns
Rust Workspace Patterns
Virtual workspaces with dependency/lint inheritance, feature flag best practices, cross-crate error chaining
rustarchitecture
rustix
Safe syscall bindings with optional linux_raw backend bypassing libc
rustperformancecrate
S
scc
Scalable concurrent HashMap optimized for extreme write contention
rustconcurrencydata-structurescrate
SCQ (Scalable Circular Queue)
Scalable Circular Queue (DISC 2019); portable LCRQ alternative; half the memory; wins on PowerPC
concurrencyperformancedata-structures
Sealed Traits
Closed type sets via private supertrait; essential for typestate and domain modeling
rusttype-theorydesign-patterns
Seastar
ScyllaDB's C++ shard-per-core framework; ancestor of Glommio and the thread-per-core pattern
cppconcurrencyperformancearchitecture
Senders and Receivers (`std::execution`)
C++26 std::execution structured concurrency; scheduler-agnostic value-flow pipelines; the P2300 model
cppconcurrencyarchitecturedesign-patterns
Serde Architecture
Serde's zero-allocation data model via traits; dual extensibility without intermediate representations
rustarchitecturedesign-patterns
Shard-per-core Runtimes Compared
Detailed comparison of Monoio, Compio, and Glommio with architecture table and decision framework
rustconcurrencyperformancearchitecture
SIMD Programming
SIMD as the cross-cutting technique separating fastest data structures from the rest
performancearchitecture
simdjson
SIMD-optimized JSON parser: 4x RapidJSON, 25x nlohmann; gigabytes/second on single core
performancedata-structures
Slab List
GPU warp-cooperative linked list (Ashkiani et al., IPDPS 2018); 512M updates/s, 937M searches/s on Tesla K40c
concurrencyperformancedata-structuresarchitecture
slotmap
Generational-index arenas preventing ABA problems with stable handles
rustdata-structurescrate
Small Buffer Optimization
The general SBO technique; benchmarks reveal it's overrated for typical workloads
performancedata-structuresarchitecture
SmallVec
Stack-inline Vec up to N elements with heap fallback; benchmarks show Vec+reserve often beats it by 5.5x
rustperformancedata-structurescrate
SNAFU Tutorial
Deep-dive tutorial on SNAFU: context selectors, backtrace patterns, async integration, boundary conversions, and migration from thiserror
rusterror-handling
Snafu
Error-handling crate using context selectors for structured semantic backtraces, with progressive design from Whatever to opaque types
rusterror-handlingcrate
SoA vs AoS (Structure of Arrays vs Array of Structures)
Structure of Arrays vs Array of Structures — 1.4–12.7x speedup for field-subset access patterns
performancearchitecturedata-structures
socket2
Ergonomic wrapper for advanced socket configuration (SO_REUSEPORT, TCP_CORK, BPF)
rustperformancecrate
Space-Optimal Dynamic Arrays
Brodnik 1999 √N lower bound, Tarjan-Zwick 2023, HAT, Tiered Vectors; theory loses to prefetchers
performancedata-structuresarchitecture
SPSC Queue
Single-producer single-consumer privilege; 300–530M ops/s, no atomic RMW required
concurrencyperformancedata-structures
static_vector
Fixed-capacity vector with zero heap and no SBO branch; boost::container, P0843 std::static_vector
cppperformancedata-structures
`std::expected`
C++23 monadic Result type; and_then/transform/or_else; the std::expected mirror of Rust Result
cpperror-handlingdesign-patterns
`std::generator`
C++23 coroutine-based lazy sequence; co_yield + ranges composition; replaces hand-rolled iterators
cppdesign-patternsconcurrency
`std::mdspan`
C++23 non-owning multidimensional view; pluggable layout policies; replaces matrix classes
cppperformancedata-structuresdesign-patterns
`std::move_only_function`
C++23 type-erased move-only callable; enables value-semantic polymorphism without inheritance
cppdesign-patternstype-theory
Structured Concurrency
The discipline of bounded, hierarchical task lifetimes; Smith 2018; consensus across Kotlin, Swift, Rust, C++26
concurrencyarchitecturedesign-patterns
strum
Standard enum ergonomics crate (100M+): Display, FromStr, EnumIter, EnumCount, metadata, discriminants
rustdata-structurescrate
Succinct Data Structures
Near-information-theoretic-minimum space with efficient queries; SDSL-lite implements 40 publications
data-structuresperformance
Swiss Table
SIMD-parallel metadata probing hash map design; adopted by C++, Rust, and Go standard libraries
performancedata-structuresarchitecture
Synchronization Primitives
The latency ladder: atomic spin (35 ns) → futex fast path (25 ns) → syscall (5 µs) → context switch (10 µs)
concurrencyperformancearchitecture
T
tcmalloc
Google's allocator; 50x throughput on 4MB allocations; per-CPU caches via rseq
performancearchitecture
The Fastest Queue in All of Computer Science
Survey of FIFO queue performance: SPSC ring buffer dominates 1P/1C, LCRQ+Funnels leads strict-FIFO MPMC
performanceconcurrencydata-structuresarchitecture
thiserror
Ecosystem-standard derive macro (~858M downloads); invisible in public API, no_std since 2.0 via core::error::Error
rusterror-handlingcrate
Thread-per-core Architecture
Server architecture eliminating cache coherency costs; 2–3x Tokio at 16+ cores but 3x overprovisioning penalty
rustperformanceconcurrencyarchitecture
tikv-jemallocator
jemalloc wrapper with most stable allocation latency and built-in heap profiling
rustperformancecrate
Tokio
Rust's dominant async runtime with JoinSet structured concurrency; ecosystem moat makes it the correct default
rustconcurrencycrateperformance
tracing-error
Enriches errors with tracing span context; SpanTrace beats backtraces in async code
rusterror-handlingconcurrencycrate
tracing
Ecosystem standard for structured diagnostics with ~1 ns disabled overhead
rustcratearchitecture
Trait Upcasting
Coerce &dyn Sub to &dyn Super (Rust 1.86); works with Box, Arc, Rc
rusttype-theory
Trivial Relocatability
P1144 proposal; memcpy-based vector growth instead of move construction; 2-10x reallocation speedup
cppperformancetype-theorydata-structures
Type Driven Development
Methodology: types as specifications, seven techniques from newtypes to typestates, pragmatic limits
rusttype-theorydesign-patternsarchitecture
typed-builder
Derive macro for builders with compile-time required field checking
rusttype-theorycrate
typenum
Type-level numbers with compile-time arithmetic; foundation for generic-array and RustCrypto
rusttype-theorycrate
Typestate Pattern
Crown jewel of type-driven Rust: state machines checked at compile time via move semantics
rusttype-theorydesign-patterns
U
Unrolled Linked List
Multiple elements per node sized to cache lines; 2–4× traversal speedup; concurrent variant 300% over alternatives
data-structuresperformance
V
Van Emde Boas Tree
O(log log U) predecessor structure; theoretically sub-logarithmic but loses to tuned B-trees on real hardware
data-structuresperformance
Vector-Backed Linked List
Index-based linked list inside a std::vector; 7.8× std::forward_list with compaction; jsl::vector_list, orx-linked-list, GlueList
data-structuresperformance
W
wCQ (Wait-free Circular Queue)
Wait-free MPMC queue (SPAA 2022); fast-path-slow-path matches SCQ throughput while bounding completion time
concurrencyperformancedata-structures
Z
zerocopy
Google's formally verified zero-cost byte conversions, superior to bytemuck for new code
rustperformancecrate