nx_swcompare_gapmap.nx
buildroot/runtime/nx_swcompare_gapmap.nx
about
nx_swcompare_gapmap.nx -- the GENERATIVE gap-finder of Nishi Compare, DOMAIN-PARAMETERIZED. Given a <domain>, it
reads knowledge/compare/<domain>.q (to learn the researcher-banked frontier corpus file names) + knowledge/
compare/<domain>.axes (label|organ-path|symbol|frontier-keywords, plus an optional "@title <text>" line) -> for
each axis measures OUR presence (symbol on disk, mechanical) x FRONTIER MOMENTUM (keyword count over the banked
2024-2026 corpus) -> classifies OPPORTUNITY (absent+hot = where to test/research), COVERED (present), dormant.
A NEW domain = a new .q + .axes pair; ZERO new code. Modes: `nx_swcompare_gapmap <domain>` = console + liar-kill
(gate); `nx_swcompare_gapmap <domain> html` = emit the /compare/<domain>/frontier page.
NOTE: no '#'/'!' in string literals (nx_cc trap). license_tier: ORIGINAL expect_exit:0
dependencies 1 imports · 0 importers
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
structs
| none |
consts
| 10 | const K_MAGIC_262144: i64 = 262144 |
| 11 | const K_MAGIC_4194304: i64 = 4194304 |
| 12 | const K_MAGIC_65536: i64 = 65536 |
| 13 | const K_MAGIC_4096: i64 = 4096 |
| 14 | const K_MAGIC_1024: i64 = 1024 |
| 15 | const K_MAGIC_2048: i64 = 2048 |
| 16 | const K_MAGIC_3072: i64 = 3072 |
| 17 | const K_MAGIC_100000: i64 = 100000 |
functions
| 19 | func w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 20 | func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 } |
| 21 | func wn(fd: i64, v: i64) -> i64 |
| 27 | func streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 } called by 1: main |
| 28 | func wj(fd: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { let c: i64 = s[i] as i64; if c == 34 { wc(fd, 92); wc(fd, 34) } else { if c == 92 { wc(fd, 92); wc(fd, 92) } else { if c < 32 { wc(fd, 32) } else { wc(fd, c) } } } i = i + 1 } return 0 } |
| 29 | func pj3(dst: *u8, a: *u8, b: *u8, c: *u8) -> i64 |
| 36 | func c_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 42 | func c_has(buf: *u8, n: i64, needle: *u8) -> i64 called by 1: c_file_has |
| 49 | func c_file_has(path: *u8, needle: *u8, buf: *u8, cap: i64) -> i64 |
| 53 | func c_count(buf: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 64 | func load_append(dst: *u8, off: i64, cap: i64, path: *u8) -> i64 |
| 71 | func load_corpus_from_q(FRONT: *u8, fcap: i64, qpath: *u8, qb: *u8, qcap: i64) -> i64 |
| 95 | func main(argc: i64, argv: *i64) -> i64 |