code wiki / _hdl_build / nx_comms_rival_census.nx

nx_comms_rival_census.nx

buildroot/runtime/_hdl_build/nx_comms_rival_census.nx

13302 B188 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic comms
docsdependenciesstructsconstsfunctions

about

nx_comms_rival_census.nx -- MEASURED rival-benchmark census: the nishifamily.com/video comms stack vs JITSI / ZOOM / TELEGRAM / DISCORD (operator 2026-07-02: "benchmarked against the best ... have all of their features like texting and contacts"). Mirrors nx_video_exceed_census_gate honesty + EXTENDS it: (1) GROUNDED: refuses to run unless the banked rival research (knowledge/fetched/rival_*.raw, 17 sources fetched by nx_comms_rival_fetch) is on disk -- no assumed rival facts (Rule 4). (2) LIVE AXIS: reads the LAST persisted FUNCHECK line (knowledge/status/funcheck.log) and requires video_room=PASS AND video_appjs=PASS AND age<24h -- a DEAD room can NEVER score GREEN here (closes the false-GREEN the organ-on-disk census admits to). (3) PER-RIVAL PARITY: each feature row carries which rivals have it; rollup = permille of each rival's features we ALSO have, + the honest BEHIND build-list. Evidence kinds: 1=organ-on-disk 2=file-contains(pattern) 3=declared ABSENT (build target; rivals have). Controls: POS(known organ), NEG(bogus path), NEG(bogus pattern), NEG(bogus funcheck log -> UNKNOWN). expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_comms_rival_census.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 pw sys_write slen have sys_openat_rd sys_close pn sys_mmap sys_write ↻ cr_live2 sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ cr_find_eol sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real pw ↻ pn ↻ contains slen ↻ sys_mmap ↻ cr_row have ↻ filehas sys_mmap ↻ sys_read_file ↻ contains ↻ pw ↻ filehas ↻

structs

none

consts

15const K_MAGIC_8192: i64 = 8192
16const K_MAGIC_86400: i64 = 86400

functions

18func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: pwcontains
19func pw(s: *u8) -> i64 { sys_write(1,s,slen(s)); return 0 }
called by 3: cr_rowcr_live2main calls 2: sys_writeslen
20func pn(v: i64) -> i64
called by 2: cr_live2main calls 2: sys_mmapsys_write
24func have(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 {return 0} sys_close(fd); return 1 }
called by 2: cr_rowmain calls 2: sys_openat_rdsys_close
25func contains(hay: *u8, n: i64, needle: *u8) -> i64
called by 2: filehascr_live2 calls 1: slen
30func filehas(path: *u8, pat: *u8) -> i64
38func cr_row(st: *i64, name: *u8, kind: i64, path: *u8, pat: *u8, jm: i64, zm: i64, tm: i64, dm: i64, note: *u8) -> i64
called by 1: main calls 3: havefilehaspw
56func cr_find_eol(b: *u8, n: i64, st: i64) -> i64 { var i: i64=st; while i<n { if (b[i] as i64)==10 {return i} i=i+1 } return n }
called by 1: cr_live2
61func cr_live2(logpath: *u8, maxage_s: i64) -> i64
107func main() -> i64