Day 4: Parsing Clojure namespace forms using Raku grammars

One day, I started wondering if it would be possible to parse Clojure namespace forms and generate a dependency graph of the various namespaces used in a real-world Clojure project. While that was the original motivation, I ended up down the Raku grammar rabbit hole, and had an enjoyable time learning how to use them.Continue reading “Day 4: Parsing Clojure namespace forms using Raku grammars”

Day 2: Perl is dead. Long live Perl and Raku.

‘Perl is dead’, is a meme that’s just plain wrong. Perl isn’t dead. It’s just dead to some programmers. Complicated regexes? Sigils? There’s more than one way to do it (TMTOWTDI)? Sometimes when programmers encounter Perl in the wild they react with fear. “WTF!?”, they cry! But fear needn’t be a Perl killer. If youContinue reading “Day 2: Perl is dead. Long live Perl and Raku.”

RFC 190, by Damian Conway: NEXT pseudoclass for method redispatch

In his series of object orientation RFC’s Perl/Raku luminary Damian Conway includes a proposal for method redispatch, RFC 190, which is the subject of today’s article. On method dispatch Perl has a pseudoclass named SUPER which an object can use to invoke a method of its parent class that it has overridden. It looks approximatelyContinue reading “RFC 190, by Damian Conway: NEXT pseudoclass for method redispatch”

Day 20 – Raku from Perl: Transforming Old Perl Code (Part 2)

Spoiler Alert! When I started this two-part post, I was blissfully unaware of a similar topic in the Raku community; however, I was awakened to that fact when I first read Elizabeth Mattijsen’s Raku Weekly Blog on Monday, 9 Dec, and saw that the famous Perl and Raku expert, Jeff Goff, had written a multi-partContinue reading “Day 20 – Raku from Perl: Transforming Old Perl Code (Part 2)”

Day 14 – Thinking Beyond Types: an Introduction to Rakudo’s MOP

It’s Christmas season! Christmas would not be Christmas without the caroling that’s part of the festivities, so let’s make it possible to sing some. We could simply make a carol one giant string, but that’s not good enough. Being a song, carols often have a chorus that’s repeated in between verses. If we were toContinue reading “Day 14 – Thinking Beyond Types: an Introduction to Rakudo’s MOP”

Day 13 – A Little R&R

A Little R&R Introduction Raku is a really nice language. Versatile, expressive, fast, dwimmy. The only problem I sometimes have with it is that it can be a little slow. Fortunately that can easily be solved by the NativeCall interface, which makes it easy to call C code in your Raku program. Now, as niceContinue reading “Day 13 – A Little R&R”

Day 10 – A Teaser

Santa has a special treat: a teaser if you will. A part of a chapter from the upcoming book “Migrating Perl to Raku”, to be published January 2020. Optimization Considerations If you are an experienced Perl programmer, you have (perhaps inadvertently) learned a few tricks to make execution of your Perl program faster. Some ofContinue reading “Day 10 – A Teaser”

Day 6 – Put some (GitHub) Actions in your Raku (repositories)

After being in beta for quite some time, GitHub actions were finally introduced to the general public in November 2019. They have very soon become ubiquitous, over all combined with the other release that were recently made by GitHub, the package (and container) registry. We can put them to good use with our Raku modules.Continue reading “Day 6 – Put some (GitHub) Actions in your Raku (repositories)”