code wiki / _hdl_build / nx_browser_os_census.nx

nx_browser_os_census.nx

buildroot/runtime/_hdl_build/nx_browser_os_census.nx

14144 B203 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_os_census.nx -- BROWSER-ON-ALL-OS arc, rung R0: the measured per-OS browser census. Operator (2026-07-02): "finish getting our nishi browser to s class exceed on all OSs including our future nishi os." This organ is the MEASURE for that arc (no-wave: never claim before measuring): a data-driven census of the Nishi browser per OS target -- linux-elf (nx_browser, X11/WSLg), windows-pe (nishi.exe native PE), nishios (the sovereign OS) -- where every PRESENT cell is backed by a MECHANICAL evidence probe (a real on-disk organ/artifact at a minimum size), every gap is an honest ABSENT/PLAN row that NAMES its build organ (so the census self-flips as rungs land), and a NEG control (a must-be-absent file) kills a lying census: if the negctl file exists the verdict is RED regardless of score. Emits the operator-facing UI surface (browser_os_census.html) + a status line (browser_os_census.log). The census reports permil scores; the VERDICT is about census integrity (row count parsed, negctl absent, honesty rows intact), never about whitewashing the score. NEVER-BRICK (Rule 26): reads evidence files, writes status artifacts only. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_browser_os_census.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main bc_puts sys_write bc_rows bc_slen sys_mmap bc_app sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close bc_parse_int sys_write ↻ bc_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap bc_appn bc_appd sys_mmap ↻ bc_write_file sys_openat_wr sys_write ↻ sys_close ↻ sys_exit

structs

none

consts

17const K_MAGIC_65536: i64 = 65536

functions

19func bc_puts(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 1: main calls 1: sys_write
24func bc_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
25func bc_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
28func bc_app(buf: *u8, pos: i64, s: *u8) -> i64
called by 1: main
35func bc_appn(buf: *u8, pos: i64, s: *u8, n: i64) -> i64
called by 1: main
42func bc_appd(buf: *u8, pos: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
54func bc_write_file(path: *u8, data: *u8, n: i64) -> i64
62func bc_parse_int(s: *u8, off: i64, len: i64) -> i64
called by 1: main
73func bc_rows() -> *u8
called by 1: main
77func main() -> i64