code wiki / _hdl_build / nx_font_pioneer_benchmark.nx
nx_font_pioneer_benchmark.nx
buildroot/runtime/_hdl_build/nx_font_pioneer_benchmark.nx
about
nx_font_pioneer_benchmark.nx -- the PIONEER FONT BENCHMARK. Composes the per-axis font-quality censuses
(each liar-killed + Chrome-grounded) into ONE honest scorecard: is our sovereign stroke font at Chrome's
professional standard, axis by axis, MEASURED? Reads the log lines the sub-censuses emit (weight ratio,
faceting toward-hexagon, baseline bounce vs Chrome, OCR legibility) -> a scorecard + HTML. This is the
"pioneer for benchmarking": run the 4 sub-censuses, then this. Honest about the axes still short of SOTA.
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
| 8 | const K_MAGIC_1048576: i64 = 1048576 |
| 9 | const K_MAGIC_1050: i64 = 1050 |
| 10 | const K_MAGIC_16384: i64 = 16384 |
functions
| 12 | func pb_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 13 | func pb_num(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} 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{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 } |
| 14 | func pb_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: pb_read_kv |
| 15 | func pb_app(buf: *u8, pos: i64, s: *u8) -> i64 { var p: i64=pos; var i: i64=0; while s[i]!=(0 as u8){buf[p]=s[i];p=p+1;i=i+1} return p } |
| 16 | func pb_appn(buf: *u8, pos: i64, v: i64) -> i64 { var p: i64=pos; var m: i64=v; if m<0{buf[p]=45 as u8;p=p+1;m=0-m} let t: *u8=sys_mmap(24); 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{buf[p]=t[k-1-i];p=p+1;i=i+1} return p } |
| 20 | func pb_read_kv(path: *u8, key: *u8) -> i64 |
| 54 | func pb_card(buf: *u8, pos: i64, axis: *u8, val: *u8, color: *u8) -> i64 |
| 62 | func main() -> i64 |