nx_oscompete_research.nx source
↩ module page · 27 lines · 1788 B
1// nx_oscompete_research.nx -- THIN structured OS-COMPETE research source organ (Nishi spore vs Puppy/Ubuntu/macOS/
2// Windows). COMPOSES nx_research_engine (shared fetch->extract->bank); declares sources under descriptive SECTIONS,
3// NO copy-pasted fetch loop. Supersedes nx_os_compete_research_fetch (the copy-pasted organ). expect_exit: 0 license_tier: ORIGINAL
4import "nx_research_engine.nx"
5const K_MAGIC_8388608: i64 = 8388608
6
7func main() -> i64 {
8 let store: *TrustStore = rf_init()
9 if (store as i64) == 0 { rf_puts("oscompete: trust store load failed\n" as *u8); return 1 }
10 rf_puts("CA roots="); rf_putn(trust_store_count(store)); rf_puts(" -- OS-COMPETE research -> Library\n" as *u8)
11 let cap: i64 = K_MAGIC_8388608
12 let out: *u8 = sys_mmap(cap)
13 var ok: i64 = 0
14
15 rf_section("the size benchmark (small distros -- our spore/seed competes here)" as *u8)
16 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Puppy_Linux" as *u8, "oc_puppy" as *u8, store, out, cap)
17 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Lightweight_Linux_distribution" as *u8, "oc_lightweight" as *u8, store, out, cap)
18 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Live_CD" as *u8, "oc_livecd" as *u8, store, out, cap)
19
20 rf_section("the mainstream OSes to climb" as *u8)
21 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Ubuntu" as *u8, "oc_ubuntu" as *u8, store, out, cap)
22 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/MacOS" as *u8, "oc_macos" as *u8, store, out, cap)
23 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Microsoft_Windows" as *u8, "oc_windows" as *u8, store, out, cap)
24
25 rf_puts("OSCOMPETE BANKED: "); rf_putn(ok); rf_puts(" / 6 (run nx_library_harvest_v2 to index)\n" as *u8)
26 return 0
27}