code wiki / (root) / nx_polyglot_bench.nx

nx_polyglot_bench.nx

buildroot/runtime/nx_polyglot_bench.nx

6328 B177 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind bench
docsdependenciesstructsconstsfunctions

about

nx_polyglot_bench.nx -- head-to-head verdict against N incumbent programming languages, layered on top of nx_benchmark_harness. LAYER 3 of nishifamily.com/ide rollout. Where nx_benchmark_harness expresses 1-vs-1 ("NishiLang vs incumbent") this primitive expresses 1-vs-N ("NishiLang vs {C, Rust, Go, Python, Java, JavaScript, Erlang, Zig, Nim, OCaml, Crystal}"). Composite verdict is honest per cardinal feedback-honest-perf-verdict-no-aspirational-claims: POLYGLOT_DECISIVE_WIN NishiLang WINs every measured axis vs every competitor we ran. POLYGLOT_WIN WIN on majority of pairings; no LOSE. POLYGLOT_MIXED WIN against some, LOSE against others; named_improvement REQUIRED per LOSE row. POLYGLOT_LOSE LOSE on majority; named_improvement REQUIRED per LOSE row. POLYGLOT_DECISIVE_LOSE LOSE on every measured pairing. The named_improvement field is mandatory AND must be substrate-level (not just "tune the bench loop"). POLYGLOT_INCONCLUSIVE too many competitor runs UNMEASURABLE. genealogy_id: programming_language_benchmark_game_2003 + techempower_web_benchmarks + criterion_rs_paper_2018 + feedback-honest-perf-verdict-no-aspirational-claims lineage_id: polyglot_n_way_verdict_q10

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_benchmark_harness.nx nx_polyglot_bench.nx

imports: nx_syscalls.nxnx_tier.nxnx_benchmark_harness.nx

imported by: nobody (leaf or entry point)

structs

66struct PolyglotRun

consts

41const NX_LANG_C: nx_int = 0
42const NX_LANG_RUST: nx_int = 1
43const NX_LANG_GO: nx_int = 2
44const NX_LANG_PYTHON: nx_int = 3
45const NX_LANG_JAVA: nx_int = 4
46const NX_LANG_JAVASCRIPT: nx_int = 5
47const NX_LANG_ERLANG: nx_int = 6
48const NX_LANG_ZIG: nx_int = 7
49const NX_LANG_NIM: nx_int = 8
50const NX_LANG_OCAML: nx_int = 9
51const NX_LANG_CRYSTAL: nx_int = 10
52const NX_LANG_N: nx_int = 11
55const NX_POLYGLOT_INCONCLUSIVE: nx_int = 0
56const NX_POLYGLOT_DECISIVE_LOSE: nx_int = 1
57const NX_POLYGLOT_LOSE: nx_int = 2
58const NX_POLYGLOT_MIXED: nx_int = 3
59const NX_POLYGLOT_WIN: nx_int = 4
60const NX_POLYGLOT_DECISIVE_WIN: nx_int = 5
61const NX_POLYGLOT_N_VERDICTS: nx_int = 6

functions

89func nx_polyglot_compute(run: *PolyglotRun) -> nx_int
148func nx_polyglot_pinpoint(run: *PolyglotRun) -> nx_int
167func nx_polyglot_verdict_is_valid(v: nx_int) -> nx_int
173func nx_polyglot_lang_is_valid(l: nx_int) -> nx_int