Skip to content
HN On Hacker News ↗

Programming language file extensions that match an ISO 3166-1 alpha-2 country code | Blog | Ruby Klover

▲ 53 points 30 comments by speckx 5w ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

0 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 2 of 2
SEGMENTS · AI 0 of 2
WORD COUNT 163
PEAK AI % 0% · §1
Analyzed
Jul 24
backend: pangram/v3.3
Segments scanned
2 windows
avg 82 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 163 words · 2 segments analyzed

Human AI-generated
§1 Human · 0%

So there's this standard called ISO 3166-1 alpha-2 that defines a 2 letter code for every country on the planet (like ME = Montenegro) and a bunch of places that aren't countries (like EU = European Union). You've probably encountered such a code before in top level domain names (.im belongs to the Isle of Man) and on Discord (typing :flag_fm: yields a 🇫🇲 emoji).One of these codes is RS (= Serbia). Either by a sheer coincidence or someone playing 5D chess, .rs is also the file extension for the Rust programming language, which is why the domain name of every other Rust project now belongs to Serbia. This made me curious about other cases like this, so here's an incomplete list of programming languages, domain-specific languages, markup languages, etc which file extensions match a country code. If you think something is missing, let me know!CodeFlagLanguageCountryAM🇦🇲AutomakeArmeniaAS🇦🇸ActionScriptAmerican SamoaCC🇨🇨C++Cocos IslandsEC🇪🇨eCEcuadorES🇪🇸ECMAScriptSpainGY🇬🇾GroovyGuyanaIN🇮🇳AutoconfIndiaMD🇲🇩MarkdownMoldovaMK🇲🇰MakefileNorth MacedoniaMM🇲🇲Objective CMyanmarPL🇵🇱Perl, PL/I, PrologPolandPS🇵🇸PostScriptPalestinePY🇵🇾PythonParaguayRS🇷🇸RustSerbiaRU🇷🇺RubyRussiaSB🇸🇧ScratchSolomon IslandsSC🇸🇨ScalaSeychellesSH🇸🇭Unix

§2 Human · 0%

ShellSaint HelenaSL🇸🇱S-LangSierra LeoneSM🇸🇲SmallTalkSan MarinoST🇸🇹SmallTalk, Structured TextSao Tome and PrincipeSV🇸🇻SystemVerilogEl Salvador