code wiki / _hdl_build / nx_lang_maturity.nx

nx_lang_maturity.nx

buildroot/runtime/_hdl_build/nx_lang_maturity.nx

6314 B132 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic lang
docsdependenciesstructsconstsfunctions

about

nx_lang_maturity.nx -- the NISHI-LANG S-CLASS-EXCEED meter (operator: feedback on how the LANGUAGE reaches S-class-exceed, tracked not asserted). Reads lang_panel.tsv (dimension verdicts vs C/Rust/Elm/Java) + lang_lint landmine count, scores a maturity permil, and NAMES the lowest dimensions = the ranked climb. Design-intelligence: the EXCEED dims are the MOAT (keep them); the path is converting the closeable BELOW dims to PARITY/EXCEED via SOVEREIGN-NATIVE answers, not copying incumbents. verdict score: EXCEED=1000 PARITY=600 BELOW=300 GAP=100 maturity_permil = avg(dim scores); landmine_count from lang_lint (ergonomic debt) S-CLASS-EXCEED-as-a-language = maturity>=850 WITH all EXCEED dims held + landmines=0 Durable: LANGMAT row + the lowest 3 dims -> knowledge/status/lang_maturity.log. Exit 0 = measured. argv[1]=panel override. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_lang_maturity.nx

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

main _p sys_write sys_mmap lm_read sys_openat_rd sys_read sys_close sys_exit sys_openat_append lm_col lm_has lm_len lm_dim _fp sys_write ↻ _fn sys_mmap ↻ sys_write ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sys_close ↻

structs

none

consts

13const K_MAGIC_262144: i64 = 262144
14const K_MAGIC_262128: i64 = 262128
15const K_MAGIC_9999: i64 = 9999
16const K_MAGIC_65536: i64 = 65536
17const K_MAGIC_65520: i64 = 65520

functions

18func _p(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
19func _fp(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 }
called by 1: main calls 1: sys_write
20func _fn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
21func lm_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: lm_has
22func lm_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
31func lm_has(hay: *u8, a: i64, b: i64, pat: *u8) -> i64
called by 1: main calls 1: lm_len
45func lm_dim(buf: *u8, a: i64, b: i64, out: *u8) -> i64
called by 1: main
53func lm_col(buf: *u8, a: i64, b: i64, col: i64, out: *i64) -> i64
called by 1: main
72func main(argc: i64, argv: *i64) -> i64