nx_swcompare_sota.nx
buildroot/runtime/nx_swcompare_sota.nx
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
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
structs
| none |
consts
| 13 | const K_MAGIC_262144: i64 = 262144 |
functions
| 15 | func 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 } |
| 16 | func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 } |
| 17 | func wn(fd: i64, v: i64) -> i64 |
| 23 | func wj(fd: i64, s: *u8) -> i64 |
| 30 | func wq(fd: i64) -> i64 { wc(fd, 34); return 0 } |
| 31 | func 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 } |
| 32 | func kv_n(fd: i64, key: *u8, v: i64) -> i64 { wq(fd); w(fd, key); wq(fd); wc(fd, 58); wn(fd, v); return 0 } |
| 33 | func c_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 39 | func 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 |
| 40 | func 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 |
| 41 | func 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 |
| 42 | func splitpipe(s: *u8, fld: *i64, maxf: i64) -> i64 called by 1: main |
| 48 | func g_badge(fd: i64, v: *u8, nc: i64) -> i64 |
| 57 | func main(argc: i64, argv: *i64) -> i64 |