Two ways to change multiple hash values at the same time

Somehow I ended up a binary assignment with the zip operator: $giver<wallet given> Z+= (-$amount, \$amount) I was playing around with a simulation problem from Uri Wilensky (R’s gganimate is […]

How you average numbers doesn’t matter

Perl 6 averages “floating point” numbers correctly. That’s an interesting statement because it seems like it should be obvious and expected. However, people around computers long enough are used to […]

Don’t use < in programming

I don’t actually mean that you shouldn’t use <, but I’m playing off Don’t use the greater than sign in programming. That post from Lewellyn Falco reminded me of a […]

Rakudo in Chocolatey makes AppVeyor easier

Rakudo is now easier to install on Windows. Rakudo Star is now in Chocolatey (with 2017.04 awaiting moderation as I write this). This makes it much easier to automatically deploy […]

As many digits as you like

I was playing with arbitrary precision rational numbers in Perl 6, irrationally perhaps by playing with the natural base, e, also known as Euler’s Number. That’s a builtin value in […]

The 24 Puzzle, in Perl 6, using Channels and Promises

Mark Jason Dominus solved the 24 Puzzle in Perl, then explicated some non-Perl solutions other people sent him. RJBS tried it in Forth. I’ve been meaning to try it in […]

Quick Trick: Longest string using the reduction operator

I had a problem where I wanted the longest string from a list. I didn’t want to sort because I wanted to do it with a single pass. (The comments […]

All things being equal, not all things are eqv

Perl 6 has a wealth of comparison operators so I don’t have to do a lot of work to test complex data structures. Consider the case where I want to […]