code wiki / _hdl_build / nx_ciaaw_foundation.nx

nx_ciaaw_foundation.nx source

↩ module page · 20 lines · 945 B

1// nx_ciaaw_foundation.nx -- FOUNDATION the ingested IUPAC/CIAAW abridged standard atomic weights page (the 2// INTERNATIONAL atomic-weights authority, upstream of NIST). Thin caller over nx_ingest_foundation: CID + 3// ed25519 signed "downloaded" provenance + lineage-walk to god. license_tier: ORIGINAL 4import "nx_syscalls.nx" 5import "nx_ingest_foundation.nx" 6 7func main() -> i64 { 8 let cid: *u8 = sys_mmap(128) 9 let ok: i64 = ingest_foundation( 10 "knowledge/fetched/ciaaw/abridged_atomic_weights.html" as *u8, 11 "https://ciaaw.org/abridged-atomic-weights.htm" as *u8, 12 "2026-06-20" as *u8, 13 "IUPAC CIAAW (Commission on Isotopic Abundances and Atomic Weights)" as *u8, 14 "knowledge/fetched/ciaaw/abridged_atomic_weights.cred" as *u8, 15 "knowledge/status/ciaaw_foundation.log" as *u8, 16 "CIAAW-FOUNDATION" as *u8, 17 cid) 18 if ok == 1 { sys_exit(0); return 0 } 19 sys_exit(1); return 1 20}