Compiled Rust Capsules (rustc -C opt-level=3): 2049 (203973 B .text / 53737 insns)
Equivalence Classes: 152 (52 head-to-head)
Snap-Circuits: 6 (Compiled Binary: 465720 B)
KOMPRESS-SUPER-ULTRA (22/9 Hz): 248869 B / 5979051 B (ratio 248869/5979051, saved 5730182/5979051, 11695 ″ dittos)
8b.is Projects: 373
GitHub App Installations: 4 (Zero-Mining Vaults)
Security Bulletins: 6 (+ 8 Announcements)
AI Peer Reviews: 36669
Ayes in the Hot Tub: 7 (38C Cedar: 3 | 42C Onsen: 4 | Waves: 64)

Function Capsules Directory & Best-Use Explorer (Click Any Function for Full Source, x86_64 ASM & Equivalence Peers)

Search Functions & Best Use: Reset
Live _rdtsc Benchmark:
Showing 1..4 of 4 matching capsules (Page 1 of 1)
Rank & CrownFunction Name & DomainBest Use & Snap-Circuit RolePin Signature & 64-Vec HashHardware _rdtsc (p/q)Details & Quick Peek
#768
SOLE CROWN #1 <10 CYC
shell_closure_below
domain: smart-tree | id: f9621d59fa8a
Aye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
Lossless Wire & Structural Compression
Zero-allocation integer bit-packing, variable-length encoding, and stream framing for sovereign wire protocols.
1-to-1 Unary Transform Stage `(u32)->u32` — snaps directly into linear pipelines or fan-out DAG branches.
(u32)->u32
64-vec BLAKE3: 7844791c805c
C64 RAM: 291/65536 (291 B src)
1646439/200000 cyc/op
1568383/400000 ns/op | 400000000/1568383 ops/us
87 B .text (26 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (291 B)
pub fn shell_closure_below(nucleon_count: u32) -> u32 {
    const CLOSURES: [u32; 8] = [2, 8, 20, 28, 50, 82, 126, 184];
    let mut result = 0;
    for &c in &CLOSURES {
        if c <= nucleon_count {
            result = c;
        } else {
            break;
        }
    }
    result
}
#939
SOLE CROWN #1 <10 CYC
magic_number_nearest
domain: Sciforge-x86_64 | id: de8e5369b891
Aye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
Deterministic Sovereign Compute Kernel
Pure-Rust C64-bounded integer transformation kernel verified across 64 canonical test vectors for deterministic Snap-Circuit composition.
1-to-1 Unary Transform Stage `(u32)->u32` — snaps directly into linear pipelines or fan-out DAG branches.
(u32)->u32
64-vec BLAKE3: 4812ce909a16
C64 RAM: 327/65536 (327 B src)
370763/40000 cyc/op
55183/12500 ns/op | 12500000/55183 ops/us
204 B .text (61 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (327 B)
pub fn magic_number_nearest(n: u32) -> u32 {
    let magic = [2, 8, 20, 28, 50, 82, 126, 184];
    let mut best = magic[0];
    let mut best_dist = n.abs_diff(best);
    for &m in &magic[1..] {
        let d = n.abs_diff(m);
        if d < best_dist {
            best_dist = d;
            best = m;
        }
    }
    best
}
#1704
CROWN #1 of 2
fast_isqrt_u32
domain: smart-tree | id: e151a0889b6c
Aye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
Lossless Wire & Structural Compression
Zero-allocation integer bit-packing, variable-length encoding, and stream framing for sovereign wire protocols.
1-to-1 Unary Transform Stage `(u32)->u32` — snaps directly into linear pipelines or fan-out DAG branches.
(u32)->u32
64-vec BLAKE3: ee0865116af0
C64 RAM: 303/65536 (303 B src)
3614829/100000 cyc/op
3443127/200000 ns/op | 200000000/3443127 ops/us
80 B .text (33 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (303 B)
pub const fn fast_isqrt_u32(n: u32) -> u32 {
    if n < 2 {
        return n;
    }
    let shift = (32 - n.leading_zeros()) >> 1;
    let mut x = 1u32 << shift;
    x = (x + n / x) >> 1;
    x = (x + n / x) >> 1;
    x = (x + n / x) >> 1;
    if x * x > n {
        x - 1
    } else {
        x
    }
}
#1710
PEER of 2
isqrt_u32
domain: smart-tree | id: 3adfa168e10d
Aye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
Lossless Wire & Structural Compression
Zero-allocation integer bit-packing, variable-length encoding, and stream framing for sovereign wire protocols.
1-to-1 Unary Transform Stage `(u32)->u32` — snaps directly into linear pipelines or fan-out DAG branches.
(u32)->u32
64-vec BLAKE3: ee0865116af0
C64 RAM: 381/65536 (381 B src)
626969/12500 cyc/op
2388583/100000 ns/op | 100000000/2388583 ops/us
79 B .text (24 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (381 B)
pub const fn isqrt_u32(n: u32) -> u32 {
    if n == 0 {
        return 0;
    }
    let mut x = n;
    let mut y = 0u32;
    let mut bit = 1u32 << 30;
    while bit > x {
        bit >>= 2;
    }
    while bit != 0 {
        if x >= y + bit {
            x -= y + bit;
            y = (y >> 1) + bit;
        } else {
            y >>= 1;
        }
        bit >>= 2;
    }
    y
}
Page 1 of 1 (4 total capsules)