Oleksander Kiryuhin and Jonathan Worthington announced the release of version 0.8.8 of Cro, the set of libraries for building reactive distributed systems. Coming with many fixes and additions (also by Cro community members), the most notable new features are found in the templating syntax: structural tags in conditions, else
and elsif
constructs, and inline comments.
Week Golf
After almost a week of voting, it appears that the Raku Programming Language will be an acceptable language on WeekGolf, a site to provide the shortest possible solution to a weekly problem. Although yours truly has mixed feelings about extreme golfing, it’s good to see the Raku Programming Language becoming more mainstream (/r/rakulang comments)!
Alexey’s Corner
Alexey Melezhik blogged about SparrowCI Pipelines, a free service to build CICD pipelines in multiple languages (quick start).
Elizabeth’s Corner
Elizabeth Mattijsen has published part 2 in the Don’t fear the grepper! saga, in which a confession was made (/r/rakulang comments).
Clifton’s Corner
Clifton Wood invites your comments about a piece of code they’ve written to easily provide cron-like functionality in Raku.
Márton’s Corner
Márton Polgár, coming in as a relative newcomer in the Raku community, has started collecting ideas to make Raku better. Comments welcome!
Did You Know?
That you can actually slice a set of keys in a hash, and easily filter out the values of existing keys only with the :v
adverb?
my %h = a => 42, b => 666;
say %h<a b c>; # (42 666 (Any))
say %h<a b c>:v; # (42 666)
You can similarly select only existing keys with the :k
adverb, and key/value pairs for the existing keys with the :p
adverb:
my %h = a => 42, b => 666;
say %h<a b c>:k; # (a b)
say %h<a b c>:p; # (a => 42 b => 666)
The latter can be conveniently combined with the :delete
adverb to split a hash into two hashes, by specifying the keys:
my %h = a => 42, b => 666;
my %o = %h<a c>:p:delete;
say %h; # {b => 666}
say %o; # {a => 42}
Check out the “did you know” registry, started by Wenzel P.P. Peppmeyer. Suggestions as Pull Requests welcome!
Weeklies
Weekly Challenge #188 is available for your perusal.
New Pull Requests
Core Developments
- Stefan Seifert started working on the RakuAST branch again, adding features and fixing issues. One pesky issue with
BEGIN
that had bothered them for many months, was finally understood and fixed. Upping the number of passing roast test files (akamake spectest
) to 532/1354 and rakudo test files (akamake test
) to 65/131! - Elizabeth Mattijsen introduced a new value for
%SUB-MAIN-OPTS
, namelynumeric-suffix-as-value
. This allows arguments of the form--j=2
to be specified as-j2
on the command line of your CLI script. - Vadim Belman fixed an issue with definite type parameterization.
Questions about Raku
- Is there a “pipe” operator? by menfon.
- Cannot install
zef
by jj_ya. - Why is it that sometimes we have to use coercion to access individual elements of an array? by zentrunix.
- Can’t seem to be able to grab non-string output from run by JJ Merelo.
Meanwhile on Twitter
- Can query JSON as well by Kay Rhodes.
- Easy migration by Elizabeth Mattijsen.
- Merged into Melpa by Kay Rhodes.
- Instead of a proof of concept by Felix.
- Simon’s working overtime by JJ Merelo.
- Entering the chat by Kenny Drobnack.
- Why 137 is important by brian d foy.
- Ruby on the pipeline by Alexey Melezhik.
- An article from Audrey’s perspective by Isaac Huang.
- Advent posts wanted by you! by JJ Merelo.
- Launch party? by Anthony Shaw.
- Pipelines in pictures by Alexey Melezhik.
- Getting it right by Massa Humberto.
- Intersecting dates by Fernando Corrêa de Oliveira.
- Groupings of regexes by Fernando Corrêa de Oliveira.
- Very instructive by Wim Vanderbauwhede.
- Deal completed by Mark Gardner.
- Sneaky little operator by Julia.
- Another tool by Massa Humberto.
Meanwhile on the mailing list
- Rakudo for W7? by ToddAndMargo.
- How to I print the last 3 lines in a file? by ToddAndMargo.
- Folder size? by ToddAndMargo.
Comments about Raku
- Raku is a modern language by Fireship.
- Pointy definition on Rhymzone.
- Your favourite programming language on r/scala.
- Good news by Athanasius.
- A tiny core and a rich library by Ralph Mellor.
New Raku Modules
- Backtrace::Files “Turn backtrace into list of files / lines” by Elizabeth Mattijsen.
- IO::Path::AutoDecompress “IO::Path with automatic decompression” by Elizabeth Mattijsen.
Updated Raku Modules
- Digest::HMAC by JJ Merelo.
- cro, Cro::Core, Cro::TLS, Cro::HTTP, Cro::WebSocket, Cro::WebApp by The Cro Team.
- Intl::LanguageTag, Intl::UserLanguage by Matthew Stuckwisch.
- Range::SetOps, Game::Sudoku, Trait::Env, Test::HTTP::Server by Simon Proctor.
- App::Rak, rak, String::Utils, Edit::Files, highlighter by Elizabeth Mattijsen.
- zef by Nick Logan.
- Mi6::Helper by Tom Browder.
- PublicSuffix by JJ Atria.
- Gnome::Gtk3 by Marcel Timmerman.
Winding down
Seeing a new version of Cro is always exciting! And progress on RakuAST! And some nice bloggy posts, not a bad week at all.
This week’s picture shows that parts of the Netherlands are hilly enough to make clouds touch the ground, reminding us of the beauty of Ukraine, still fighting the Russian aggression. Слава Україні! Героям слава!
In the meantime, please keep staying safe, keep staying healthy, and keep up the good work!
If you like what I’m doing, committing to a small sponsorship would mean a great deal!