code wiki / _hdl_build / nx_comp_engine.nx
nx_comp_engine.nx
buildroot/runtime/_hdl_build/nx_comp_engine.nx
about
nx_comp_engine.nx -- the TRUE competitive comparison engine (exceeds a Gartner grid: MEASURED+SOURCED+
COMPUTED+sovereign, not analyst-opinion). Reads knowledge/registry/comp_matrix.tsv (feature rows x system
columns, system[0]=Nishi=US) and emits:
1. the feature x VENDOR TABLE (A vs B vs C vs N, one Y/P/N cell per system)
2. per-VENDOR coverage score (who leads)
3. BUY-OR-BUILD list = features WE lack (Nishi != YES) that >=1 competitor HAS -> analyst build-vs-buy
4. WHITESPACE list = features NO system has -> first-mover build targets
5. DIFFERENTIATION list = features WE have (Nishi=YES) that <=1 competitor has -> our moat
N-extensible: add a system column or a feature row to comp_matrix.tsv. Emits -> knowledge/status/comp_report.log
module: nishi-core.analyst.comp_engine
depends: nishi-core.sys.syscalls
capability: COMPETITIVE_COMPARISON_ENGINE_VS_GARTNER
license_tier: ORIGINAL
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
| 17 | const CE_MAGIC_16384: i64 = 16384 |
| 18 | const CE_MAGIC_262144: i64 = 262144 |
| 20 | const CE_REF: *u8 = "knowledge/registry/comp_matrix.tsv" |
| 21 | const CE_OUT: *u8 = "knowledge/status/comp_report.log" |
functions
| 23 | func ce_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 } |
| 28 | func ce_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 29 | func ce_wc(fd: i64, ch: i64) -> i64 { let b: *u8=sys_mmap(2); b[0]=ch as u8; b[1]=0 as u8; sys_write(fd,b,1); return 0 } |
| 30 | func ce_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 32 | func ce_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 42 | func ce_field(buf: *u8, ls: i64, le: i64, f: i64, dst: *u8, cap: i64) -> i64 called by 1: emit |
| 55 | func ce_nfields(buf: *u8, ls: i64, le: i64) -> i64 called by 1: emit |
| 63 | func ce_pad(fd: i64, s: *u8, w: i64) -> i64 |
| 71 | func ce_app(dst: *u8, off: *i64, s: *u8) -> i64 called by 1: emit |
| 81 | func emit(fd: i64, rbuf: *u8, rn: i64) -> i64 |
| 154 | func main() -> i64 |