In yesterday’s Quick Tip I used the Fibonacci sequence as an example to show off Rakudo’s –profile option. In today’s tip I’ll use that same sequence to show off Perl […]
Read moreAuthor: brian d foy
Quick Tip #17: Rakudo’s built-in profiler
Rakudo comes with a built-in profiler. Invoke the program with the –profiler option and $ perl6 –profiler some_script.p6 … output … Writing profiler output to profile-1480712222.02931.html That profile is an […]
Read moreQuick Tip #16: Explosive combinatorials
Perl 6 has several sophisticated ways to make lists. I was playing with a particular task where I needed combinations for something similar to bin packing. I have a list […]
Read moreShould I just call it P6? or v6?
I’m working on chapter that I need to turn in to O’Reilly and I keep typing “Perl 6”. It’s annoying. But, what else would I call it? I’m not looking […]
Read moreQuick Tip #15: Phasers
Perl 6 has phasers, which are subroutines that run at particular times despite their spatial placement inside the the program text. As a program moves from one thing to another, […]
Read moreQuick Tip #14: Myriad output routines
Perl 6 has many ways to output things. Here’s a table of the various routines you may want, along with their subtle differences.
Read moreQuick Tip #13: Kapreker’s Constant
A Kaprekar’s Constant is the number you end up with when you repeatedly substract the descending digits of a four digit number from the ascending digits. This is mostly a […]
Read moreQuick Tip #12: Unicode Helper Apps
Perl 6 uses fancy Unicode characters to do some of its work, but those don’t show up on most keyboards. I like the Mac program UnicodeChecker. I can search by […]
Read moreQuick Tip #11: Number, Strings, and NumberString Allomorphs
Perl 6 has a variety of ways to quote things (maybe too many), but they aren’t all the same thing. The angle-bracket quote words, <…> isn’t just qw// written with […]
Read moreQuick Tip #10: Syntax highlighting Perl 6
So far, my quick tips haven’t been that quick. I’ve gotten mired in the tarpit of tracking down weird behaviors and whatnot. Here’s a truly quick tip. If you have […]
Read more