Jonathan Lane (aka Space MOOSE) blogged about their experience building Rakudo on Termux (an Android App) (/r/rakulang comments). Cool Stuff! This should probably be added to the Rakudo documentation somewhere!
Raku Documentation Team
It looks like the Raku Documentation Team will move the Raku Documentation site to a new layout / format, with a lot of nice features. Here’s a sneak peek! You can report any comments or issues about the new site. Exciting prospect!
Wenzel P.P. Peppmeyer did not do what the instructor asked in Recursive Cinderella.
Elizabeth Mattijsen kicked off a future series of blog posts about App::Rak in It’s time to rak! (Part 1) (/r/rakulang comments), as a follow up to their presentation at the Raku Conference.
The minutes of the October 1st, 2022 meeting are available. With some interesting developments!
Did You Know?
That language version 6.e contains a
.snip method on
Lists, which can snip a
List into two lists depending on smartmatching a value?
use v6.e.PREVIEW; # needed when still on 6.d my @a = "a","b","c",42,666; .say for @a.snip: Str; # ((a b c) (42 666))
All elements (smart)matching the given value from the beginning, will be part of the first list. And the rest of the values will be part of the second.
But you can actually provide multiple smartmatching targets, allowing for more than one snip!
use v6.e.PREVIEW; # needed when still on 6.d my @a = "a","b","c",42,666,"d","e",768,"f"; my @b = Str, Int, Str, Int; .say for @a.snip: @b; # ((a b c) (42 666) (d e) (768) (f))
Now, that’s all nice when you know how many snips there are going to be. Suppose you don’t know? Well, then you can use a lazy infinite sequence for targets!
use v6.e.PREVIEW; # needed when still on 6.d my @a = "a","b","c",42,666,"d","e",768,"f"; my @b = |(Str,Int) xx *; # a lazy infinite list of Str, Int alternately .say for @a.snip: @b; # ((a b c) (42 666) (d e) (768) (f))
Sadly, this last example didn’t work in 2022.07. But it will work in the next release of Rakudo!
Check out the “did you know” registry, started by Wenzel P.P. Peppmeyer. Suggestions as Pull Requests welcome!
Weekly Challenge #186 is available for your perusal.
New Problem Solving Issues
New Pull Requests
- Daniel Green returns to the front (welcome back!) with the proper implementation of nqp::ops for unsigned native integer comparisons, and a 10% faster implementation of conversion of native integer values to strings.
- Elizabeth Mattijsen followed up on Daniel Green‘s work on nqp::ops by updating the unsigned native integer comparison operators in Rakudo.
- Christian Bartolomäus fixed an issue with archetypes (introduced recently with a small metamodel API change) and fixed a another recent issue on the JVM backend involving scope exit handling with phasers active.
Questions about Raku
- Shouldn’t the same srand value produce the same random numbers? by Jim Bollinger.
- Remove everything between () by tobbysingh.
Meanwhile on Twitter
- The easiest submission process by Kay Rhodes.
- Building Alpine packages for Raku modules by Alexey Melezhik.
- Need org-babel support? by Kay Rhodes.
- Rationally right by Massa Humberto.
- Modules for Hacktoberfest by JJ Merelo.
- Refactoring and testing by JJ Merelo.
- Shiver in ecstasy by Slava Pestov.
- Funny Roman Numerals by JF Bastien.
- Auto-correcting bot by Joe Groff.
- The image of Pugs by 日柳 光久 (要介護5在宅介護中).
- What it was by gatin00b.
- Venetian alliances by JJ Merelo.
- Not from unholy rules by Julia.
- Stop the hate! by 総士病.
- Samemark suggestion by Simon Proctor.
- First on dev.to by Elizabeth Mattijsen.
- A quine by Massa Humberto.
Comments about Raku
- Looking very different by Noah Gibbs.
- Thoughts on creating a language by Ralph Mellor.
- A Japanese translation by Reini Urban.
- Debugging TK on Raku by Ralph Mellor.
- On braiding SQL by Ralph Mellor.
New Raku Modules
- sourcery “Turn a sub / method call into file(s) / linenumbers(s)” by Elizabeth Mattijsen.
- Clu “Clu (Command LookUp) helps you document your utility” by Kay Rhodes.
Updated Raku Modules
- Listicles by Kay Rhodes.
- Cromtit by Alexey Melezhik.
- DSL::English::QuantileRegressionWorkflows, DSL::Shared, DSL::English::DataQueryWorkflows, DSL::Entity::MachineLearning, DSL::English::ClassificationWorkflows by Anton Antonov.
- PDF::To::Cairo by David Warring.
- PublicSuffix by JJ Atria.
- Godot::Fun by Ahmad M. Zawawi.
- Digest::HMAC by JJ Merelo.
- Timezones::US by Tom Browder.
- rak, App::Rak, String::Utils by Elizabeth Mattijsen.
- Test::Mock by Jonathan Worthington.
- zef by Nick Logan.
Nice new modules, and updates to some very upstream modules! And don’t forget to think about your Raku Advent Calender blog post!
On this sad day, again an actual image from Ukraine from the TwitterVerse, to remind us all of the beauty of Ukraine, while 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!