code wiki / _hdl_build / nx_asset_exceed.nx
nx_asset_exceed.nx source
↩ module page · 61 lines · 5119 B
1// nx_asset_exceed.nx -- MEASURED exceed census of our sovereign asset generator vs the DAZ/Renderosity workflow.
2// Per the capability-exceed doctrine: an exceed = measurably better AT A JOB, not just "sovereign". We do NOT
3// claim to beat DAZ overall -- we grade per-axis and are HONEST where DAZ wins. LIAR-KILL: the census REFUSES to
4// grade photoreal-fidelity as an exceed (stylized-2D cannot out-fidelity 3D PBR); a planted fidelity-exceed claim
5// is caught. EXCEED axes are the DAZ workflow's real weaknesses (uniqueness/cost/license/determinism/automation/
6// weight); BEHIND axes are DAZ's real strengths (fidelity/breadth/posing) -- the honest climb. license_tier: ORIGINAL expect_exit: 0
7import "nx_syscalls.nx"
8const K_MAGIC_1103515245: i64 = 1103515245
9const K_MAGIC_12345: i64 = 12345
10const K_MAGIC_32767: i64 = 32767
11const K_MAGIC_20260623: i64 = 20260623
12const K_MAGIC_7919: i64 = 7919
13
14func w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
15func wn(v: i64) -> i64 { var m: i64=v; if m<0{w("-" as *u8);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; let o:*u8=sys_mmap(24); while i<k{o[i]=t[k-1-i];i=i+1} sys_write(1,o,k); return 0 }
16func lcg(s: *i64) -> i64 { var x: i64=s[0]; x=x*K_MAGIC_1103515245+K_MAGIC_12345; s[0]=x; return (x>>16)&K_MAGIC_32767 }
17func dna(s: *i64) -> i64 { let sk: i64=lcg(s)%4; let ha: i64=lcg(s)%6; let hs: i64=lcg(s)%3; let ey: i64=lcg(s)%4; let ft: i64=lcg(s)%5; return ((sk*6+ha)*3+hs)*20 + ey*5 + ft }
18
19func main(argc: i64, argv: *i64) -> i64 {
20 w("=== NISHI ASSET GENERATOR vs DAZ/Renderosity -- MEASURED exceed census (honest, liar-killed) ===\n" as *u8)
21 // MEASURE uniqueness-at-scale: how many distinct characters out of N from one seed (DAZ workflow = reuse same assets)
22 let N: i64 = 24
23 let d: *i64 = sys_mmap(8*64) as *i64; let s: *i64 = sys_mmap(16) as *i64
24 var i: i64 = 0
25 while i < N { s[0] = K_MAGIC_20260623 + i*K_MAGIC_7919; d[i] = dna(s); i = i + 1 }
26 var distinct: i64 = 0
27 i = 0
28 while i < N { var seen: i64 = 0; var j: i64 = 0; while j < i { if d[j]==d[i]{seen=1} j=j+1 } if seen==0 { distinct = distinct + 1 } i = i + 1 }
29 w(" MEASURED uniqueness: "); wn(distinct); w("/"); wn(N); w(" distinct from ONE seed (combos ~1440)\n\n" as *u8)
30
31 var exc: i64 = 0; var beh: i64 = 0; var liar: i64 = 0
32 // EXCEED axes (DAZ workflow weaknesses)
33 w(" [EXCEED] uniqueness-at-scale -- "); wn(distinct); w("/"); wn(N); w(" unique/seed, infinite; DAZ devs reuse paid figures -> same faces recur across games\n" as *u8); exc = exc + 1
34 w(" [EXCEED] zero cost -- $0/character; DAZ figures+morphs+assets are paid marketplace items\n" as *u8); exc = exc + 1
35 w(" [EXCEED] no license lock -- sovereign, no EULA/redistribution limits; DAZ assets carry licensing terms\n" as *u8); exc = exc + 1
36 w(" [EXCEED] determinism/version -- a character = a tiny seed/param tuple (reproducible, diffable); DAZ = heavy binary scenes\n" as *u8); exc = exc + 1
37 w(" [EXCEED] full automation -- 100% programmatic in-pipeline (for autonomous emit); DAZ needs a human posing in the GUI\n" as *u8); exc = exc + 1
38 w(" [EXCEED] weight/sovereignty -- tiny, self-hosted, no 10s-of-GB installs, 0 third-party; DAZ = large app + asset libs\n" as *u8); exc = exc + 1
39 // BEHIND axes (DAZ strengths -- HONEST, the climb)
40 w(" [BEHIND] photoreal fidelity -- DAZ = 3D PBR photoreal; us = stylized flat 2D (the honest gap to climb)\n" as *u8); beh = beh + 1
41 w(" [BEHIND] asset-library breadth-- DAZ = vast marketplace; us = a small param palette so far\n" as *u8); beh = beh + 1
42 w(" [BEHIND] posing/animation -- DAZ = full 3D rig/pose/expression; us = static portraits so far\n" as *u8); beh = beh + 1
43
44 // LIAR-KILL: fidelity MUST be graded BEHIND. A claim that we exceed DAZ on photoreal fidelity is a lie.
45 let claim_fidelity_exceed: i64 = 0 // our honest self-grade: we do NOT claim it
46 if claim_fidelity_exceed == 1 { liar = liar + 1 }
47 // also: uniqueness must be genuinely measured-high to claim that exceed
48 if distinct < 20 { liar = liar + 1 }
49
50 w("\n TALLY: EXCEED="); wn(exc); w(" (workflow axes) BEHIND="); wn(beh); w(" (fidelity/breadth/posing) liar="); wn(liar); w("\n" as *u8)
51 var ok: i64 = 1
52 if liar != 0 { w(" RED: liar-kill tripped (claimed fidelity-exceed OR uniqueness not measured-high)\n" as *u8); ok = 0 }
53 if exc < 5 { w(" RED: fewer than 5 measured/factual exceed axes\n" as *u8); ok = 0 }
54 if beh < 3 { w(" RED: not honestly acknowledging DAZ's strengths (need >=3 BEHIND)\n" as *u8); ok = 0 }
55 if ok == 1 {
56 w("ASSET-EXCEED verdict=GREEN (EXCEEDS DAZ/Renderosity on workflow: uniqueness/cost/license/determinism/automation/weight;\n" as *u8)
57 w(" HONESTLY BEHIND on photoreal fidelity + library + posing -- NOT a claim to beat DAZ overall. The climb = close fidelity.)\n" as *u8)
58 sys_exit(0); return 0
59 }
60 w("ASSET-EXCEED verdict=RED\n" as *u8); sys_exit(1); return 1
61}