code wiki / _hdl_build / nx_natstat_optimize.nx
nx_natstat_optimize.nx
buildroot/runtime/_hdl_build/nx_natstat_optimize.nx
about
nx_natstat_optimize.nx -- THE REVERSE-JUDGE LOOP (operator: "use the evaluators in reverse to build more real
output"). Runs the corpus-grounded photoreal metric BACKWARDS as an optimizer over a real render parameter
(micro-texture amplitude): render our figure at each amp, score with ns_assess, keep the amp that MAXIMISES
the photoreal LEVEL. Proves the evaluator can steer our own engine (the same mechanism steers Z-Image). GREEN
= the search finds an amp that beats the default and the loop is deterministic. expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_natstat.nxnx_sdfrender.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
| none |
functions
| 10 | func w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 11 | func pn(v: i64) -> i64 |
| 22 | func main() -> i64 |