code wiki / _hdl_build / nx_library_omni_census.nx

nx_library_omni_census.nx

buildroot/runtime/_hdl_build/nx_library_omni_census.nx

8718 B81 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic library
docsdependenciesstructsconstsfunctions

about

nx_library_omni_census.nx -- GROUNDED competitor census: our sovereign library/reader vs SOTA e-readers (operator 2026-07-04: "not state of the art in loading, serving, hotkeys... i want an OMNI READER close to Kindle e-paper... lots of our systems dont confirm if the media is USABLE (broken books/comics/table-headers, videos with no thumbnail, movies with no scrub/chapters/dead-air/performance) -- flag this in research + roadmap"). SOTA grounded on repos fetched with our sovereign client (nx_ereader_sota_fetch): KOReader 27.5k, calibre 25k, readest 22k (EPUB/MOBI/AZW3/FB2/CBZ/PDF+OPDS+sync+TTS+WebDAV), foliate 8.5k (typography), Kavita 11k (annotations/ ComicInfo/OPDS), Suwayomi 7k, Kotatsu 8.7k, LANraragi 3k (thumb/list/reader-overlay/OPDS), Stump/Mango (OPDS), mokuro-reader (manga OCR overlay). OURS grounded by cx_have on the actual organ file (empty path = honest BEHIND). 3-way BEHIND/PARITY/EXCEED; liar-kill = a claimed PARITY/EXCEED with no organ on disk flips to BEHIND (mechanical honesty). Only STRUCTURAL+MEASURABLE exceeds. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_library_omni_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 sys_mmap cw sys_write cx_ax cx_have sys_openat_rd sys_close cw ↻ cx_tier cn sys_mmap ↻ cw ↻ sys_write ↻ sys_exit

structs

none

consts

13const CX_BEHIND: i64 = 0
14const CX_PARITY: i64 = 1
15const CX_EXCEED: i64 = 2

functions

17func cw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 3: cncx_axmain calls 1: sys_write
18func cn(v: i64) -> i64 { let b: *u8=sys_mmap(24); var m: i64=v; if m<0{cw("-" as *u8);m=0-m} let t: *u8=sys_mmap(24); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 }
called by 1: main calls 3: sys_mmapcwsys_write
19func cx_have(path: *u8) -> i64 { if path[0]==(0 as u8) { return 0 } let fd: i64=sys_openat_rd(path); if fd<0 {return 0} sys_close(fd); return 1 }
called by 1: cx_ax calls 2: sys_openat_rdsys_close
20func cx_tier(t: i64) -> *u8 { if t==CX_EXCEED {return "EXCEED"} if t==CX_PARITY {return "PARITY"} return "BEHIND" }
called by 1: cx_ax
23func cx_ax(label: *u8, path: *u8, claimed: i64, note: *u8, st: *i64) -> i64
called by 1: main calls 3: cx_havecwcx_tier
35func main() -> i64