code wiki / (root) / nx_jargon.nx

nx_jargon.nx

buildroot/runtime/nx_jargon.nx

13921 B305 linesdepth 3pulls 4 transitivereach 3 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_jargon.nx -- substrate-native terminology bridge. Per BRIDGEWORK_DOCTRINE: substrate lets a NEWCOMER and an EXPERT talk about the same concept in their own language. Per discipline + per audience tier. Cross-discipline aliasing first-class. Three sealed enums: Discipline: MATH / PHYSICS / CS / STATS / ENGINEERING / BIOLOGY / ECONOMICS / LINGUISTICS / CHEMISTRY Tier: BEGINNER / INTERMEDIATE / EXPERT Form: DEFINITION / METAPHOR / EXAMPLE / FORMULA / CITATION genealogy_id: feynman_lecturing + popper_clarity + accessibility_research lineage_id: terminology_bridge + translation_layer axioms: NX_AX_LOGIC_IDENTITY (definition equals concept itself)

dependencies 2 imports · 3 importers

syscalls.nx nx_axioms.nx nx_jargon.nx nx_help.nx nx_help_test.nx nx_jargon_test.nx

imports: syscalls.nxnx_axioms.nx

imported by: nx_help.nxnx_help_test.nxnx_jargon_test.nx

structs

54struct JargonEntry
67struct JargonDb

consts

28const NX_DISC_MATH: i64 = 0
29const NX_DISC_PHYSICS: i64 = 1
30const NX_DISC_CS: i64 = 2
31const NX_DISC_STATS: i64 = 3
32const NX_DISC_ENGINEERING: i64 = 4
33const NX_DISC_BIOLOGY: i64 = 5
34const NX_DISC_ECONOMICS: i64 = 6
35const NX_DISC_LINGUISTICS: i64 = 7
36const NX_DISC_CHEMISTRY: i64 = 8
40const NX_TIER_BEGINNER: i64 = 0 // 12-year-old can follow
41const NX_TIER_INTERMEDIATE: i64 = 1 // undergraduate
42const NX_TIER_EXPERT: i64 = 2 // PhD-level
46const NX_FORM_DEFINITION: i64 = 0
47const NX_FORM_METAPHOR: i64 = 1
48const NX_FORM_EXAMPLE: i64 = 2
49const NX_FORM_FORMULA: i64 = 3
50const NX_FORM_CITATION: i64 = 4
65const NX_JARGON_ENTRY_BYTES: i64 = 64
73const NX_JARGON_MAX_ENTRIES: i64 = 4096

functions

75func nx_jargon_db_alloc() -> *JargonDb
called by 2: mainmain
84func nx_jargon_entry_at(db: *JargonDb, i: i64) -> *JargonEntry
89func nx_jargon_add(db: *JargonDb, term: *u8, discipline: i64, tier: i64,
107func nx_jargon_str_eq(a: *u8, b: *u8) -> i64
called by 1: nx_jargon_lookup
119func nx_jargon_lookup(db: *JargonDb, term: *u8, discipline: i64, tier: i64) -> i64
135func nx_jargon_explain(db: *JargonDb, term: *u8, discipline: i64, tier: i64) -> *u8
144func nx_jargon_audit_tier_count(db: *JargonDb, term: *u8, discipline: i64) -> i64
called by 1: main calls 1: nx_jargon_lookup
155func nx_jargon_count_by_discipline(db: *JargonDb, discipline: i64) -> i64
called by 1: main calls 1: nx_jargon_entry_at
167func nx_jargon_count_by_tier(db: *JargonDb, tier: i64) -> i64
called by 1: main calls 1: nx_jargon_entry_at
183func nx_jargon_seed_corpus(db: *JargonDb) -> i64
called by 2: mainmain calls 1: nx_jargon_add