code wiki / _hdl_build / nx_papers_index.nx

nx_papers_index.nx

buildroot/runtime/_hdl_build/nx_papers_index.nx

10668 B194 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_papers_index.nx -- the Research Repository landing page, COMPILED FROM A REGISTRY (F1130). ★WHAT CHANGED AND WHY. This organ used to emit the index with one hardcoded paper_row() call per paper, baked into the source. That is a rule-11 violation (data belongs in data, not code): the list went stale on 2026-06-17, and adding a paper meant editing and recompiling an organ. It also linked every paper into /wiki/, which is AUTH-GATED -- so the "public research repository" was not publicly readable at all, and nothing that lives only behind a login is citable. Now: rows come from a TSV registry and each row declares its own ACCESS. Adding a paper is a data edit. Internal papers are listed honestly as access-controlled rather than rendered as links that a reader cannot follow. nx_papers_index <registry.tsv> <out.html> registry row: id \t access(public|internal) \t href \t title \t abstract \t result \t gates FAIL-CLOSED: an unreadable or empty registry REFUSES (exit 3) rather than emitting an empty repository page -- a page saying "no papers" is indistinguishable from a broken read, and silently publishing one would erase the repository. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_papers_index.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 px_puts sys_write px_len sys_exit sys_mmap px_read sys_openat_rd sys_read sys_close px_app px_eol px_cols px_is px_len ↻ px_appn sys_openat_wr sys_write ↻ sys_close ↻ px_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

25const PX_COLS: i64 = 7
26const PX_CAP: i64 = 262144
27const PX_OUT: i64 = 524288
28const PX_TAB: i64 = 9
29const PX_NL: i64 = 10

functions

31func px_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: px_putspx_is
32func px_puts(s: *u8) -> i64 { sys_write(1, s, px_len(s)); return 0 }
called by 1: main calls 2: sys_writepx_len
37func px_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
38func px_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
53func px_app(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
60func px_appn(dst: *u8, off: i64, src: *u8, a: i64, b: i64) -> i64
called by 1: main
66func px_eol(buf: *u8, n: i64, i: i64) -> i64
called by 1: main
75func px_cols(buf: *u8, ls: i64, le: i64, col: *i64) -> i64
called by 1: main
96func px_is(buf: *u8, a: i64, b: i64, lit: *u8) -> i64
called by 1: main calls 1: px_len
104func main(argc: i64, argv: *i64) -> i64