More Raku challenges

Task 1: Find the first 20 so-called Gapful numbers. Task 2: Print all palindromic ddmmyyyy dates between 2000 and 3000. Task 3: Find the first multiple of the given number, which only contains digits 0 and 1.

Task 1: Find the first 20 so-called Gapful numbers. Task 2: Print all palindromic ddmmyyyy dates between 2000 and 3000. Task 3: Find the first multiple of the given number, which only contains digits 0 and 1.

Programming challenge: insert signs between digits

Here’s another drill offered by the Perl Weekly Challenge on Week 44. The task is to get a string 123456789 and insert the signs + and – between the digits so that the evaluated value of the new string equals 100.

Here’s another drill offered by the Perl Weekly Challenge on Week 44. The task is to get a string 123456789 and insert the signs + and – between the digits so that the evaluated value of the new string equals 100.

On Perl 7

A couple of days ago, Perl 7 was announced.

Isn’t that a great news? Well, yes and no. I have my personal feelings about this but I hope I can also see some other things that are not so much subjective.

A couple of days ago, Perl 7 was announced.

Isn’t that a great news? Well, yes and no. I have my personal feelings about this but I hope I can also see some other things that are not so much subjective.

Check if the number can be represented as a power of integers

In the second task of this week’s Challenge, you have to find two integers that being powered as xy, give the requested integer number n.

In the second task of this week’s Challenge, you have to find two integers that being powered as xy, give the requested integer number n.

Raku string vs integer practices

Hey there, there’s another task #066-1 offered by the Perl Weekly Challenge (why still not mentioning Raku in the name?).

Integer-divide the two given integers, $m and $n, without using multiplication, or division, or modulo.

Hey there, there’s another task #066-1 offered by the Perl Weekly Challenge (why still not mentioning Raku in the name?).

Integer-divide the two given integers, $m and $n, without using multiplication, or division, or modulo.

Another Raku one-liner

Let me demonstrate another interesting one-liner that I find to be a good addition to my last years’s book Raku One-Liners. The task was inspired by this week’s problem from the Perl Weekly Challenge.

Let me demonstrate another interesting one-liner that I find to be a good addition to my last years’s book Raku One-Liners. The task was inspired by this week’s problem from the Perl Weekly Challenge.

Some tips for working with hashes in Raku

In this blog post, I am giving a number of examples of how you can use hashes in the Raku programming language in a correct and incorrect ways and explain how to avoid the chance to mislead yourself.

In this blog post, I am giving a number of examples of how you can use hashes in the Raku programming language in a correct and incorrect ways and explain how to avoid the chance to mislead yourself.

A couple of syntax sweets in Raku

When working on preparing data for the covid.observer site, I discovered a couple of interesting findings, which I did not notice earlier or did not pay much attention to it.

When working on preparing data for the covid.observer site, I discovered a couple of interesting findings, which I did not notice earlier or did not pay much attention to it.

My books on GitHub

Before the GitHub 02/02/2020 Archive program, I uploaded all my books published by DeepText to github.com/ash/books. I hope it will be frozen and archived for the future generations :-D.

Before the GitHub 02/02/2020 Archive program, I uploaded all my books published by DeepText to github.com/ash/books. I hope it will be frozen and archived for the future generations :-D.

🦋 Calling C++ and Fortran functions from Raku using the NativeCall interface

Some time ago, I published an article about using NativeCall in Raku to call functions written in C. Today, let’s see how you can call simple functions written in C++ or in Fortran.

Some time ago, I published an article about using NativeCall in Raku to call functions written in C. Today, let’s see how you can call simple functions written in C++ or in Fortran.

Raku at a Glance — A Language a Day, Advent Calendar 2019 Day 11/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 11 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Raku programming language. Facts about the language A re-thinking of Perl Gradual type system Multi-paradigm: object-oriented, functional Allows concurrent computing Announced in 2000, implemented in 2015 Renamed from … Continue reading “Raku at a Glance — A Language a Day, Advent Calendar 2019 Day 11/24”

The Raku stand at FOSDEM 2020

A few weeks ago, I submitted a booth request for promoting the Raku programming language at the next year’s FOSDEM in Brussels (1–2 February 2020). Just got a confirmation that the stand is accepted. More details of whether it is a 2-day stand or it is only there on Saturday or on Sunday, and where … Continue reading “The Raku stand at FOSDEM 2020”

Concurrent atomic operations in C++ and Raku

Here’s a problem to solve: you have two threads, each incrementing the same single counter N times. What is the state of the counter at the end of the program? A straightforward solution A naïve C++ program can be written using the standard library threads like this: #include <iostream> #include <thread> int counter; void f() {     for (int c = 0; c != 100000; c++) counter++; } int main() {     std::thread thread_a {f}; … Continue reading “Concurrent atomic operations in C++ and Raku”

Raku One-Liners — a free book

Let me announce the new book, Raku One-Liners. Electronic editionAmazon Kindle Paperback editionsAmazon.com, Amazon.de (and also on other local Amazon sites) The book is available in the PDF format for free. Paperback copies are available on Amazon. Download the Raku One-Liners book now N.B. As of today, the book is in the test mode, and … Continue reading “Raku One-Liners — a free book”

🦋 110. is rw vs is raw in Raku

The cryptic title should not stop you from seeing bits of the regular Raku code. Namely, the two traits that you can add to function arguments: is rw and is raw. These two traits may look confusing because both allow changing the passed variable: sub f1($x is rw) {     say $x; } sub f2($x is raw) {     say $x; } my $a = 42; f1($a); # 42 f2($a); … Continue reading “🦋 110. is rw vs is raw in Raku”