Raku
1 program
Added 2025-10-22T09:41:09Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: Perl 6, Rakudo, Raku (programming language), perl6, pl6, raku
Provenance: commit fe023e83ce · authored 2025-10-22T11:41:09+02:00 · model anthropic/claude-3.5-sonnet
Merged records (3)
Sources describe this language in separate records, kept as they are. They were
joined by explicit decisions in data/curated/pl_links.csv
(concept concept/repo/Raku); names of merged pages are listed as aliases above.
- Raku
repo/Raku· this page · primary · sources: llm-campaign · evidenceL-542c4e7f63same_aspl/raku-programming-language: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30) - raku
pl/raku· record without its own page · sources: hyperpolyglot, linguist, pldb, pygments, rosettacode · Wikipedia · Q2052676 · PLDBL-d1fff88375same_aspl/raku-programming-language: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30) - Raku (programming language)
pl/raku-programming-language· had its own page, merged here · sources: hyperpolyglot, pygments, wikipedia · Wikipedia · Q2052676L-542c4e7f63same_asrepo/Raku: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30)L-d1fff88375same_aspl/raku: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30)
Sources mentioning this language
8 sources · pl_id:
pl/rakuWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm |
|---|---|
| Typing | dynamic, gradual |
| Designed by | Raku community · Larry Wall |
| First appeared | 2015 |
| Influenced by | Perl · Ruby · Smalltalk · Haskell · JavaScript |
| License | GNU General Public or Artistic 2 |
| Homepage | https://raku.org/ |
Extensions claimed by this language
34 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.6pl | linguist | primary | 10 files |
.pl | pygments | primary | 6.3M files |
.raku | wikidata | primary | 44.6K files |
.rakudoc | wikidata | primary | 5.2K files |
.rakumod | wikidata | primary | 56.2K files |
.rakutest | wikidata | primary | 11.7K files |
.t | wikidata | primary | 3.1M files |
.6pl | pygments | secondary | 10 files |
.6pm | linguist | secondary | 4 files |
.6pm | pygments | secondary | 4 files |
.nqp | linguist | secondary | 23.2K files |
.nqp | pygments | secondary | 23.2K files |
.p6 | linguist | secondary | 28.8K files |
.p6 | pygments | secondary | 28.8K files |
.p6l | linguist | secondary | 2 files |
.p6l | pygments | secondary | 2 files |
.p6m | linguist | secondary | 6 files |
.p6m | pygments | secondary | 6 files |
.pl | linguist | secondary | 6.3M files |
.pl6 | linguist | secondary | 13.6K files |
.pl6 | pygments | secondary | 13.6K files |
.pm | linguist | secondary | 11.0M files |
.pm | pygments | secondary | 11.0M files |
.pm6 | linguist | secondary | 139.3K files |
.pm6 | pygments | secondary | 139.3K files |
.raku | linguist | secondary | 44.6K files |
.raku | pygments | secondary | 44.6K files |
.rakudoc | pygments | secondary | 5.2K files |
.rakumod | linguist | secondary | 56.2K files |
.rakumod | pygments | secondary | 56.2K files |
.rakutest | pygments | secondary | 11.7K files |
.t | linguist | secondary | 3.1M files |
.t | pygments | secondary | 3.1M files |
.nqp | wikipedia | proposed | 23.2K files |
Related languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
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. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Wordle Solver
Provenance: commit fe023e83ce · authored 2025-10-22T11:41:09+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
#!/usr/bin/env raku
unit sub MAIN ($word? is copy);
my @words = 'share/dict'.IO.lines.grep(/^<[a..z]>**5$/);
my @possible = @words;
my $try = 1;
while @possible > 1 {
my $guess = $try == 1 ?? 'stare' !! smart-guess(@possible);
my $result;
with $word {
$result = compare($word, $guess);
say "$guess -> $result";
}
else {
say "Try $try: $guess";
$result = prompt 'Result: ';
last if $result eq 'done';
}
@possible = filter-words(@possible, $guess, $result);
$try++;
}
say @possible[0] if @possible == 1;
sub smart-guess(@words) {
@words.sort(*.comb.unique.elems).[*-1]
}
sub compare($word, $guess) {
my @result;
my @word = $word.comb;
my @guess = $guess.comb;
for ^5 -> $i {
if @word[$i] eq @guess[$i] {
@result[$i] = '+';
@word[$i] = @guess[$i] = Nil;
}
}
for ^5 -> $i {
next unless @guess[$i];
if (my $j = @word.first(@guess[$i], :k)) {
@result[$i] = '?';
@word[$j] = Nil;
}
else {
@result[$i] = '-';
}
}
@result.join
}
sub filter-words(@words, $guess, $result) {
my @guess = $guess.comb;
my @result = $result.comb;
my %must-have;
my %must-not-have;
my %exact;
for ^5 -> $i {
given @result[$i] {
when '+' {
%exact{$i} = @guess[$i];
%must-have{@guess[$i]}++;
}
when '?' {
%must-have{@guess[$i]}++;
%must-not-have{$i}{@guess[$i]} = 1;
}
when '-' {
%must-not-have<all>{@guess[$i]} = 1;
}
}
}
return @words.grep: -> $word {
my @word = $word.comb;
next False if %exact.first: -> $p {
@word[$p.key] ne $p.value;
};
next False if %must-not-have.first: -> $p {
$p.key eq 'all'
?? $word.contains($p.value.any)
!! @word[$p.key] eq $p.value.any;
};
next False if %must-have.first: -> $p {
$word.comb.grep($p.key) != $p.value;
};
True;
};
}
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.pl/2 | .pl | predicates | [{"kind": "any", "regexes": ["^\\s*(?:use\\s+v6\\b|\\bmodule\\b|\\b(?:my\\s+)?class\\b)"]}] |
h/linguist/.t/1 | .t | predicates | [{"kind": "any", "regexes": ["^\\s*(?:use\\s+v6\\b|\\bmodule\\b|\\bmy\\s+class\\b)"]}] |
h/linguist/.pm/1 | .pm | predicates | [{"kind": "any", "regexes": ["^\\s*(?:use\\s+v6\\b|\\bmodule\\b|\\b(?:my\\s+)?class\\b)"]}] |