Mojo
1 program
Added 2025-10-22T12:39:09Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: Mojo🔥, Mojo Programming Language, Mojo (programming language)
Provenance: commit 44910cb555 · authored 2025-10-22T14:39:09+02:00 · model anthropic/claude-3.5-sonnet
Merged records (3)
Sources describe this language in separate records, kept as they are. They were
joined by explicit decisions in data/curated/pl_links.csv
(concept concept/repo/Mojo); names of merged pages are listed as aliases above.
- Mojo
repo/Mojo· this page · primary · sources: llm-campaign · evidenceL-8a98cb7442same_aspl/mojo-programming-language: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30) - mojo
pl/mojo· record without its own page · sources: linguist, pldb, pygments, rosettacode · Wikipedia · Q118152673 · PLDBL-2de882b919same_aspl/mojo-programming-language: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30) - Mojo (programming language)
pl/mojo-programming-language· had its own page, merged here · sources: wikipedia · Wikipedia · Q118152673L-2de882b919same_aspl/mojo: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30)L-8a98cb7442same_asrepo/Mojo: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30)
Sources mentioning this language
7 sources · pl_id:
pl/mojoWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: · imperative (primary) · functional · generic |
|---|---|
| Typing | affine |
| Designed by | Modular Inc · Chris Lattner |
| First appeared | 2023 |
| Influenced by | Python · Cython · C · C++ · Rust · Swift · Zig · CUDA · MLIR |
| License | Mojo language: Modular Community License; Mojo standard library: Apache License 2.0 with LLVM exceptions |
| Homepage | https://mojolang.org/ |
Extensions claimed by this language
3 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.mojo | linguist | primary | 125.7K files |
.mojo | pygments | primary | 125.7K files |
.mojo | wikidata | primary | 125.7K files |
Related languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Matrix Multiplication in Mojo
Provenance: commit 44910cb555 · authored 2025-10-22T14:39:09+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
fn matmul(C: Matrix, A: Matrix, B: Matrix):
for m in range(C.rows):
for k in range(A.cols):
for n in range(C.cols):
C[m,n] += A[m,k] * B[k,n]
fn main():
let M = 128
let N = 128
let K = 128
var A = Matrix(M, K)
var B = Matrix(K, N)
var C = Matrix(M, N)
# Initialize matrices
for i in range(A.rows):
for j in range(A.cols):
A[i,j] = 1.0
for i in range(B.rows):
for j in range(B.cols):
B[i,j] = 2.0
# Perform matrix multiplication
matmul(C, A, B)
print(C[0,0])
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.mojo/0 | .mojo | predicates | [{"kind": "any", "regexes": ["^\\s*(alias|def|from|fn|import|struct|trait)\\s"]}] |