code wiki / _hdl_build / nx_procgen_board.nx

nx_procgen_board.nx source

↩ module page · 51 lines · 5323 B

1// nx_procgen_board.nx -- serves the sovereign PROCEDURAL-GENERATION SOTA census (the Infinigen direction) as JSON 2// on MCP + /compare. Self-contained (no file deps) so it runs on the NAS as an MCP tool. HONEST by construction: 3// coverage measures the generative PRINCIPLE proven (asset-free + rule-grounded coherence + parametric diversity), 4// NOT photoreal fidelity or Infinigen breadth -- those are named GAP. Re-bake when a rung moves. 5// license_tier: ORIGINAL expect_exit: 0 6import "nx_syscalls.nx" 7const K_MAGIC_262144: i64 = 262144 8 9func ocat(o: *u8, at: i64, s: *u8) -> i64 { var i: i64=0; var a: i64=at; while s[i]!=(0 as u8){o[a]=s[i]; a=a+1; i=i+1} return a } 10func aj(jb: *u8, jo: *i64, first: *i64, name: *u8, verdict: *u8, art: *u8) -> i64 { 11 var j: i64 = jo[0] 12 if first[0] == 0 { j = ocat(jb, j, "," as *u8) } 13 first[0] = 0 14 j = ocat(jb, j, "{\x22name\x22:\x22" as *u8); j = ocat(jb, j, name) 15 j = ocat(jb, j, "\x22,\x22verdict\x22:\x22" as *u8); j = ocat(jb, j, verdict) 16 j = ocat(jb, j, "\x22,\x22artifact\x22:\x22" as *u8) 17 if (art as i64) != 0 { j = ocat(jb, j, art) } 18 j = ocat(jb, j, "\x22}" as *u8) 19 jo[0] = j 20 return 0 21} 22 23func main() -> i64 { 24 let jb: *u8 = sys_mmap(K_MAGIC_262144) 25 let jo: *i64 = sys_mmap(16) as *i64 26 let first: *i64 = sys_mmap(16) as *i64 27 first[0] = 1 28 var j: i64 = 0 29 j = ocat(jb, j, "{\x22v\x22:1,\x22domain\x22:\x22procgen\x22,\x22title\x22:\x22Sovereign Procedural Generation (Infinigen direction)\x22,\x22axes\x22:[" as *u8) 30 jo[0] = j 31 aj(jb,jo,first,"asset-free-from-rules" as *u8,"HAVE" as *u8,"knowledge/nx_procgen_terrain.png" as *u8) 32 aj(jb,jo,first,"rule-grounded-coherence" as *u8,"PARTIAL" as *u8,"knowledge/nx_procgen_terrain.png" as *u8) 33 aj(jb,jo,first,"parametric-diversity" as *u8,"HAVE" as *u8,"knowledge/nx_procgen_terrain.png" as *u8) 34 aj(jb,jo,first,"parametric-humans-canon" as *u8,"PARTIAL" as *u8,"knowledge/nx_procgen_human.png" as *u8) 35 aj(jb,jo,first,"photoreal-render" as *u8,"GAP" as *u8,0 as *u8) 36 aj(jb,jo,first,"breadth-plants-animals-weather-indoors" as *u8,"PARTIAL" as *u8,"knowledge/nx_procgen_terrain.png" as *u8) 37 aj(jb,jo,first,"ground-truth-labels" as *u8,"HAVE" as *u8,"knowledge/nx_procgen_gtlabels.png" as *u8) 38 aj(jb,jo,first,"scene-composition" as *u8,"PARTIAL" as *u8,"knowledge/nx_procgen_scene.png" as *u8) 39 j = jo[0] 40 j = ocat(jb, j, "],\x22coverage_permil\x22:575,\x22have\x22:3,\x22partial\x22:4,\x22gap\x22:1,\x22grounded\x22:8" as *u8) 41 j = ocat(jb, j, ",\x22proven_rungs\x22:[\x22terrain watershed: FBM heightfield + D8 flow-accumulation, 4169 river cells 100% flow downhill (nx_procgen_terrain_gate GREEN 4/4)\x22,\x22canon humans: 5 figures from the eye-keystone anthropometric canon, navel in the phi-band 578-618 (=1/phi), seed-diverse (nx_procgen_human_gate GREEN 4/4)\x22,\x22composed scene + per-pixel segmentation labels: hills+trees+human in one frame + a ground-truth class map, the digital-twin shape (nx_procgen_scene_gate GREEN 4/4)\x22,\x22ground-truth trio from real geometry: depth + surface-normals + semantic segmentation from one heightfield, all genuine not painted (nx_procgen_gtlabels_gate GREEN 4/4)\x22]" as *u8) 42 j = ocat(jb, j, ",\x22north_star\x22:{\x22infinigen\x22:\x22Princeton arXiv 2306.09310 -- 100% procedural, asset-free, photoreal nature; Infinigen-Indoors CVPR2024 = rooms; per-pixel ground-truth labels for CV training + digital twins\x22,\x22our_ethos\x22:\x22sovereign, deterministic, integer, no neural, no third-party -- same generative principle\x22}" as *u8) 43 j = ocat(jb, j, ",\x22honest\x22:\x22coverage 400 = the generative PRINCIPLE proven (asset-free + rule-grounded coherence + parametric diversity), NOT photoreal fidelity and NOT Infinigen breadth. Renders are a shaded-relief map + proportion mannequins (clay, same gap as /world/graphics). The distance to Infinigen: photoreal render + breadth (L-system plants, animals, weather, indoors) + ground-truth labels + full-scene composition.\x22" as *u8) 44 j = ocat(jb, j, ",\x22serves\x22:[\x22game-dev: infinite coherent seed-reproducible worlds, no asset licences\x22,\x22digital-twinning: rule-grounded environments fit parametrically to a real place\x22,\x22product-dev: parametric variation from rules, a design space not one model\x22,\x22companion: diverse humans from the anthropometric canon, no overfit to one face\x22]" as *u8) 45 j = ocat(jb, j, ",\x22existing_organs\x22:[\x22nx_worldgen\x22,\x22nx_water_erosion\x22,\x22nx_wind_erosion\x22,\x22nx_procgen_biome\x22,\x22nx_probiome\x22,\x22nx_worley_noise\x22]" as *u8) 46 j = ocat(jb, j, ",\x22fetch_targets\x22:[\x22Infinigen + Infinigen-Indoors procedural rules per domain\x22,\x22Blender geometry-node graphs (composable procedural ops)\x22,\x22L-systems + space-colonization (plants/trees)\x22,\x22hydraulic + thermal erosion (droplet & grid)\x22,\x22Wave-Function-Collapse (tiling/levels)\x22,\x22anthropometric parametric humans (eye-keystone canon)\x22,\x22ground-truth label export (depth/normal/segmentation)\x22]" as *u8) 47 j = ocat(jb, j, ",\x22evidence\x22:\x22https://nishifamily.com/world/procgen\x22,\x22debt\x22:\x22seq160\x22,\x22raci\x22:\x22Gx-procgen\x22}" as *u8) 48 sys_write(1, jb, j) 49 sys_write(1, "\n" as *u8, 1) 50 return 0 51}