code wiki / (root) / nx_unsloth_ui_benchmark_census.nx

nx_unsloth_ui_benchmark_census.nx

buildroot/runtime/nx_unsloth_ui_benchmark_census.nx

5237 B58 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind benchtopic unsloth
docsdependenciesstructsconstsfunctions

about

nx_unsloth_ui_benchmark_census.nx -- extend the Unsloth benchmark to the UI/FRONTEND layer (operator: "it has a ui we can evaluate against too not just backend"). Unsloth Studio UI = mature no-code web app (train/run/export buttons, chat, dataset builder), polished, broad. Nishi sovereign frontend (REAL, verified in _hdl_build): nx_nishi_embed = sovereign Web Component (Shadow-DOM isolated, capability-scoped, zero-dep, no-tracker) with a MEASURED census nx_embed_exceed (vs iframe); nx_nishi_desktop = data-driven dashboard. Honest split: Unsloth wins the polished no-code PRODUCT UI; Nishi exceeds on the COMPONENT / sovereignty level (isolation, zero-dep, no-tracker -- measured). Per the laws: concede where they win, exceed only where measurable. No hw writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_unsloth_ui_benchmark_census

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 ui_puts sys_write sys_mmap ui_p ui_num sys_mmap ↻ sys_write ↻ sys_exit

structs

none

consts

none

functions

11func ui_puts(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
12func ui_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 }
called by 1: main calls 2: sys_mmapsys_write
13func ui_p(a: *i64, i: i64) -> *u8 { return (a[i]) as *u8 }
called by 1: main
15func main() -> i64