nx_polyglot_bench.nx
buildroot/runtime/nx_polyglot_bench.nx
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
imports: nx_syscalls.nxnx_tier.nxnx_benchmark_harness.nx
imported by: nobody (leaf or entry point)
structs
| 66 | struct PolyglotRun |
consts
| 41 | const NX_LANG_C: nx_int = 0 |
| 42 | const NX_LANG_RUST: nx_int = 1 |
| 43 | const NX_LANG_GO: nx_int = 2 |
| 44 | const NX_LANG_PYTHON: nx_int = 3 |
| 45 | const NX_LANG_JAVA: nx_int = 4 |
| 46 | const NX_LANG_JAVASCRIPT: nx_int = 5 |
| 47 | const NX_LANG_ERLANG: nx_int = 6 |
| 48 | const NX_LANG_ZIG: nx_int = 7 |
| 49 | const NX_LANG_NIM: nx_int = 8 |
| 50 | const NX_LANG_OCAML: nx_int = 9 |
| 51 | const NX_LANG_CRYSTAL: nx_int = 10 |
| 52 | const NX_LANG_N: nx_int = 11 |
| 55 | const NX_POLYGLOT_INCONCLUSIVE: nx_int = 0 |
| 56 | const NX_POLYGLOT_DECISIVE_LOSE: nx_int = 1 |
| 57 | const NX_POLYGLOT_LOSE: nx_int = 2 |
| 58 | const NX_POLYGLOT_MIXED: nx_int = 3 |
| 59 | const NX_POLYGLOT_WIN: nx_int = 4 |
| 60 | const NX_POLYGLOT_DECISIVE_WIN: nx_int = 5 |
| 61 | const NX_POLYGLOT_N_VERDICTS: nx_int = 6 |
functions
| 89 | func nx_polyglot_compute(run: *PolyglotRun) -> nx_int |
| 148 | func nx_polyglot_pinpoint(run: *PolyglotRun) -> nx_int |
| 167 | func nx_polyglot_verdict_is_valid(v: nx_int) -> nx_int |
| 173 | func nx_polyglot_lang_is_valid(l: nx_int) -> nx_int |