code wiki / _hdl_build / nx_lang_maturity.nx
nx_lang_maturity.nx
buildroot/runtime/_hdl_build/nx_lang_maturity.nx
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
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
| 13 | const K_MAGIC_262144: i64 = 262144 |
| 14 | const K_MAGIC_262128: i64 = 262128 |
| 15 | const K_MAGIC_9999: i64 = 9999 |
| 16 | const K_MAGIC_65536: i64 = 65536 |
| 17 | const K_MAGIC_65520: i64 = 65520 |
functions
| 18 | func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 19 | func _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 } |
| 20 | func _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 } |
| 21 | func 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 |
| 22 | func lm_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 31 | func lm_has(hay: *u8, a: i64, b: i64, pat: *u8) -> i64 |
| 45 | func lm_dim(buf: *u8, a: i64, b: i64, out: *u8) -> i64 called by 1: main |
| 53 | func lm_col(buf: *u8, a: i64, b: i64, col: i64, out: *i64) -> i64 called by 1: main |
| 72 | func main(argc: i64, argv: *i64) -> i64 |