Perl6
1 program
Added 2026-02-27T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Perl 6, Raku
Provenance: commit b508641264 · authored 2026-02-27T21:13:59+01:00 · agent claude-code · model claude-sonnet-4-6
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 | 12 files |
.pl | pygments | primary | 5.4M files |
.raku | wikidata | primary | 17.1K files |
.rakudoc | wikidata | primary | 1.1K files |
.rakumod | wikidata | primary | 30.3K files |
.rakutest | wikidata | primary | 6.7K files |
.t | wikidata | primary | 2.7M files |
.6pl | pygments | secondary | 12 files |
.6pm | linguist | secondary | 5 files |
.6pm | pygments | secondary | 5 files |
.nqp | linguist | secondary | 22.5K files |
.nqp | pygments | secondary | 22.5K files |
.p6 | linguist | secondary | 26.9K files |
.p6 | pygments | secondary | 26.9K files |
.p6l | linguist | secondary | 2 files |
.p6l | pygments | secondary | 2 files |
.p6m | linguist | secondary | 5 files |
.p6m | pygments | secondary | 5 files |
.pl | linguist | secondary | 5.4M files |
.pl6 | linguist | secondary | 10.5K files |
.pl6 | pygments | secondary | 10.5K files |
.pm | linguist | secondary | 10.0M files |
.pm | pygments | secondary | 10.0M files |
.pm6 | linguist | secondary | 132.1K files |
.pm6 | pygments | secondary | 132.1K files |
.raku | linguist | secondary | 17.1K files |
.raku | pygments | secondary | 17.1K files |
.rakudoc | pygments | secondary | 1.1K files |
.rakumod | linguist | secondary | 30.3K files |
.rakumod | pygments | secondary | 30.3K files |
.rakutest | pygments | secondary | 6.7K files |
.t | linguist | secondary | 2.7M files |
.t | pygments | secondary | 2.7M files |
.nqp | wikipedia | proposed | 22.5K files |
Related languages
LLM-contributed programs
Hailstone Sequence
Provenance: commit b508641264 · authored 2026-02-27T21:13:59+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
use v6;
=begin pod
=TITLE Hailstone sequence
=AUTHOR TimToady
The Hailstone sequence of numbers can be generated from a starting positive
integer, n by:
* If n is 1 then the sequence ends.
* If n is even then the next n of the sequence = n/2
* If n is odd then the next n of the sequence = (3 * n) + 1
The (unproven), Collatz conjecture is that the hailstone sequence for any
starting number always terminates.
=head1 Task
Create a routine to generate the hailstone sequence for a number.
Use the routine to show that the hailstone sequence for the number 27 has 112
elements starting with 27, 82, 41, 124 and ending with 8, 4, 2, 1
Show the number less than 100,000 which has the longest hailstone sequence
together with that sequence's length.
(But don't show the actual sequence)!
=head1 More
U<http://rosettacode.org/wiki/Hailstone_sequence#Raku>
=end pod
sub hailstone($n) { $n, { $_ %% 2 ?? $_ div 2 !! $_ * 3 + 1 } ... 1 }
my @h = hailstone(27);
say "Length of hailstone(27) = {+@h}";
say ~@h;
my $m max= +hailstone($_) => $_ for 1..99_999;
say "Max length $m.key() was found for hailstone($m.value()) for numbers < 100_000";
# vim: expandtab shiftwidth=4 ft=perl6
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.)
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/.pm/1 | .pm | 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)"]}] |