Monomorphic, Zero-Allocation Systems Architecture & High-Performance Data Engineering for Rust.
Home of the Sewing Machine Architecture (SMA), Adaptive Data Layouts, and Microsecond Wire Protocols.
Stitch is a high-performance, modular systems engineering platform
designed to eliminate runtime allocation overhead, virtual dispatch
(Box<dyn ...>), and cache thrashing across data transformation,
network framing, and transactional execution pipelines.
Rooted in the Sewing Machine Architecture (SMA), Stitch decomposes complex workflows into strictly bounded, cache-aligned U-cycles with zero runtime cost.
- The Monomorphic U-Cycle (SMA): Zero dynamic dispatch, total function contracts on ascent, and full compiler inlining across execution chains.
- The Scrooge Systems Mindset: Mechanical sympathy to 64-byte L1D cache lines, packed memory layouts, elimination of pointer chasing, and empirical Criterion benchmark validation.
- Strict
no_stdIsolation: Embedded-first and realtime-ready core kernels without mandatory heap allocations or hidden runtime barriers. - Pure Orthogonal Separation: Clean decoupling of policy from mechanism, memory layouts from payload codecs, and transport from data structures.
| Repository | Status | Description | Primary Role |
|---|---|---|---|
stitch |
Official facade meta-crate (use stitch::prelude::*;), unified entry point, and ecosystem prelude. |
Unified Facade & Meta-Crate | |
stitch-framework |
Canonical Sewing Machine Architecture (SMA) engine, sealed monomorphic execution chains, U-cycle traversal, macros, and CLI. | Monomorphic Execution Kernel | |
stitch-data |
High-density data layout & transformation engine: AoS/SoA columnar blocks, SIMD Delta/RLE/BitStream codecs, feature masks, and derive macros. | Data & Transformation Engine | |
stitch-wire |
Microsecond wire framing, streaming resync parser, hardware Castagnoli CRC32, and UDP/TCP/IPC transport bus. | Framing & Transport Bus |
use stitch::prelude::*;
let pipeline = Pipeline::on_terminal(RecordTerminal::new())
.wrap(CrcLayer::new())
.wrap(TelemetryLayer::new());
let outcome = pipeline.dispatch(&mut blackboard, payload)?;use stitch::data::prelude::*;
#[derive(StitchRecord)]
pub struct SensorReading {
pub timestamp: u64,
#[stitch(zigzag)]
pub delta_temp: i16,
#[stitch(bits = 4)]
pub sensor_id: u8,
}All repositories under stitch-rs uphold strict engineering standards:
- All changes go through pull requests targeting
devwith full CI pass (Miri, Clippy with zero warnings, ASan, fuzz testing). - Codebase artifacts and commits strictly adhere to Conventional Commits.
- Review the Contributing Guide and Code of Conduct.
All official Stitch ecosystem projects are dual-licensed under MIT OR Apache-2.0.