code wiki / _hdl_build / nx_search_race.nx

nx_search_race.nx

buildroot/runtime/_hdl_build/nx_search_race.nx

10966 B255 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic search
docsdependenciesstructsconstsfunctions

about

nx_search_race.nx -- IM6b: THE BEAT-FTS5 SEARCH RACE (the full-text-search EXCEED measurement on the REAL unified team-log corpus). Two lanes, SAME input (pm_plan_durable.log + cap_registry_durable.log, unique non-empty lines), SAME 9-query set (6 terms + 3 ANDs) x 200 iterations, each lane self-timing ONLY its engine work: SOV lane: /tmp/nx_race_search_worker.sov.elf (chunked fsync'd commits w/ .keys+.terms/.post; handle + postings queries) FTS5 lane: python3 sqlite3 FTS5 (the incumbent full-text engine; run as an EXTERNAL COMPETITOR PROCESS, harness .py written to /tmp at runtime -- the repo stays pure NishiLang) Verdict law: numbers are MEASURED and logged win or lose; every per-query COUNT must match between lanes or the race is INVALID (correctness before speed). Exit 0 only on SOV-WINS-BOTH. Durable: infomgmt_race.log. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_search_race.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 sx_p sys_write sys_openat_rd sys_close sx_run sys_fork sys_openat_wr sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 sys_now_us sys_mmap ↻ sys_clock_gettime_mono sys_mmap ↻ sx_cat sx_catn sys_mmap ↻ sx_write_py sys_openat_wr ↻ sx_fp sys_write ↻ enumerate rd16 rd32 model_write_bar0 wr32 sys_close ↻ sx_num_after sys_openat_rd ↻ sys_mmap ↻ sys_read sys_close ↻ sys_openat_append sx_fp ↻ sx_fn nxi_fd sys_mmap ↻

structs

none

consts

20const K_MAGIC_8192: i64 = 8192
21const K_MAGIC_8000: i64 = 8000

functions

23func sx_p(s: *u8) -> i64
called by 1: main calls 1: sys_write
30func sx_fp(fd: i64, s: *u8) -> i64
called by 2: sx_write_pymain calls 1: sys_write
41func sx_fn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 1: main calls 1: nxi_fd
43func sx_cat(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
49func sx_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
61func sx_run(path: *u8, a1: *u8, a2: *u8, a3: *u8, outpath: *u8) -> i64
85func sx_num_after(path: *u8, pat: *u8) -> i64
123func sx_write_py(path: *u8) -> i64
161func main() -> i64