code wiki / (root) / nx_slopmeter.nx

nx_slopmeter.nx

buildroot/runtime/nx_slopmeter.nx

3392 B74 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_slopmeter.nx -- CLI: measure a GENERATED artifact's self-repetition. The first instrument in this estate that reads what the generator actually produced. nx_writebench scores the registry; this scores the bytes. Both are needed and they are not substitutes. nx_slopmeter file <path> repetition + distinct-vocabulary permil for a stored generation Reports numbers, never a verdict: the cutoff between "textured" and "slop" is a policy that has to come from measurements across real generations, not from a constant typed at the keyboard. license_tier: ORIGINAL module: nishi-core.write.slopmeter.cli capability: WRITE_OUTPUT_REPETITION_MEASURE

dependencies 3 imports · 0 importers

nx_estate_path.nx nx_itoa_lib.nx nx_slopmeter_lib.nx nx_slopmeter.nx

imports: nx_estate_path.nxnx_itoa_lib.nxnx_slopmeter_lib.nx

imported by: nobody (leaf or entry point)

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

main cw sc_streq ce ep_open_rd sys_openat_rd sys_mmap ep_join sys_read sm_tokenize sm_is_wordch sm_repeat_permil sm_repeat_count sm_gram_eq sm_tok_eq tx_lower sm_distinct_permil sm_tok_eq ↻ nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write sys_munmap

structs

none

consts

20const SC_BUF_BYTES: i64 = 1048576
23const SC_TOKCAP: i64 = 16384

functions

25func cw(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 1: main
26func ce(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(2, s, n); return 0 }
called by 1: main
28func sc_streq(a: *u8, b: *u8) -> i64
called by 1: main
35func main(argc: i64, argv: *i64) -> i64