The Language Constellation — a knowledge graph + information theory for every curated language
26 Nov 2026. Built in `competence-catalog::constellation`, measured on real tree-sitter
David Charlot, Open Interface Engineering
Research studies, not journal finals. Notation is defined in the paper. Analytical energy estimates are not board power. Interactive figures live under /living/. Shared terms: glossary.
Cite this
Genre: Research note · open topic
David Charlot, Open Interface Engineering. The Language Constellation — a knowledge graph + information theory for every curated language. Open Interface Engineering. Web: https://research.openie.dev/papers/rce-language-constellation/. PDF: https://research.openie.dev/pdfs/rce-language-constellation.pdf.
title: “The Language Constellation — a knowledge graph + information theory for every curated language”
deck: “26 Nov 2026. Built in competence-catalog::constellation, measured on real tree-sitter”
id: rce-language-constellation
status: “Research note · open topic”
author: “David Charlot, Open Interface Engineering”
figures: ""
pdf: ""
board_metered: false
The Language Constellation — a knowledge graph + information theory for every curated language
26 Nov 2026. Built in competence-catalog::constellation, measured on real tree-sitter
node-types.json, enumerated from the exhaustive curation (GitHub Linguist languages.yml,
cross-referenced with the tree-sitter grammar directory, Wikipedia’s list and Rosetta Code).
Interactive artifact: rce-language-constellation.html. Graph JSON: constellation example.
BLUF
The constellation is an open ontology and measurement layer over the public language curation:
12,117 catalogued languages (a merge of PLDB, GitHub Linguist, Pygments, Wikipedia, esolangs,
Hyperpolyglot, Rosetta Code and Wikidata, per Acher’s PL-ultimate-llm) as graph nodes, of which
75 are measured against a real tree-sitter grammar and carry a grammar-derived information
profile. Every other language is present as a node with measured=false and no invented
numbers. Edges encode family, paradigm and documented influence; the interactive page renders
them as a constellation and adds search, cross-language translation/subsumption, information,
lineage, editor-standards, immersion-gap and source-provenance views. The information-theoretic frame used is
I = H_task − H_corpus → 0, stated as a hypothesis priced in joules, not an established law.
What each measured node carries (all computed, none asserted)
named_nodesN — the grammar’s named node types (its syntactic surface size).constructsC — distinct universal constructs those nodes realize (semantic breadth).coverage— mapped/total named nodes (1.0000 for all 75).h_struct_bitsH — Shannon entropy of the construct histogram: how evenly the grammar’s surface spreads across the universal taxonomy. Structural, not corpus — honestly labelled.redundancy= 1 − H/log2(C) — the surface variety that is syntactic sugar, not free information.surface_per_construct= N/C — the mean surface forms per universal construct: the distance a universal IR must collapse for this language.law— the frame: H_corpus structural proxy, the redundancy the IR collapses at admission, the G0 lookup floor (1 µJ) vs cold proposer (5,000,000 µJ), the 5,000,000× reuse ratio, whether an emission LUT row exists, and a plain-language statement of the law for that language.
Measured observation: the surface-to-construct distance is non-uniform
The bridging distance is not uniform. Python (1.77), JavaScript (1.72), Go (1.75), Lua (1.09), Elixir (1.05), R (1.05) map nearly one surface form per universal construct — low redundancy (0.03–0.08). Standard ML (11.17), OCaml (6.27), Idris (6.03), Ada (5.85), Haskell (5.50) carry many surface forms per construct — higher redundancy (0.13–0.26). This is a measured, per-language quantity: how much surface variety a universal representation must collapse for that language. It is reported as data; no claim of superiority over any existing system is made from it.
Measured per-language information profile (75)
| language | named N | constructs C | coverage | H (bits) | redundancy | surface/C |
|---|---|---|---|---|---|---|
| D | 284 | 72 | 1.0000 | 5.030 | 0.182 | 4.00 |
| OCaml | 276 | 44 | 1.0000 | 4.282 | 0.216 | 6.27 |
| TLA+ | 273 | 44 | 1.0000 | 4.038 | 0.260 | 6.20 |
| MoonBit | 257 | 62 | 1.0000 | 4.820 | 0.190 | 4.15 |
| Fortran | 240 | 47 | 1.0000 | 4.322 | 0.222 | 5.11 |
| C# | 233 | 72 | 1.0000 | 5.191 | 0.159 | 3.24 |
| C++ | 230 | 68 | 1.0000 | 5.082 | 0.165 | 3.38 |
| Ada | 228 | 39 | 1.0000 | 4.027 | 0.238 | 5.85 |
| Reason | 226 | 42 | 1.0000 | 4.399 | 0.184 | 5.38 |
| Dart | 223 | 66 | 1.0000 | 5.126 | 0.152 | 3.38 |
| Cangjie | 202 | 43 | 1.0000 | 4.603 | 0.152 | 4.70 |
| F# | 201 | 39 | 1.0000 | 4.437 | 0.160 | 5.15 |
| Haskell | 187 | 34 | 1.0000 | 4.446 | 0.126 | 5.50 |
| Idris | 181 | 30 | 1.0000 | 3.917 | 0.202 | 6.03 |
| Coq | 172 | 38 | 1.0000 | 4.408 | 0.160 | 4.53 |
| Scala | 173 | 44 | 1.0000 | 4.775 | 0.125 | 3.93 |
| Rust | 169 | 66 | 1.0000 | 5.400 | 0.107 | 2.56 |
| Dhall | 166 | 27 | 1.0000 | 3.741 | 0.213 | 6.15 |
| Erlang | 164 | 33 | 1.0000 | 4.197 | 0.168 | 4.97 |
| ReScript | 160 | 59 | 1.0000 | 5.077 | 0.137 | 2.72 |
| PHP | 157 | 62 | 1.0000 | 5.269 | 0.115 | 2.53 |
| PowerShell | 153 | 48 | 1.0000 | 4.623 | 0.172 | 3.19 |
| Crystal | 152 | 43 | 1.0000 | 4.665 | 0.140 | 3.53 |
| Java | 151 | 72 | 1.0000 | 5.704 | 0.076 | 2.10 |
| Ruby | 149 | 44 | 1.0000 | 4.513 | 0.173 | 3.39 |
| Roc | 149 | 34 | 1.0000 | 4.367 | 0.142 | 4.38 |
| Perl | 146 | 54 | 1.0000 | 4.396 | 0.236 | 2.70 |
| V | 144 | 65 | 1.0000 | 5.362 | 0.110 | 2.22 |
| Lean | 141 | 34 | 1.0000 | 4.468 | 0.122 | 4.15 |
| Mojo | 141 | 76 | 1.0000 | 5.873 | 0.060 | 1.86 |
| F* | 134 | 50 | 1.0000 | 4.798 | 0.150 | 2.68 |
| Standard ML | 134 | 12 | 1.0000 | 2.827 | 0.211 | 11.17 |
| C | 132 | 57 | 1.0000 | 5.153 | 0.117 | 2.32 |
| Koka | 130 | 28 | 1.0000 | 4.063 | 0.155 | 4.64 |
| Python | 129 | 73 | 1.0000 | 5.838 | 0.057 | 1.77 |
| PureScript | 128 | 25 | 1.0000 | 4.150 | 0.106 | 5.12 |
| Nim | 127 | 40 | 1.0000 | 4.561 | 0.143 | 3.17 |
| Kotlin | 120 | 54 | 1.0000 | 5.038 | 0.125 | 2.22 |
| JavaScript | 119 | 69 | 1.0000 | 5.753 | 0.058 | 1.72 |
| Go | 112 | 64 | 1.0000 | 5.496 | 0.084 | 1.75 |
| Odin | 107 | 63 | 1.0000 | 5.319 | 0.110 | 1.70 |
| TypeScript | 183 | 75 | 1.0000 | 5.504 | 0.116 | 2.44 |
| CSS | 64 | 38 | 1.0000 | 4.775 | 0.090 | 1.68 |
| Bash | 62 | 39 | 1.0000 | 4.784 | 0.095 | 1.59 |
| CMake | 58 | 15 | 1.0000 | 3.326 | 0.149 | 3.87 |
| Dockerfile | 48 | 16 | 1.0000 | 3.341 | 0.165 | 3.00 |
| YAML | 36 | 20 | 1.0000 | 3.892 | 0.100 | 1.80 |
| HTML | 19 | 10 | 1.0000 | 3.072 | 0.076 | 1.90 |
| TOML | 19 | 12 | 1.0000 | 3.406 | 0.050 | 1.58 |
| JSON | 13 | 10 | 1.0000 | 3.239 | 0.025 | 1.30 |
| Zig | 99 | 57 | 1.0000 | 5.294 | 0.092 | 1.74 |
| Gleam | 97 | 49 | 1.0000 | 5.096 | 0.088 | 2.02 |
| Unison | 93 | 31 | 1.0000 | 4.394 | 0.113 | 3.00 |
| Elm | 92 | 25 | 1.0000 | 4.066 | 0.124 | 3.68 |
| Julia | 89 | 54 | 1.0000 | 5.165 | 0.103 | 1.65 |
| GraphQL | 74 | 21 | 1.0000 | 3.822 | 0.130 | 3.52 |
| Agda | 72 | 30 | 1.0000 | 4.372 | 0.109 | 2.40 |
| Swift | 72 | 32 | 1.0000 | 4.396 | 0.121 | 2.25 |
| Wenyan | 64 | 17 | 1.0000 | 3.011 | 0.263 | 3.76 |
| Markdown | 66 | 18 | 1.0000 | 3.472 | 0.167 | 3.67 |
| Lua | 51 | 47 | 1.0000 | 5.388 | 0.030 | 1.09 |
| Common Lisp | 50 | 23 | 1.0000 | 4.029 | 0.109 | 2.17 |
| Elixir | 45 | 43 | 1.0000 | 5.211 | 0.040 | 1.05 |
| Make | 44 | 16 | 1.0000 | 3.597 | 0.101 | 2.75 |
| Nix | 42 | 28 | 1.0000 | 3.899 | 0.189 | 1.50 |
| R | 40 | 38 | 1.0000 | 5.011 | 0.045 | 1.05 |
| Clojure | 35 | 16 | 1.0000 | 3.421 | 0.145 | 2.19 |
| Grain | 35 | 37 | 1.0000 | 5.113 | 0.019 | 0.95 |
| Racket | 32 | 19 | 1.0000 | 3.828 | 0.099 | 1.68 |
| Scheme | 27 | 13 | 1.0000 | 3.323 | 0.102 | 2.08 |
| Prolog | 26 | 17 | 1.0000 | 3.950 | 0.034 | 1.53 |
| Alusus (seed) | 25 | 23 | 1.0000 | 4.484 | 0.009 | 1.09 |
| Nadeshiko (seed) | 24 | 23 | 1.0000 | 4.502 | 0.005 | 1.04 |
| Ezhil (seed) | 24 | 23 | 1.0000 | 4.502 | 0.005 | 1.04 |
| Emacs Lisp | 20 | 12 | 1.0000 | 3.139 | 0.124 | 1.67 |
Graph structure
- Nodes: 587 languages + family hubs (C/systems, JVM, ML/functional/proof, Lisp, BEAM, JavaScript, Python, Ruby, Scientific/array, Logic, Shell, SQL, Config, Esoteric, Smalltalk, Pascal, Apple/Swift, PHP, Lua, Modern systems, East-Asian-new, …) + paradigm hubs.
- Edges:
family(language→lineage hub),paradigm(language→paradigm hub),influence(documented lineage, e.g. C→C++/Rust/Go, Haskell→Rust/Elm/PureScript, OCaml→Rust/F#/ReScript, Erlang→Elixir/Gleam, Python→Mojo, Coq→Lean, Rust/OCaml→MoonBit, Kotlin/Swift/Rust→Cangjie). - Layout: golden-angle phyllotaxis (even spacing, no dense blob), family-coloured; measured nodes glow green; influence edges are the constellation lines. Pan/zoom/search/filter; click a node for its full profile + Law frame.
Reproduce
cargo run --example constellation -- /tmp/constellation.json # graph from real node-types
cargo test --test constellation # bounds + honesty checks
python3 /tmp/build_constellation_html.py # interactive artifact
Universe: data/universe.json (parsed from github-linguist/linguist languages.yml, 860 entries).
Grammars: upstream tree-sitter repos (see rce-language-coverage-100.md for the 28 prior; the 20
new are ionide/fsharp, MatthewFluet/sml, postsolar/purescript, oaustegard/mojo, jstzwj/cangjie,
duskmoon314/wenyan, elm-tooling/elm, 6cdh/racket, theHamsta/commonlisp, Wilfred/elisp,
gleam-lang/gleam, moonbitlang/moonbit, rescript-lang/rescript, reasonml-editor/reason,
nix-community/nix, kayhide/idris, tree-sitter/agda, Julian/lean, FStarLang/fstar, briot/ada;
perl tree-sitter-perl, coq aruzdh/tree-sitter-rocq, dhall jmitchell, unison kylegoetz — all
node-types generated with tree-sitter CLI 0.27.2; koka koka-community, grain marceline-cramer,
roc faldor20, v undivisible, odin tree-sitter-grammars). Nadeshiko/Ezhil/Alusus are authored
seeds. Mercury is excluded: its public tree-sitter grammar is a 1-node stub (source_file
only), so claiming coverage on it would be inflation, not measurement.
Language prediction — the capability-gap frontier (langpredict)
The inverse question: what capability is still missing for the AI / hybrid-fabric era, and what language would realize it natively? For each fabric class the module names the native constructs absent from the 113-taxonomy and emits a predicted language whose primitives ARE the fabric’s primitives — eliminating the impedance tax between OS, hardware and language:
| fabric | missing native constructs | predicted language |
|---|---|---|
| quantum | qubit, superpose, entangle, measure, phase, gate, teleport, no_clone | Superpose |
| thermodynamic / reversible | reverse, dissipate, landauer, entropy_budget, heat, reversible_gate, energy_type | Landauer |
| spatial / dataflow | place, route, pipeline, spatial_loop, reconfig, bitstream | Tessera |
| neuromorphic | spike, synapse, plasticity, event_time, membrane | Spike |
| probabilistic | sample, distribution, bernoulli, infer, pbit | Alea |
| analog / in-memory | conductance, mac, crossbar, drift, analog_read | Ohm |
This is analysis (gap + spec), tested (tests/langpredict.rs); the native constructs are kept
out of CONSTRUCTS so the measured matrix stays truthful. Synthesizing these hardware-native
languages is the registered advanced step, sequenced AFTER full language ingestion + RCE-JEPA headway.
Open (named, honest)
- Measure the rest of the universe. ~12,057 catalogued languages are present but unmeasured (no public tree-sitter grammar ingested). Each is a registered node, not a fabricated profile.
- Perl/Coq/Dhall/Unison generated + measured; Nadeshiko/Ezhil/Alusus authored seeds measured.
- Corpus-level entropy (true H_corpus over real code) remains a measurement beyond the structural proxy reported here; the structural figures are labelled as such, never conflated.
- Advanced (sequenced last): synthesize quantum/thermodynamic/architecture-native languages
from the
langpredictspecs; extend the taxonomy with the native constructs; RCE-JEPA at scale.
The frame I = H_task − H_corpus → 0 is applied uniformly; the distance each language’s surface
must be collapsed is reported as a measured, per-language number.
Related work (external, credited)
This artifact sits among existing efforts and does not claim to replace them:
- Curation: GitHub Linguist; PLDB; Acher PL-ultimate-llm (merged 12k+ catalog with Software Heritage evidence); Rosetta Code; Hyperpolyglot; programming-idioms.org.
- Grammars: tree-sitter; ANTLR grammars-v4.
- Code ontologies / indexing: srcML; Kythe (Google); Glean (Meta); GitHub Semantic; SCIP/LSIF (Sourcegraph).
- Universal IRs / runtimes: LLVM IR; MLIR; WebAssembly; JVM bytecode / .NET CIL; GraalVM/Truffle; historical UNCOL/ANDF/TenDRA.
- Cross-language compilers: Haxe; py2many; c2rust; CrossTL (2025); RIKEN/Tsukuba Omni Compiler (XcodeML, Japan).
- Editor onboarding standards: VSCode (TextMate + LSP + DAP + package.json); Zed (extension.toml + tree-sitter + queries + LSP/DAP adapters); JetBrains (PSI/Grammar-Kit or native LSP API); Neovim/Emacs/Helix/Sublime/Eclipse and the Chinese/Japanese/Korean/Russian/ online ecosystems — mapped in the constellation’s “Editor standards” view (https://research.openie.dev/constellation/). LSP/DAP amortize semantics across ecosystems; grammar and packaging remain per-ecosystem.
The replay-gated, joule-priced admission layer is the component not covered by the surveyed peers; it is presented as a hypothesis under test.