Day 3 – Helping the Elves Sort Their Mail

Lately, I’ve been a bit obsessed with Dave Thomas’s CodeKata series, and especially solving these problems in Raku. In this post, I want to talk about different ways of writing Raku and how to measure performance. We’ll focus on part 2 of Kata 11: Sorting It Out. Approach #1: Let’s Use a Regex! Raku, being a descendant of Perl,Continue reading “Day 3 – Helping the Elves Sort Their Mail”

Day 25 – Future-proofing the Raku Programming Language

Around this time last year, Jonathan Worthington was writing their Advent Post called Reminiscence, refinement, revolution. Today, yours truly finds themselves writing a similar blog post after what can only be called a peculiar year in the world. The Language Visible Changes The most visible highlights in the Raku Programming Language are basically: last / next with a value Normally, last just stopsContinue reading “Day 25 – Future-proofing the Raku Programming Language”

Day 12 – A long journey to Ethereum signatures

The Ethereum blockchain is essentially a transaction-based state machine. We begin with a blank state, before any transactions have happened on the network, and move into some final state when transactions are executed. The state of Ethereum relies on past transactions. These transactions are grouped into blocks and each block is chained together with itsContinue reading “Day 12 – A long journey to Ethereum signatures”

Day 16: Writing faster Raku code, Part II

By Wim Vanderbauwhede This is the follow-on article about writing an expression parser in Raku. In the previous article, I explained the background looked at some basic performance comparisons relating to data structures for parsing and ways to process them: lists, parse trees, recursive descent and iteration. In this article, we’ll have a look atContinue reading “Day 16: Writing faster Raku code, Part II”

Day 14: Writing Faster Raku code, Part I

By Wim Vanderbauwhede Last year, in Perl land, I discussed the result of my attempts to optimize the performance of an expression parser which is part of my Perl-based Fortran source-to-source compiler. An expression parser takes strings representing expressions in a programming language (in my case Fortran) and turns it into a data structure calledContinue reading “Day 14: Writing Faster Raku code, Part I”

Day 10: My 10 commandments for Raku performances

1. The profiler you will use Raku has a nice visual profiler. No excuse to ignore it, it is extremely simple to use. Just run the profiler with raku –profile=myprofile.html foo.raku then open the generated HTML file in your favorite browser (for instance firefox myprofile.html &). This is an overview of what you can haveContinue reading “Day 10: My 10 commandments for Raku performances”