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)
LLM (this repo) · 1

Related languages

MRQL (0.49)Eve (0.36)Lime (0.36)ML (0.32)Io (0.32)

LLM-contributed programs

Word Count

Provenance: commit 906d4b6398 · authored 2026-03-04T23:20:24+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.mr · added: 2026-03-04T21:00:00Z
//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);
}

Contribute — propose a file extension

Tell us where to find evidence about MR (mapped to pl/mr). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/MR/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← mqtt mrdb →