code wiki / _hdl_build / nx_js_hydrate_index_gate.nx
nx_js_hydrate_index_gate.nx
buildroot/runtime/_hdl_build/nx_js_hydrate_index_gate.nx
about
nx_js_hydrate_index_gate.nx -- CLOSES THE LOOP: a page whose INLINE JS builds content -> hydrate
(js_render_page, async-drained) -> extract text -> INDEX into a seg_store shard -> the JS-built token
is SEARCHABLE (ss_term finds it), whereas indexing the RAW static HTML does NOT. Proves hydration makes
JS content indexable/searchable -- the payoff of the whole JS-execution arc, end-to-end, HERMETIC.
license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_js_eval.nxnx_html_to_text.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
structs
| none |
consts
| none |
functions
| 11 | func r_p(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 r_pn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } 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; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8=sys_mmap(24); var q: i64=k-1; var x: i64=0; while q>=0 { o[x]=t[q]; x=x+1; q=q-1 } sys_write(1,o,x); return 0 } |
| 13 | func r_clen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 15 | func next_segid(prefix: *u8) -> i64 |
| 35 | func index_doc(prefix: *u8, key: *u8, text: *u8, tlen: i64) -> i64 |
| 43 | func term_count(prefix: *u8, term: *u8) -> i64 |
| 50 | func chk(cond: i64, name: *u8, pp: *i64, tp: *i64) -> i64 |
| 56 | func main() -> i64 |