In this part, let’s look at infinite sequences from another angle: let’s start collecting the values. First of all, Raku has a pair of built-in routines gather and take. They are useful when you need to collect data that’s computed along the way. For example: my @data = gather { for ^50 { my $value … Continue reading “Raku: a language that counts to infinity (Part 2)”
Category: Programming languages
Early Raku++ adopters
For the first time in ~18 years, I am genuinely excited to use Perl 6 (Raku) again. <…> Finally usable for real-world scenarios!perlancer on X The Raku++ project started on July 1. Today it’s been about two months since then, so let me tell you about some external activities where other people are already using … Continue reading “Early Raku++ adopters”
Raku: a language that counts to infinity (Part 1)
We’ve already seen that Raku understands characters like ∞, and it would be logically that you can use them with ease, similar to any other constructs of the language. Take, for example, a sequence with no definite end. You define a pattern and take as many items as you need. say (1, 1, * + … Continue reading “Raku: a language that counts to infinity (Part 1)”
What is Raku++
Raku++ is a compiler for the Raku programming language. It’s an independent implementation in C++ and its source code is located in the ash/rakupp repo on GitHub. Interpreter and Compiler Raku++ is both an interpreter and a compiler. You can pass your Raku program to the single rakupp binary: % cat > hello.raku say ‘Hello, … Continue reading “What is Raku++”
Live coding in Raku
Raku.online now has the “Live” checkbox, which you can use to see the results of running your Raku program in real time. Below is the recording of solving the tasks of this week’s Weekly Challenge.
Raku: a language that speaks Unicode
Raku is by design a language that supports Unicode. So, yes, Unicode is special for both Raku and Raku++. This all starts from the visible surface, like when you can type Greek letters and use math symbols — even easier than you do it in LaTeX (in case you know how to type in non-ASCII … Continue reading “Raku: a language that speaks Unicode”
My Raku books online
After finishing the Raku Course I decided that it would be great to publish all my books about Raku in a similar online format. You can still buy the books on Amazon, but you can also read it in a browser, and even run some code examples right there. So, The Complete Course of Raku, … Continue reading “My Raku books online”
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”
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”
A Language a Day
I published my new book: A Language a Day, which is a collection of brief overviews to 21 programming languages.
I published my new book: A Language a Day, which is a collection of brief overviews to 21 programming languages.
London Perl & Raku Workshop 2024
This year, there was another London Perl Workshop 2024, I decided to attend it.
This year, there was another London Perl Workshop 2024, I decided to attend it.
Sorting numbers in Raku with the help of ChatGPT
Solving the task from The Weekly Challenge 233, where you need to sort numbers by two dimensions.
Solving the task from The Weekly Challenge 233, where you need to sort numbers by two dimensions.
Working with words in the Raku programming language
A solution to the task 1 of the Weekly Challenge 233, where the goal is to find the words constructed from the same letters.
A solution to the task 1 of the Weekly Challenge 233, where the goal is to find the words constructed from the same letters.
A couple of tasks solved in Raku
Two tasks from the Weekly Challenge 231 solved in the Raku programming language.
Two tasks from the Weekly Challenge 231 solved in the Raku programming language.
Calculator with Roman numbers using Raku Grammars
Using Raku grammar, I created a simple calculator that works with Roman numbers, for example: `XXI + MCMXIX`.
Using Raku grammar, I created a simple calculator that works with Roman numbers, for example: `XXI + MCMXIX`.
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.
Solving Task 2 of the Weekly Challenge 204 with the help of ChatGPT
Let us solve the second task from the Weekly Challenge 204. It is called ‘Reshape matrix’.
Let us solve the second task from the Weekly Challenge 204. It is called ‘Reshape matrix’.