Raku in a Browser

Raku is a rich programming language; it took years to design and implement. That’s why running it in a browser seems an ambitious goal. Nevertheless, that’s mostly possible. Meet raku.online — a fully standalone Raku++ engine called Raku.js running in a browser. There are three main panels here: source code on the left, output panel … Continue reading “Raku in a Browser”

Raku: a Language Where 0.1 + 0.2 is 0.3

Programming languages are fascinating. Even if you think that these are the last days when you need to write code yourself, that only gives you more time to enjoy the beauty. In this article I would like to showcase some of the small but astonishing features of Raku. Even if you never had a chance … Continue reading “Raku: a Language Where 0.1 + 0.2 is 0.3”

The Complete Course of the Raku Programming Language

I am excited to announce that the Complete Course of Raku is now complete. All five parts of the course have been written and published. The original table of contents was refreshed and updated to include a few new items, which are marked with the ‘NEW’ icon. The earlier-published Part 1 got some updates too, in particular, … Continue reading “The Complete Course of the Raku Programming Language”

Raku++: The Long Read

How a from-scratch Raku compiler in C++ went from an empty directory to ~82% of the official test suite — plus a native code generator, a self-hosting toolchain, and a browser playground — in under three weeks. This is the long version of the story. The short version lives in the announcement; the disciplined version lives … Continue reading “Raku++: The Long Read”

Raku++ — the fastest Raku compiler

I have been following the development of the Raku programming language since the very beginning. It was Perl 6 for many years, and I had a dream to start using it in real projects. Honestly, I could, to some extent. The timeline for the last 20+ years was not linear at all, and had its … Continue reading “Raku++ — the fastest Raku compiler”

Counting Fridays the 13th in Raku

The Raku solution to the following task: Write a script to find out how many dates in the year are Friday 13th, assume that the current Gregorian calendar applies.

The Raku solution to the following task: Write a script to find out how many dates in the year are Friday 13th, assume that the current Gregorian calendar applies.

Built-in classes in Perl 5.38

This week, the new version of Perl was announced. The new version 5.38 is extremely interesting because it introduces classes, which are built-in in the core language. The feature is currently marked as experimental, but nevertheless it was interesting for me to try it out.

This week, the new version of Perl was announced. The new version 5.38 is extremely interesting because it introduces classes, which are built-in in the core language. The feature is currently marked as experimental, but nevertheless it was interesting for me to try it out.

Dialogues with ChatPGP about the Raku programming language. Solving Task 1 of the Weekly Challenge 204

Let us ask ChatGPT to find a solution and then correct it to make it more Raku-ish. This task, the machine solved the thing from the first attempt, but you can follow how we managed to make it better and more compact. Most (except one) of the generated code workes without compiler errors, so I will not concentrate on it here.

Let us ask ChatGPT to find a solution and then correct it to make it more Raku-ish. This task, the machine solved the thing from the first attempt, but you can follow how we managed to make it better and more compact. Most (except one) of the generated code workes without compiler errors, so I will not concentrate on it here.

Raku Challenge, Week 92, Issue 1

This week’s task has an interesting solution in Raku. So, here’s the task:

You are given two strings $A and $B. Write a script to check if the given strings are Isomorphic. Print 1 if they are otherwise 0.

This week’s task has an interesting solution in Raku. So, here’s the task:

You are given two strings $A and $B. Write a script to check if the given strings are Isomorphic. Print 1 if they are otherwise 0.