$ whois raku
Raku
first released in 2015 · by Larry Wall
$ guessprog --inspect raku
- year
- 2015
- paradigm
- multi paradigm
- family
- other
- memory
- automatic gc
- binding
- gradual
- safety
- strong
RAKU(7)
- AUTHORS
- Larry Wall
- HISTORY
- Larry Wall announced Perl 6 in 2000 as a redesign of Perl that would break backwards compatibility to fix long-standing warts, with the community submitting hundreds of proposals for the new language. The design took a famously long time: the first stable version was released on Christmas Day 2015. By then it had become a very different language from Perl 5, with gradual typing, grammars and lazy lists, and in 2019 it was renamed Raku so the two could go their own ways.
- USAGE
- A niche language with a small, enthusiastic community. It is used mostly for scripting, text processing and parsing, where its built-in grammars shine.
- SEE ALSO
- Raku on Wikipedia ↗
# Grammars are first-class: parse "key = value" lines
grammar Config {
token TOP { <pair>+ %% \n }
token pair { <key> \h* '=' \h* <value> }
token key { \w+ }
token value { \N+ }
}
my $m = Config.parse("name = Raku\nyear = 2015");
say "{.<key>} -> {.<value>}" for $m<pair>;
say (1, 1, * + * ... *)[^10]; # lazy Fibonacci sequence