code wiki / _hdl_build / nx_census_gallery.nx

nx_census_gallery.nx

buildroot/runtime/_hdl_build/nx_census_gallery.nx

5804 B95 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic census
docsdependenciesstructsconstsfunctions

about

nx_census_gallery.nx -- SOVEREIGN visual gallery: the top-20 census as SIDE-BY-SIDE pixels (Chrome oracle | Nishi daily driver) instead of a flat TSV. The TSV stays the census's internal RECORD; this organ is the DELIVERABLE -- humans judge renders by LOOKING, with the measured numbers beside the pixels (the visual-comp law: publish metrics BESIDE the pixels, a number alone can lie). reads bench/top20/results.tsv (site, class, chrome_h, nishi_h, ratio, coarse, tight, recall) emits bench/top20/gallery.html (img src = /top20/<name>_*.png, served by the local lane) Uses `break` freely -- safe as of the 2026-07-27 sealed-terminator fix, witness-protected. exit 0 = written; fail-loud otherwise.

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_census_gallery.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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_write cg_p cg_pn2 sys_openat_rd ↻ sys_close ↻ sys_openat_wr

structs

none

consts

11const CG_MAGIC_1048576: i64 = 1048576
24const CG_CSS: *u8 = "body{background:#10151a;color:#dde5ea;font-family:system-ui,sans-serif;margin:0;padding:24px}h1{font-size:1.3em}p.k{color:#8fa1ab;max-width:70em}div.site{border:1px solid #26333a;margin:18px 0;padding:14px;background:#151c21}div.hd{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}span.nm{font-size:1.15em;font-weight:700}span.cls{color:#8fa1ab;font-family:monospace}span.rec{font-family:monospace;color:#e8b34b}div.pair{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}div.half{flex:1;min-width:320px}div.half b{display:block;color:#8fa1ab;font-size:0.8em;margin-bottom:4px;font-family:monospace}img{width:100%;border:1px solid #26333a;background:#fff}div.miss{border:1px dashed #4a5a64;color:#8fa1ab;padding:40px;text-align:center;font-family:monospace}\x00"

functions

13func cg_p(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
18func cg_pn2(dst: *u8, off: i64, sp: *u8, n: i64) -> i64
called by 1: main
26func main() -> i64