Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon

Raku

Raku - Programming language

< >

Raku is a programming language created in 2019 by Larry Wall.

#871on PLDB 4Years Old 16Users
5Books 0Papers 3kRepos

Raku is a member of the Perl family of programming languages. Formerly known as Perl 6, it was renamed in October 2019.While historically several interpreter and compiler implementations were being written, today only the Rakudo implementation is in active development. Raku introduces elements of many modern and historical languages. Read more on Wikipedia...


Example from the web:
grammar Parser { rule TOP { I <love> <lang> } token love { '♥' | love } token lang { < Raku Perl Rust Go Python Ruby > } } say Parser.parse: 'I ♥ Raku'; # OUTPUT: 「I ♥ Raku」 love => 「♥」 lang => 「Raku」 say Parser.parse: 'I love Perl'; # OUTPUT: 「I love Perl」 love => 「love」 lang => 「Perl」 start { sleep 1.5; print "hi" } await Supply.from-list(<A B C D E F>).throttle: 2, { sleep 0.5; .print } # OUTPUT: ABCDhiEF # No floating point noise: say 0.1 + 0.2 == 0.3; # OUTPUT: True say (1/13 + 3/7 + 3/8).perl; # OUTPUT: <641/728> # Infinite list of primes: my @primes = ^∞ .grep: *.is-prime; say "1001ˢᵗ prime is @primes[1000]"; # Lazily read words from a file .say for '50TB.file.txt'.IO.words;
Example from hello-world:
say "Hello World";

Language features

Feature Supported Token Example
Strings ✓ "
"Hello world"
Print() Debugging ✓ say
Comments ✓
# A comment
Line Comments ✓ #
# A comment
Function Composition ✓
my &foo = &f ∘ &g;
Refinement Types ✓
subset Color of Any where Color | CMYK_Color;
Semantic Indentation X

Books about Raku from ISBNdb

title authors year publisher
Raku Fundamentals: A Primer with Examples, Projects, and Case Studies Lenz, Moritz 2020 Apress
Using Raku: 100 Programming Challenges Solved in the Raku Programming Language Shitov, Andrew 2019 DeepText
Raku Recipes: A Problem-Solution Approach Merelo, J.J. 2020 Apress
Raku Recipes J.J. Merelo 20201012 Springer Nature
Raku Fundamentals Moritz Lenz 20200905 Springer Nature
cycript.html · raku.html · plot.html

View source

- Build the next great programming language · Search · v2023 · Day 208 · Docs · Acknowledgements · Traffic · Traffic Today · Mirrors · GitHub · feedback@pldb.com