code wiki / (root) / nx_diora_live_serp.nx

nx_diora_live_serp.nx

buildroot/runtime/nx_diora_live_serp.nx

13940 B259 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind tooltopic diora
docsdependenciesstructsconstsfunctions

about

nx_diora_live_serp.nx -- SREACH R1+: a LIVE, RANKED, CLICKABLE search results page produced by OUR OWN engine. Guarded-crawls a scaled set of real Diora sources (each fetch a deadline-bounded child via nx_guarded_run -> hang-proof), extracts text (our html->text), indexes (our inverted index), scores each doc for "diora baird" (tf), RANKS, prints a gate summary to stdout, and WRITES a self-contained clickable HTML SERP to knowledge/diora_live_serp.html so the operator sees what our engine actually reached -- not a handed corpus, never faked. Reach into the independent long-tail that ad-funded / state-aligned engines suppress is the point (Memex-class, uncensored, content-neutral). prereq: /tmp/_dlr_fetch_one.sov.elf (nx_sov_build_run _dlr_fetch_one)

dependencies 7 imports · 0 importers

nx_str.nx nx_syscalls.nx nx_guarded_run.nx nx_bm25.nx nx_search_inverted.nx nx_source_tier.nx nx_rank_fused.nx nx_diora_live_serp.nx

imports: nx_str.nxnx_syscalls.nxnx_guarded_run.nxnx_bm25.nxnx_search_inverted.nxnx_source_tier.nxnx_rank_fused.nx

imported by: nobody (leaf or entry point)

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

main gp sys_write nx_str_len sys_mmap sys_openat_wr nx_inv_new ls_url ls_out nx_guarded_run sys_fork sys_dup3 sys_execve sys_exit sys_mmap ↻ sys_now_ms sys_mmap ↻ sys_clock_gettime_mono sys_wait4 nx_kill sys_sleep_ms sys_mmap ↻ sys_munmap read_all sys_openat_rd sys_read sys_close nx_inv_index_row nx_inv_is_token_char nx_inv_hash_bytes_lower nx_inv_add_posting nx_inv_count_token nx_inv_slot_at nx_inv_slot_hash nx_inv_slot_set_hash nx_inv_slot_set_postings_c nx_inv_slot_postings_count gn sys_write ↻ sys_mmap ↻

structs

none

consts

18const NX_MAGIC_524288: i64 = 524288
19const NX_MAGIC_1000000: i64 = 1000000
20const NX_MAGIC_131072: i64 = 131072
22const NX_LS_SEEDS: i64 = 8
23const NX_LS_DEADLINE: i64 = 18000
24const NX_LS_GATE_MIN: i64 = 3

functions

26func gp(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 }
called by 1: main calls 2: sys_writenx_str_len
27func gn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
39func ls_url(e: i64) -> *u8
called by 1: main
50func ls_title(e: i64) -> *u8
61func ls_facet(e: i64) -> *u8
73func ls_mainstream(e: i64) -> i64
called by 1: main
77func ls_out(e: i64) -> *u8
89func read_all(path: *u8, buf: *u8, cap: i64) -> i64
104func bs(buf: *u8, cur: *i64, s: *u8) -> i64
109func bn(buf: *u8, cur: *i64, v: i64) -> i64
118func ls_tier_name(t: i64) -> *u8
127func main() -> i64