Best Use & Engineering Application Guide

Engineering Category: Lossless Wire & Structural Compression

Best Use in Production: Zero-allocation integer bit-packing, variable-length encoding, and stream framing for sovereign wire protocols.

When to Select This Capsule: Verified baseline member of a 2-capsule Equivalence Class; useful as a reference or cross-validation peer. Sub-10-cycle hardware kernel (501157/100000 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.

Snap-Circuit Wiring Role: Specialized Multi-Pin Stage `(u8,u8)->u8` — wire matching input pins via `snap_dag` or `snap_pipeline`.

Hardware _rdtsc: 501157/100000 cycles/op
Latency: 190971/80000 ns/op
Throughput: 80000000/190971 ops/us
Compiled ELF64 .text: 9 B (5 x86_64 insns)
C64 64KB RAM Budget: 61/65536 (61 B source)
Ternary Vote: + (score 1) | Salience: 90/1
Pure-Rust Capsule Source Code (61 B)
pub const fn nand1(a: u8, b: u8) -> u8 {
    (!(a & b)) & 1
}
rustc -C opt-level=3 x86_64 Disassembly (9 B .text / 5 insns)
nand1:
    mov    eax, edi
    and    eax, esi
    not    al
    and    al, 1
    ret

Head-to-Head Functional Equivalence Class Peers (2 Implementation(s) Matching 64 Test Vectors)

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#36nand
domain: smart-tree | id: 36e236cb0c64609e0719dc6208b24ce9
668333/200000 cyc/op636679/400000 ns/op400000000/636679 ops/us9 B .text (5 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#72nand1 (THIS CAPSULE)
domain: smart-tree | id: 8eff2ef0bdd21408a48244b2f8a3da9d
501157/100000 cyc/op190971/80000 ns/op80000000/190971 ops/us9 B .text (5 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz