Day 6: Immutable data structures and reduction in Raku

For a little compiler I’ve been writing, I felt increasingly the need for immutable data structures to ensure that nothing was passed by references between passes. I love Perl and Raku but I am a functional programmer at heart, so I prefer map and reduce over loops. It bothered me to run reductions on aContinue reading “Day 6: Immutable data structures and reduction in Raku”

Day 17 – Generic data structure traversals with roles and introspection

Generic datastructure traversals with roles and introspection I am a lambdacamel and therefore I like to adapt concepts and techniques from functional programming, and in particular from the Haskell language, to Raku. One of the techniques that I use a lot is generic traversals, also known as “Scrap Your Boilerplate” after the title of theContinue reading “Day 17 – Generic data structure traversals with roles and introspection”

Day 22: What’s the point of pointfree programming?

He had taken a new name for most of the usual reasons, and for a few unusual ones as well, not the least of which was the fact that names were important to him. — Patrick Rothfuss, The Name of the Wind If you’re a programmer, there’s a good chance that names are important toContinue reading “Day 22: What’s the point of pointfree programming?”

Day 19 – Functional Programming with Raku

Functional Programming in Raku I watched a really nice video recently, Functional Programming in 40 minutes, which I thought was really good. I’ve done bits of functional programming over the years but I know lots of people find the ideas behind it quite confusing. So the first thing I’d say is go watch that video,Continue reading “Day 19 – Functional Programming with Raku”