code wiki / _hdl_build / nx_gen_real_gate.nx
nx_gen_real_gate.nx
buildroot/runtime/_hdl_build/nx_gen_real_gate.nx
about
nx_gen_real_gate.nx -- R3: drive the sovereign orchestrator against the REAL Elder AI sd-server
(127.0.0.1:7861, reachable from WSL2 via mirrored networking). Forks the orchestrator
(go_serve_conn) pointed at the live GPU engine, then as an HTTP client POSTs /api/generate ->
the orchestrator dispatches a real batch to the 5080, decodes/injects-GENREC/ingests/blobs each
image, and serves /img/<cid>. Blobs land in the Windows scratchpad so a real generated PNG can be
eyeballed. Asserts: 2 real images, substantial PNG bytes served. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_gen_orchestrator.nxnx_connect.nxnx_syscalls.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
| 11 | func og(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 12 | func og_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: og_find |
| 13 | func og_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){dst[o]=s[i]; o=o+1; i=i+1} return o } called by 1: main |
| 14 | func og_catb(dst: *u8, off: i64, src: *u8, n: i64) -> i64 { var o: i64=off; var i: i64=0; while i<n {dst[o]=src[i]; o=o+1; i=i+1} return o } called by 1: main |
| 15 | func og_itoa(dst: *u8, off: i64, v: i64) -> i64 { let t: *u8=sys_mmap(28); var m: i64=v; 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 o: i64=off; var q: i64=k-1; while q>=0{dst[o]=t[q];o=o+1;q=q-1} return o } |
| 16 | func og_find(buf: *u8, n: i64, needle: *u8) -> i64 |
| 23 | func og_listen(port: i64) -> i64 |
| 34 | func og_connect(port: i64) -> i64 |
| 44 | func og_freshns(prefix: *u8) -> i64 |
| 53 | func og_truncate(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd>=0 {sys_close(fd)} return 0 } |
| 54 | func og_readresp(fd: i64, resp: *u8, cap: i64) -> i64 |
| 60 | func main() -> i64 |