2022.25 We Will Raku!

With the conference season coming, and missing the in-person events, Wendy van Dijk was inspired by yours truly to rewrite the lyrics to a Raku hymn (/r/rakulang comments). Here’s hoping someone will actually perform that real soon 🙂

Conference Season

The first in-person event in a long time, starts tomorrow (on the 21st of June) in Houston, TX with these Raku presentations. The second online Raku Conference (on 13-14 August) has published its Call For Presentations, so you can now submit a talk proposal!

Jonathan’s Corner

Jonathan Stowe elaborates on their realization that you can quite easily make Raku look like C++ (/r/rakulang comments). Well, to an extent, of course!

Did You Know?

The simple approach to swapping two arrays, doesn’t work:

my @a = 1,2,3; my @b = <a b c>;
(@b, @a) = (@a,@b);
say @a; say @b; 
# []
# (\Array_5056320939752 = [[] Array_5056320939752])

This is because the first array on the left-hand side will slurp the right-hand side, which causes @b in this example to become a self-referential structure (which is very hard to represent textually, hence the weird looking output), and @a to become empty. There is a way to do this, by thinking of the left-hand side as the signature of a subroutine, and the right hand side as the arguments:

:(@b, @a) := (@a,@b);
say @a; say @b;
# [a b c]
# [1 2 3]

The : prefix on the left hand side, makes :(@b,@a) a Signature literal, to which the arguments (the right hand side) are bound with :=. This process is called destructuring. There are many other situations where you can use this! Kudos to Fernando Correa de Oliveira for making yours truly remember.

Weeklies

Weekly Challenge #170 is available for your perusal.

New Pull Requests

Core Developments

  • Elizabeth Mattijsen added a bytecode-size method to Code objects (on MoarVM only), that reflect the initial number of bytes used by that Code object.
  • Jonathan Worthington fixed the root cause of DESTROY methods not being run in some cases, which caused memory leaks in e.g. Cro and LibXML.
  • Stefan Seifert continued working on the RakuAST branch, adding full support for EXPORT subs and other precompilation features, which resulted in 464 roast files fully passing.
  • And some smaller optimizations and fixes.

Questions about Raku

Meanwhile on Twitter

Meanwhile on the mailing list

Comments about Raku

New Raku Modules

  • Mint “A double-entry accounting system” by Shuppet Laboratories.
  • Lines::Containing “Look for lines containing a given needle” by Elizabeth Mattijsen.
  • hyperize “Helper subs to hyperize iterables with defaults” by Elizabeth Mattijsen.
  • Menu::Simple “Create, display, and execute a simple option menu on the command line” by Steve Dondley.

Updated Raku Modules

Winding down

This week on time, but due to the (sadly, not unexpected) passing of Wammes Witkop, with grief to deal with.

This week’s image again is still inspired by Pride Month as well as to support Ukraine in their fight against the Russian aggression. Слава Україні!  Героям слава!

In the mean time, 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 )

Facebook photo

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

Connecting to %s