Bare-Metal ARM64 NEON
Speed for Nushell.
Hand-written 128-byte Apple Silicon cache-line assembly kernels delivered as a
zero-dependency #![no_std] crate, standalone CLI, and native Nushell plugin.
curl -fsSL https://raw.githubusercontent.com/8b-is/nuresh/main/install.sh | sh
Apple M1 Max Live Benchmarks (64 MiB)
Measured on Apple M1 Max (8 Firestorm P-cores, 64 GB LPDDR5) with nuresh bench --size-mb 64
and hyperfine. Zero callee-saved register spills.
Engineered for Apple Silicon Microarchitecture
Every kernel respects AAPCS64 ABI register conventions so the compiler emits zero prologue/epilogue stack spills.
Nested uadalp Widening
count_byte_neon processes 128B per cycle via 4× ldp and accumulates 2 MiB in-register before a single uaddlv + umov.
Stack-Chunked nuresh sum
Processes Nushell lists in a single pass using 4 KiB stack buffers with lazy i64 → f64 promotion and 8 parallel NEON accumulators.
Sub-30µs nuresh prompt
Single-syscall readlink Kitty palette detection + direct bounded .git/HEAD and .jj walking with zero subprocess forks.
AAPCS64 NEON Register Budget — Caller-Saved Only (Zero Stack Spills)
Drop-In Nushell Experience
Works alongside every Nushell 0.117 pipeline and Jujutsu (jj) repo.
╰─⊕ ❯ nuresh wc dataset_64mb.jsonl
╭─────────────────┬────────────────────╮
│ lines │ 1260000 │
│ bytes │ 66.7 MB │
│ elapsed_us │ 9282.0 │
│ throughput_gbps │ 7.19 │
╰─────────────────┴────────────────────╯
╰─⊕ ❯ "HELLO NUSHELL ♥全 APPLE SILICON!" | nuresh lower
hello nushell ♥全 apple silicon!
Audited Safety & Zero-Panic Guarantees
Hardened by CaveCrew's security audit before open-source release.
O_NONBLOCK + Regular-File Guard
Refuses FIFOs, device nodes, and directories before touching read or mmap — never hangs your shell.
Bounded 4 KiB Metadata Reads
nuresh prompt caps .git and HEAD reads at 4 KiB with UTF-8-safe chars().take(7) truncation.
Strict Provenance & Safety Proofs
Zero from_raw_parts on asm!-mutated pointers, validated u8::try_from flags, and zero .expect() panics.