code wiki / (root) / nx_erotica_store.nx

nx_erotica_store.nx

buildroot/runtime/nx_erotica_store.nx

4618 B38 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic erotica
docsdependenciesstructsconstsfunctions

about

nx_erotica_store.nx -- SEED the erotica craft DATA into the sovereign nx_seg_store, IDIOMATICALLY: ss_begin -> ss_add -> ss_commit (writes seg-0 + manifest, crash-safe); read back via ss_open/ss_hget. The seed data is EMBEDDED here (this organ IS the migration source-of-truth, like a DB migration's INSERTs), so there are NO loose .tsv/.list files ANYWHERE -- the STORE is the runtime source and nx_erotica_craft reads it. Operator 2026-07-01: "no tsv/logs, use our nishi ecosystem, s-class-exceed." NO 3rd-party. Data-driven at runtime (craft reads the store); the literals here are the one-time seed, tunable by editing + re-seeding. expect_exit: 0 license_tier: ORIGINAL module: nishi-core.erotica.store

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_seg_store.nx nx_erotica_store.nx

imports: nx_syscalls.nxnx_seg_store.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main es_puts sys_write ss_begin ss_begin_cap sys_mmap es_put ss_add ss_add2 ss_w32 ss_len es_slen es_puts ↻ es_num sys_mmap ↻ sys_write ↻ ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat ss_build_keys sys_mmap ↻

structs

none

consts

none

functions

11func es_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: es_putmain calls 1: sys_write
12func es_num(v: i64) -> i64 { let d: *u8=sys_mmap(24); var m: i64=v; var k: i64=0; if m==0 { d[0]=48 as u8; k=1 } while m>0 { d[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8=sys_mmap(24); var i: i64=0; while i<k { o[i]=d[k-1-i]; i=i+1 } sys_write(1,o,k); return 0 }
called by 2: es_putmain calls 2: sys_mmapsys_write
13func es_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: es_put
14func es_put(w: *i64, key: *u8, val: *u8) -> i64 { ss_add(w, 1, key, val, es_slen(val)); es_puts(" put " as *u8); es_puts(key); es_puts(" (" as *u8); es_num(es_slen(val)); es_puts("B)\n" as *u8); return 1 }
called by 1: main calls 4: ss_addes_slenes_putses_num
16func main() -> i64