code wiki / (root) / nx_swcompare_sota.nx

nx_swcompare_sota.nx

buildroot/runtime/nx_swcompare_sota.nx

17766 B225 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic swcompare
docsdependenciesstructsconstsfunctions

about

nx_swcompare_sota.nx -- STATE-OF-THE-ART software comparison generator (operator 2026-07-09: "we census too few competitors ... look at how systems are compared at a SOTA level -- speed, functionality, features, APIs"). Beyond the toy nx_swcompare_matrix (4 competitors, Yes/No symbol-presence): reads knowledge/compare/<domain>.sota @title / @sub / @cols <c1>|..|<cM> (M competitors, Nishi is column 0, variable M) @cat <category> (groups the axes that follow -- Speed, Quantization, API, ...) <axis>|<kind>|<v0>|<v1>|..|<v(M-1)>|<note> (M cell values, one per column; kind=num|g) kind=num -> the cell value is shown verbatim (a measured number / range / unit -- quantitative) kind=g -> the value is a grade token: B=Best n=No Y=Yes ~=Partial (badged) Honest by construction: cells are researcher-sourced / measured (note carries the source); Nishi (col 0) shows its REAL number (e.g. 1.5 tok/s), NOT a presence tick. Modes: no-arg = console + liar-kill gate; html; json. NOTE: no '#'/'!' in string literals (nx_cc trap) -> rgb() + wc(fd,33). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_swcompare_sota.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main w sys_write sys_exit sys_mmap scopy c_read sys_openat_rd sys_read sys_close starts splitpipe streq wc sys_mmap ↻ sys_write ↻ kv_n wq wc ↻ w ↻ wc ↻ wn w ↻ sys_mmap ↻ sys_write ↻ kv_s wq ↻ w ↻ wc ↻ wj wc ↻ wq ↻ wj ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real wn ↻ g_badge w ↻

structs

none

consts

13const K_MAGIC_262144: i64 = 262144

functions

15func w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 5: wnkv_skv_ng_badgemain calls 1: sys_write
16func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 }
called by 5: wjwqkv_skv_nmain calls 2: sys_mmapsys_write
17func wn(fd: i64, v: i64) -> i64
called by 2: kv_nmain calls 3: wsys_mmapsys_write
23func wj(fd: i64, s: *u8) -> i64
called by 2: kv_smain calls 1: wc
30func wq(fd: i64) -> i64 { wc(fd, 34); return 0 }
called by 3: kv_skv_nmain calls 1: wc
31func kv_s(fd: i64, key: *u8, val: *u8) -> i64 { wq(fd); w(fd, key); wq(fd); wc(fd, 58); wq(fd); wj(fd, val); wq(fd); return 0 }
called by 1: main calls 4: wqwwcwj
32func kv_n(fd: i64, key: *u8, v: i64) -> i64 { wq(fd); w(fd, key); wq(fd); wc(fd, 58); wn(fd, v); return 0 }
called by 1: main calls 4: wqwwcwn
33func c_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
39func streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 }
called by 1: main
40func starts(s: *u8, pfx: *u8) -> i64 { var i: i64 = 0; while pfx[i] != (0 as u8) { if s[i] != pfx[i] { return 0 } i = i + 1 } return 1 }
called by 1: main
41func scopy(dst: *u8, doff: i64, src: *u8) -> i64 { var i: i64 = 0; while src[i] != (0 as u8) { dst[doff+i] = src[i]; i = i + 1 } return doff + i }
called by 1: main
42func splitpipe(s: *u8, fld: *i64, maxf: i64) -> i64
called by 1: main
48func g_badge(fd: i64, v: *u8, nc: i64) -> i64
called by 1: main calls 1: w
57func main(argc: i64, argv: *i64) -> i64