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 librarytopic 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

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