code wiki / (root) / nx_lib_gbif_bulk.nx

nx_lib_gbif_bulk.nx

buildroot/runtime/nx_lib_gbif_bulk.nx

2370 B47 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind tooltopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_gbif_bulk.nx -- SCALE: ingest the full GBIF bulk taxonomy (~16K taxa) from disk into nx_lib_store, index it, and run full-text searches over the whole real catalog. Proves the sovereign library at scale on real data.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_lib_gbif.nx nx_lib_index.nx nx_lib_gbif_bulk.nx

imports: nx_syscalls.nxnx_lib_gbif.nxnx_lib_index.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close bp_puts sys_write bp_putn sys_mmap ↻ sys_write ↻ nx_lib_gbif_ingest_buf nx_lib_store_bulk_begin sys_mmap ↻ ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_scan_seglist ss_len sys_mmap ↻ ss_cat ss_readall ss_r32 ss_begin ss_begin_cap sys_mmap ↻ oa_str oa_find oa_isws oa_hex oa_utf8 oa_num oa_find ↻ oa_isws ↻ gb_year

structs

none

consts

7const K_MAGIC_1048576: i64 = 1048576

functions

9func bp_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: bp_hitsmain calls 1: sys_write
10func bp_wr(p: *u8, n: i64) -> i64 { sys_write(1, p, n); return 0 }
called by 1: main calls 1: sys_write
11func bp_putn(v: i64) -> i64
called by 2: bp_hitsmain calls 2: sys_mmapsys_write
18func bp_hits(out: *u8, n: i64) -> i64
called by 1: main calls 2: bp_putsbp_putn
25func main() -> i64