code wiki / _hdl_build / nx_eco_graph_forest.nx
nx_eco_graph_forest.nx
buildroot/runtime/_hdl_build/nx_eco_graph_forest.nx
about
nx_eco_graph_forest.nx -- THE WHOLE TREE. Renders the ENTIRE ecosystem graph (all ~16k organs, all
~42k import edges) as one generational roots-to-god raster: god/roots at the apex, every organ placed
by its longest-path-to-god generation, every import edge a ribbon converging upward. NOT a per-organ
sample (operator 2026-07-16: "you just sampled not the whole tree") -- this IS the forest. Dense
generations render as honest density bands; hubs (high Ca) get size + labels. DEFLATE PNG via nx_png.
Usage: nx_eco_graph_forest <store-prefix> <out.png> [width] license_tier: ORIGINAL expect_exit:0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_eco_graph.nxnx_raster2d_lib.nxnx_png.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
| 11 | const FO_MAGIC_20000: i64 = 20000 |
| 13 | const FO_LAYH: i64 = 190 // tall bands: the forest needs inter-generation air for 42k edge ribbons |
| 14 | const FO_DEFW: i64 = 8000 |
functions
| 16 | func foslen(s: *u8) -> i64 { var n:i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: fow |
| 17 | func fonum(v: i64) -> i64 { let b:*u8=sys_mmap(24); var m:i64=v; if m<0{sys_write(1,"-" as *u8,1);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 j:i64=0; while j<k{b[j]=t[k-1-j];j=j+1} sys_write(1,b,k); return 0 } |
| 18 | func fow(s: *u8) -> i64 { sys_write(1, s, foslen(s)); return 0 } |
| 20 | func main(argc: i64, argv: *i64) -> i64 |