code wiki / _hdl_build / nx_wiki_exceed.nx

nx_wiki_exceed.nx

buildroot/runtime/_hdl_build/nx_wiki_exceed.nx

7787 B176 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind tooltopic wiki
docsdependenciesstructsconstsfunctions

about

nx_wiki_exceed.nx -- MEASURED head-to-head of a Nishi wiki page vs the incumbent wiki engine. module: nishi-core.wiki.exceed_census capability: CORE_COMPUTE (the honest "how far is our page from a real wiki page" measurement) Per the no-wave law: an EXCEED is MEASURED per-feature, never self-graded. This organ reads knowledge/registry/wiki_feature_census.tsv (the MediaWiki/Wikipedia feature bar) and SCANS the actual rendered page for each feature's signal -> PRESENT/ABSENT, COMPUTED, not asserted. It reports how many of the incumbent's features our page has, and is HONEST that being behind is the worklist (it refuses to call a behind page an "exceed"). The wiki PAGE BUILDER climbs this census rung by rung. Sovereign: imports only nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_itoa_lib.nx nx_wiki_exceed.nx nx_wiki_exceed_gate.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nx_wiki_exceed_gate.nx

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

main we_puts sys_write sys_mmap we_measure sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close we_field_dup sys_mmap ↻ we_contains we_slen sys_exit we_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

16const WE_CENSUS: *u8 = "knowledge/registry/wiki_feature_census.tsv"
17const WE_PAGE: *u8 = "web_assets/charter.html"

functions

26func we_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
31func we_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
32func we_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } return n }
called by 1: we_contains
34func we_field_dup(b: *u8, ls: i64, le: i64, f: i64) -> *u8
called by 1: we_measure calls 1: sys_mmap
52func we_contains(hay: *u8, hn: i64, needle: *u8) -> i64
called by 1: we_measure calls 1: we_slen
72func we_measure(census_file: *u8, page_file: *u8, outs: *i64) -> i64
138func main() -> i64