.ml
2 claimants
2 primary
0 secondary
shared primary (2)
SWH popularity
Distinct files in the full Software Heritage archive (2026-06-04 export), dated by first appearance, following Desmazières, Di Cosmo, Lorentz (MSR 2025). Case-aggregated. citation.
6.6M
total files
2.4M
first seen 2021–2025 (36.8%)
2019
median year (half its files since)
Case variants in archive: .ml (6.5M), .ML (128.2K), .mL (3), .Ml (2) — aggregated above.
Attribution status
This extension is attributed to OCaml; Standard ML as primary by 4 authoritative claims.
Claimants (4)
Languages that list
.ml among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| OCaml | linguist | primary |
| OCaml | pygments | primary |
| OCaml | wikidata | primary |
| Standard ML | linguist | primary |
Wikidata says… (3)
File formats, image formats, audio codecs and other non-PL
entities that claim
.ml on Wikidata
(property P1195) or in the Wikipedia infobox.
Source: data/derived/external_extension_index.csv.
Click Use as new PL on any row to open the
Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata
URL, and this extension — one submission creates the PL + claim.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| Musicline module Q105862249 file format | file format | — | audio/x-mod | — | Use as new PL ↗ |
| MyLifeOrganized data Q105863647 file format | file format | — | — | — | Use as new PL ↗ |
| OCaml source code file Q126951749 file format | file format | — | text/x-ocaml | — | Use as new PL ↗ |
Disambiguation rules (2)
Linguist heuristics that decide, by content, which language a
.ml file actually is.| Rule | Predicts | Kind | Predicates (truncated) | Measured on SWH |
|---|---|---|---|---|
h/linguist/.ml/0 | OCaml | predicates | [{"kind": "any", "regexes": ["(^\\s*module)|let rec |match\\s+(\\S+\\s)+with"]}] | |
h/linguist/.ml/1 | Standard ML | predicates | [{"kind": "any", "regexes": ["=> |case\\s+(\\S+\\s)+of"]}] |
SWH-mined examples (0)
No archived examples for .ml in our local mirror yet.