code wiki / _hdl_build / nx_papers_index.nx
nx_papers_index.nx
buildroot/runtime/_hdl_build/nx_papers_index.nx
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
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
structs
| none |
consts
| 25 | const PX_COLS: i64 = 7 |
| 26 | const PX_CAP: i64 = 262144 |
| 27 | const PX_OUT: i64 = 524288 |
| 28 | const PX_TAB: i64 = 9 |
| 29 | const PX_NL: i64 = 10 |
functions
| 31 | func px_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 32 | func px_puts(s: *u8) -> i64 { sys_write(1, s, px_len(s)); return 0 } |
| 37 | func px_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 38 | func px_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 53 | func px_app(dst: *u8, off: i64, s: *u8) -> i64 called by 1: main |
| 60 | func px_appn(dst: *u8, off: i64, src: *u8, a: i64, b: i64) -> i64 called by 1: main |
| 66 | func px_eol(buf: *u8, n: i64, i: i64) -> i64 called by 1: main |
| 75 | func px_cols(buf: *u8, ls: i64, le: i64, col: *i64) -> i64 called by 1: main |
| 96 | func px_is(buf: *u8, a: i64, b: i64, lit: *u8) -> i64 |
| 104 | func main(argc: i64, argv: *i64) -> i64 |