MR
1 program
Added 2026-03-04T21:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: MR MapReduce Language
Provenance: commit 906d4b6398 · authored 2026-03-04T23:20:24+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
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. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Word Count
Provenance: commit 906d4b6398 · authored 2026-03-04T23:20:24+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
//wordcount.mr
#JobName = "WordCount"
//map function definition
def wordcount_map(offset, line) <(Int, Text) -> (Text, Int)> : Mapper
{
List<Text> words = split line by " ";
Int one = 1;
foreach word in words {
emit(word, one);
}
}
//reduce function definition
def wordcount_reduce (word, counts) <(Text , Int) -> (Text, Int)> : Reducer
{
Int total = 0;
foreach count in counts {
total = total + count;
}
emit(word, total);
}