It is hot. It will keep getting hotter in the coming years. Enjoy the coolest summer you’ll ever have. Not much else to say.
Wenzel P.P. Peppmeyer blogged about naming of bitmask values in Coercive Bits (/r/rakulang comments).
Steve Roe blogged about how we tend to forget all the easy things we can do with the Raku Programming Language.
Did You Know?
That you can use the hyper operator
>>op>> to run an operation on an array?
my @a = ^5; say @a; # [0 1 2 3 4] say @a >>/>> 2; # [0 0.5 1 1.5 2]
But what if you want to change the contents of the array? Then you can use the assigning version of the operator used. In this case:
/= instead of
my @a = ^5; @a >>/=>> 2; say @a; # [0 0.5 1 1.5 2]
Of course, you could also do
@a = @a >>/>> 2, but that feels like you’re repeating yourself, and it is much less efficient. That’s because in the case of assignment by the hyperop, it does not need to create a result to be assigned to the array (because it can just return the left hand side of the hyperop).
Weekly Challenge #174 is available for your perusal.
New Problem Solving Issues
The Raku Problem Solving repository attempts to keep track of issues with the Raku Programming Language in all of its aspects. It is intended for discussions with the Raku community about the way to solve any issues that come up. The Rakudo Weekly News will mention any new problem solving issues from now on, to get more eyes to look at them. The most recent ones:
moddon’t convert to Int, unlike everything else
- Inherit(aliz)ability and compos(aliz)ability are too ad-hoc
- modules.raku.org should be deprecated
- POD6 consistency problems
- Specify an implementation neutral method for extracting pod
New Pull Requests
- Vadim Belman fixed a recent regression in the return typecheck dispatcher and coercing into a role.
- Elizabeth Mattijsen implemented a
.snipmethod / sub to divide an Iterable into separate lists, available in
- Vladimír Marek fixed an issue with testing on Solaris.
- Stefan Seifert updated the RakuAST branch to be much closer to the master branch.
- And some smaller fixes and tweaks.
Questions about Raku
- Proper way of avoiding deprecated code warning by Richard Hainsworth.
- How to divide every element in array by a certain number? by con.
Meanwhile on Twitter
- Twisty and whirlpooly by Salve J. Nilsen.
- Interesting things by Fernando Correa de Oliveira.
- More precise and considered by Josh.
- First class support by Wil Lee.
- Didn’t come out by ｆｊのＹｏｇ教祖様.
- A different language by くまかば.
- Not first by RET.
- The thing? by Björkus Dorkus.
- What it looks like by Сумний Лiспер.
- On the contrary by tayu@kyopro.
- Rotoring away! by Massa Humberto.
- I’m using it by Zgrzypik.
- Designed for readability by Olivier Mengué.
- Taking resources by 屍の連勤術師·風野旅人.
- Once the JIT kicks in by Julia.
Comments about Raku
- What it tried to do by patrec.
- More reason than one by Banana699.
- A comprehensive system of units by Stefan Seifert.
- Built into the language by Banana699.
- Larry gets the colon? by crundar.
- More than 1500 entries on RosettaCode.
- Superlanguages by lngns.
- Higher level by Alex Merced.
- Defining your own operators by Banana699.
New Raku Modules
- JSON-CSV “Scripts to convert between CSV and JSON” by Scott Sotka.
- Array::Rounded “Arrays that round indices while accessing elements” by Elizabeth Mattijsen.
- from “Load a module and import selected items from it” by Elizabeth Mattijsen.
- nano “Provide term for epoch in nano seconds” by Elizabeth Mattijsen.
- Edit::Files “Edit a given set of files” by Elizabeth Mattijsen.
- META::constants “Distribution related constants from META info” by Elizabeth Mattijsen.
- CLI::Help “Add -h / –help parameters to your script” by Elizabeth Mattijsen.
Updated Raku Modules
- JSON::Unmarshal by Vadim Belman.
- BinaryHeap by Peter du Marchie van Voorthuysen.
- Tomtit, Tomty, Sparrow6 by Alexey Melezhik.
- Pod::From::Cache by Richard Hainsworth.
- DateTime::Parse by Filip Sergot.
- Files::Containing, as-cli-arguments, App::Rak, highlighter, Lines::Containing by Elizabeth Mattijsen.
- HTTP::HPACK by Jonathan Worthington.
- Terminal::Getpass by Itsuki Toyota.
- Terminal::ANSIParser, Terminal::LineEditor by Geoffrey Broadwell.
- Gnome::Gtk3 by Marcel Timmerman.
- Crypt::RC4, PDF::Tags, PDF::ISO_32000 by David Warring.
Wow, looks like yours truly was on a roll last week with a big crop of new modules. 🙂
This week’s image was made enjoying another small bike ride in the neighborhood. It is there to remind us to support Ukraine in their and our fight against the Russian aggression. Слава Україні! Героям слава!
In the meantime, please stay safe, stay healthy, keep up the good work! ‘Rona is most definitely not over yet.
If you like what I’m doing, committing to a small sponsorship would mean a great deal!