.m

12 claimants 8 primary 3 secondary shared primary (8)

SWH popularity

From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.

46.5M
total occurrences
7.8M
since 2019 (16.7%)
1970–2023
years active

Case variants in archive: .m (46.5M), .M (26.1K) — aggregated above.

Attribution status

This extension is attributed to GNU Octave; GNU Octave; m4; Mercury; Mercury; Monkey C; Objective-C; Objective-C; Objective-C; octave; octave; Win32 Message File; Wolfram Language as primary by 13 authoritative claims.

Authoritative sources: ✓ Linguist ✓ Pygments ✓ Wikidata · Q169478 △ Wikipedia · secondary

Disagree or have a correction? Open a labelling issue.

Claimants (19)

Languages that list .m among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
GNU Octavepygmentsprimary
GNU Octavewikidataprimary
m4pygmentsprimary
Mercurylinguistprimary
Mercurywikidataprimary
Monkey Cpygmentsprimary
Objective-Clinguistprimary
Objective-Cpygmentsprimary
Objective-Cwikidataprimary
octavepygmentsprimary
octavewikidataprimary
Win32 Message Filepygmentsprimary
Wolfram Languagewikidataprimary
CMLlinguistsecondary
GNU Octavelinguistsecondary
Limbolinguistsecondary
MUFlinguistsecondary
Wolfram Languagelinguistsecondary
A+ (programming language)wikipediaproposed

Wikidata says… (9)

File formats, image formats, audio codecs and other non-PL entities that claim .m 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.
Right entry isn't listed? Add manually ↗
FormatClass (Wikidata P31)Suggested labelMIMENotesAction
Desktop Color Separation Q28205883
file format
file formatUse as new PL ↗
Maple Common Binary (Amiga) Q105861793
file format
file formatapplication/octet-streamUse as new PL ↗
Mason file format Q130280361
file format
file formatapplication/x-masonUse as new PL ↗

Disambiguation rules (7)

Linguist heuristics that decide, by content, which language a .m file actually is.
RulePredictsKindPredicates (truncated)
h/linguist/.m/0Objective-Cpredicates[{"kind": "any", "regexes": ["^\\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\\b|#import\\s+.+\\.h[\">])"]}]
h/linguist/.m/1Mercurypredicates[{"kind": "any", "regexes": [":- module"]}]
h/linguist/.m/2MUFpredicates[{"kind": "any", "regexes": ["^: "]}]
h/linguist/.m/3CMLpredicates[{"kind": "any", "regexes": ["^\\s*;"]}]
h/linguist/.m/4Wolfram Languagepredicates[{"kind": "any", "regexes": ["\\(\\*"]}, {"kind": "any", "regexes": ["\\*\\)$"]}]
h/linguist/.m/5GNU Octavepredicates[{"kind": "any", "regexes": ["^\\s*%"]}]
h/linguist/.m/6Limbopredicates[{"kind": "any", "regexes": ["^\\w+\\s*:\\s*module\\s*\\{"]}]

SWH-mined examples (3)

Real archived programs with this extension, byte-verified against the SWH archive. Useful for deciding what this extension actually is when the attribution is uncertain.
get_file_length.m · 297 B · seen 750× in SWH
predicted: GNU Octave via heuristic
swh:1:cnt:903a5c4f55e1a5817c9b04818ff572b3ba61441f;origin=https://github.com/project-asgard/DG-SparseGrid;anchor=swh:1:rev:74b4d6402f6d5a70639a369bb731ff421532f0c1;path=/get_file_length.m
Open in SWH · Raw bytes
md_idx_to_lev_pos.m · 1751 B · seen 743× in SWH
predicted: GNU Octave via heuristic
swh:1:cnt:f97064e7b5e7406e8334a2b53c2304bc66b9a66b;origin=https://github.com/project-asgard/DG-SparseGrid;anchor=swh:1:rev:74b4d6402f6d5a70639a369bb731ff421532f0c1;path=/md_idx_to_lev_pos.m
Open in SWH · Raw bytes
XSetModifierMapping.m · 13796 B · SWH occurrences unknown
predicted: unclassified via manual-request
swh:1:cnt:f851a314d7b2dfc8949028f3671dba8f268ac4ee;origin=https://gitlab.freedesktop.org/xorg/test/xts;anchor=swh:1:rev:497a0865d1fa51adbba53c5c1c930dd18beacc4e;path=/xts5/tset/Xlib13/XSetModifierMapping/XSetModifierMapping.m
Open in SWH · Raw bytes
Reviews (ground truth · how?)
👤 mathieu-acherpl/new:xlib-and-x-protocol-test-suite (medium) amended 2026-06-12
X Test Suite (XTS), test file for X11 https://www.freedesktop.org/software/fontconfig/xtest/progguide.pdf
Request more SWH-mined examples
If the examples above don't disambiguate what .m is, request a fresh mining run.
(or open the pre-filled issue directly)