code wiki / _hdl_build / nx_mcclone_harvest_census.nx

nx_mcclone_harvest_census.nx source

↩ module page · 71 lines · 5617 B

1// nx_mcclone_harvest_census.nx -- SURVEY the minecraftclone (nishi-engine, WebGPU) for everything worth 2// bringing into the sovereign game ecosystem (operator: "you haven't brought over all the good from our 3// minecraftclone work and censused/surveyed to upgrade our game ecosystem"). Grounded in the 2026-07-02 deep 4// recon of C:\Users\elder\nishi-engine (apps/minecraft 5362-line WebGPU engine + packages). Each asset row = 5// HARVESTED (in the sovereign stack NOW, evidence named) / PORTABLE (concrete port path, next rungs) / 6// ROADMAP (real but far). LIAR-KILL: a fabricated asset must NOT grade HARVESTED. expect_exit:0 ORIGINAL 7import "nx_syscalls.nx" 8 9func cw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } 10func cn(v: i64) -> i64 { 11 let b: *u8 = sys_mmap(32) as *u8 12 var x: i64 = v 13 var i: i64 = 31 14 if x == 0 { b[i] = 48 as u8; i = i - 1 } 15 while x > 0 { b[i] = (48 + x % 10) as u8; x = x / 10; i = i - 1 } 16 sys_write(1, (b as i64 + i + 1) as *u8, 31 - i) 17 return 0 18} 19func gs(g: i64) -> *u8 { 20 if g == 2 { return "HARVESTED" as *u8 } 21 if g == 1 { return "PORTABLE " as *u8 } 22 return "ROADMAP " as *u8 23} 24func row(t: *i64, asset: *u8, g: i64, ev: *u8) -> i64 { 25 cw(" ["); cw(gs(g)); cw("] "); cw(asset); cw(" -> "); cw(ev); cw("\n" as *u8) 26 t[g] = t[g] + 1 27 return 0 28} 29 30func main() -> i64 { 31 let t: *i64 = sys_mmap(8 * 8) as *i64 32 cw("=== nx_mcclone_harvest_census -- what the minecraftclone gives the sovereign ecosystem (recon-grounded) ===\n" as *u8) 33 34 cw("-- DATA (directly liftable: nishi-engine authors content as .nx data files) --\n" as *u8) 35 row(t, "block VOCABULARY (22 ids: ores/cobble/planks...) " as *u8, 2, "voxel-blocks/blocks.nx -> mineworld data pack K_COBBLE..K_DARKWOOD + ST_ORE + underground VEINS (2026-07-03)" as *u8) 36 row(t, "block predicates (transparent/solid as data fns) " as *u8, 1, "blocks.nx is_block_transparent/solid -> our registry needs a flags field (transparency = the glass/water rung)" as *u8) 37 row(t, "biome VOCABULARY (12 Whittaker + 6 cave biomes) " as *u8, 1, "worldgen/biomes.nx + whittaker classification -> worldgen-as-data rung (our 4 biomes are a subset)" as *u8) 38 row(t, "tool tiers + hardness matrix (HAND..NETHERITE) " as *u8, 1, "apps/minecraft tool_tier.nx pure fns -> needs mining-time logic + hotbar first" as *u8) 39 row(t, "loot tables / mobs / items as data " as *u8, 1, "*.nx source-of-intent files -> straight ports once entities exist in the sovereign engine" as *u8) 40 row(t, ".nx source-of-intent authoring pattern " as *u8, 2, "the SAME pattern our data-pack/mod registry now uses (blocks are data records, not const)" as *u8) 41 42 cw("-- ALGORITHMS (port-worthy engine tech) --\n" as *u8) 43 row(t, "greedy meshing + 4-corner baked AO " as *u8, 1, "voxel-mesh package (Lysenko 2012): mesh per CHUNK not per-voxel -> THE perf key for higher res/VDIST in the soft raster" as *u8) 44 row(t, "dual-channel BFS light (sky+block nibbles) " as *u8, 1, "world.ts lighting -> smooth per-vertex light = the biggest remaining visual gap vs Minecraft" as *u8) 45 row(t, "MC1.18 density/spline worldgen + temp/rain physics " as *u8, 1, "worldgen-mc118 + worldgen packages -> worldgen-params-as-data rung" as *u8) 46 row(t, "worker-pool chunk streaming (gen+mesh off-thread) " as *u8, 1, "world.ts streamAround -> browser Workers around the wasm (JS = transport only, keeps the no-logic law)" as *u8) 47 row(t, "snapshot-interpolation netcode (render at now-120ms)" as *u8, 1, "systems/multiplayer.ts -> our MP peers currently snap; interp = MP rung 2" as *u8) 48 row(t, "sand gravity / block cascade " as *u8, 1, "world.ts settle cascade -> simple sovereign port on the edit table" as *u8) 49 50 cw("-- POLISH / PRODUCT (user-facing lessons) --\n" as *u8) 51 row(t, "fullscreen + viewport-filling canvas " as *u8, 2, "mineworld pages now 100vw/vh object-fit + G fullscreen toggle (2026-07-03)" as *u8) 52 row(t, "ACES tonemap + bloom + FXAA post chain " as *u8, 0, "WGSL post passes -- soft-raster port is real work; the WebGPU lane keeps this" as *u8) 53 row(t, "real-time shadows (BUILT, stubbed off in WGSL) " as *u8, 0, "chunk.wgsl sampleShadow->1.0 over a Firefox bug -- the WebGPU lane's FREE reclaim, not portable to soft raster cheaply" as *u8) 54 row(t, "~55 gameplay systems (villages/factions/quests...) " as *u8, 0, "src/systems/ -- the long gameplay ladder; port INTO the data+logic architecture as data-driven systems" as *u8) 55 56 // liar-kill: fabricated asset must NOT be HARVESTED 57 let before: i64 = t[2] 58 row(t, "Nanite virtualized geometry (FABRICATED control) " as *u8, 0, "we have nothing like it -- must stay ROADMAP/absent or this census is a rubber stamp" as *u8) 59 var liar_ok: i64 = 0 60 if t[2] == before { liar_ok = 1 } 61 62 cw("--- TALLY ---\n" as *u8) 63 cw(" HARVESTED=" as *u8); cn(t[2]); cw(" PORTABLE=" as *u8); cn(t[1]); cw(" ROADMAP=" as *u8); cn(t[0]); cw("\n" as *u8) 64 cw(" liar-kill: " as *u8) 65 if liar_ok == 1 { cw("YES\n" as *u8) } else { cw("NO -- INVALID\n" as *u8) } 66 cw("VERDICT: the minecraftclone is a HARVEST FIELD, not a rival -- its data files ARE our pack format's\n" as *u8) 67 cw(" native tongue. Highest-value next ports: greedy-mesh+AO (perf key) > BFS smooth light (visual key)\n" as *u8) 68 cw(" > biome/worldgen data > tool tiers + hotbar > snapshot-interp MP.\n" as *u8) 69 if liar_ok == 1 { return 0 } 70 return 1 71}