code wiki / (root) / nx_erotica_store.nx

nx_erotica_store.nx source

↩ module page · 38 lines · 4618 B

1// nx_erotica_store.nx -- SEED the erotica craft DATA into the sovereign nx_seg_store, IDIOMATICALLY: 2// ss_begin -> ss_add -> ss_commit (writes seg-0 + manifest, crash-safe); read back via ss_open/ss_hget. The seed 3// data is EMBEDDED here (this organ IS the migration source-of-truth, like a DB migration's INSERTs), so there are 4// NO loose .tsv/.list files ANYWHERE -- the STORE is the runtime source and nx_erotica_craft reads it. Operator 5// 2026-07-01: "no tsv/logs, use our nishi ecosystem, s-class-exceed." NO 3rd-party. Data-driven at runtime (craft 6// reads the store); the literals here are the one-time seed, tunable by editing + re-seeding. 7// expect_exit: 0 license_tier: ORIGINAL module: nishi-core.erotica.store 8import "nx_syscalls.nx" 9import "nx_seg_store.nx" 10 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 } 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 } 13func es_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } 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 } 15 16func main() -> i64 { 17 es_puts("=== EROTICA CRAFT DATA -> sovereign nx_seg_store (idiomatic ss_commit; embedded seed, NO loose files, no 3rd-party) ===\n" as *u8) 18 let w: *i64 = ss_begin() 19 var recs: i64 = 0 20 recs = recs + es_put(w, "lex:slop" as *u8, "throbbing member\nmanhood\nwomanhood\nher core\nher heat\nturgid\nengorged\nmolten\nvelvet heat\nvelvety\nlove button\npleasure center\nbundle of nerves\nnether regions\nsecret garden\nessence\nthrobbing\npulsating\nquivering\nglistening\ndripping\naching need\nexquisite\nelectric\nwaves of pleasure\nshivers down\nexplosion of\nfireworks\nsuddenly\njust then\nbegan to\nstarted to\ncould feel\nfelt herself\nfelt himself" as *u8) 21 recs = recs + es_put(w, "lex:sensory" as *u8, "warm\nheat\nsoft\nrough\nsilk\npress\ngraze\nshiver\ntrembl\npulse\nskin\ngaze\nglow\nshadow\nflush\ngleam\ncandle\nwhisper\nbreath\nsigh\nmurmur\ngasp\nhush\nheartbeat\nscent\nmusk\nperfume\nsalt\ntaste\nsweet\nsip\ntongue" as *u8) 22 recs = recs + es_put(w, "lex:emotion" as *u8, "want\nneed\nlong\nache\nyearn\ntrust\nsafe\ntender\nvulnerab\nadore\ncherish\nbelong\nclose\nafraid\nnervous\nbreathless\noverwhelm\nwonder\nmatter\nheart\nsoul\ncare\ngentle\nsure\nmean\nknew\nfelt\nremember\nalive\nhome" as *u8) 23 recs = recs + es_put(w, "lex:physical" as *u8, "hand\nfinger\nskin\nlip\nmouth\nneck\nshoulder\nhip\nthigh\nwaist\nchest\narm\nleg\nkiss\ngrip\npull\npush\narch\npress\nstroke\nclasp\ntangle\ncurl\nlean" as *u8) 24 recs = recs + es_put(w, "lex:afterglow" as *u8, "after\nlater\nsettled\nheld\nquiet\ncalm\nstill\ntangled\ndrowsy\nbreath\nafterward\nclose\nwarmth\nlinger" as *u8) 25 recs = recs + es_put(w, "lex:consent" as *u8, "are you sure\nyou sure\nnodded\nyes\nplease\nconsent\nmay i\ncan i\nis this ok\nwant this\nwant you\ntell me if\nwe can stop" as *u8) 26 recs = recs + es_put(w, "lex:displacement" as *u8, "candlelight\nwindow\ndoorway\nhallway\nfloor\nwall\nrain\ncold\nsheet\npillow\ncurtain\ntable\nclock\ndust\nair\ncorner\nceiling\nlamp\nglass\nwood\ndoorknob\nbreeze\ncotton\nlinen\nstreetlight" as *u8) 27 recs = recs + es_put(w, "lex:anticipation" as *u8, "slow\nlinger\nalmost\nnot yet\ncloser\nso long\nfound hers\nlooked at\ntraced\nheld back\nedge\nbrink\nanticipat\ntease\ngaze\nbreathless\nhesitat\ngradual" as *u8) 28 recs = recs + es_put(w, "rubric" as *u8, "emotion_ratio\t300\nsensory_density\t100\ntension_curve\t180\nsensory_displacement\t140\npacing_sentence_var\t90\nafterglow_presence\t90\nconsent_presence\t60\nslop_density\t40\nescalation_arc\t130" as *u8) 29 30 let cr: i64 = ss_commit("knowledge/erotica_craft-" as *u8, w, 0) 31 es_puts("committed " as *u8); es_num(recs); es_puts(" records -> knowledge/erotica_craft-seg-0 + manifest (ss_commit rc=" as *u8); es_num(cr); es_puts(", " as *u8); es_num(w[1]); es_puts("B)\n" as *u8) 32 if recs>=9 { if cr==0 { 33 es_puts("EROTICA-STORE GREEN (7 records COMMITTED to the sovereign seg_store; nx_erotica_craft reads via ss_open/ss_hget -- idiomatic, no loose files)\n" as *u8) 34 sys_exit(0); return 0 35 } } 36 es_puts("EROTICA-STORE RED (ss_commit failed rc above)\n" as *u8) 37 sys_exit(1); return 1 38}