code wiki / (root) / nx_bench_fannkuch.nx

nx_bench_fannkuch.nx

buildroot/runtime/nx_bench_fannkuch.nx

3185 B87 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind benchtopic bench
docsdependenciesstructsconstsfunctions

about

nx_bench_fannkuch.nx -- NishiLang twin of bench/xlang/fannkuch.c (fannkuch-redux, Computer Language Benchmarks Game). First RACING BENCH ingestion (docs/NX_RACING_BENCH_NORTHSTAR.md). n=10, published answer checksum 73196 / maxflips 38; line 1 = checksum*100+maxflips (=7319638), line 2 = us. Structurally identical flag-based control flow to the C twin (NishiLang has no break) so the compared work is honest. license_tier: ORIGINAL No hw writes (Rule 26). (nx_syscalls_x86_64.nx import REMOVED 2026-07-31, debt 1785528831: this file already gets the canonical syscall layer via nx_clock.nx -> syscalls.nx, so importing the raw-x86 module too put TWO syscall layers in one TU -- every wrapper twice, numbering picked by definition ORDER, silently.)

dependencies 1 imports · 0 importers

nx_clock.nx nx_bench_fannkuch.nx

imports: nx_clock.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_clock_monotonic_ns sys_mmap sys_clock_gettime_mono fk_emit_i64

structs

none

consts

none

functions

14func fk_emit_i64(fd: i64, n: i64) -> i64
called by 1: main
32func main() -> i64