2022.29 Hot

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’s Corner

Wenzel P.P. Peppmeyer blogged about naming of bitmask values in Coercive Bits (/r/rakulang comments).

Steve’s Corner

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:

New Pull Requests

Core Developments

  • Vadim Belman fixed a recent regression in the return typecheck dispatcher and coercing into a role.
  • Elizabeth Mattijsen implemented a .snip method / sub to divide an Iterable into separate lists, available in 6.e.PREVIEW.
  • 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

Meanwhile on Twitter

Comments about Raku

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

Winding down

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!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s