Programming Languages Section

Raku Programming Language

What is Raku Programming Language
Post by Amina Delali, July 25th, 2023

Some Facts

We already talked about the Raku language, being part of the Perl family programming languages. Its main implementation is known as Rakudo, and it's the only one under active implementation. The language supports procedural, as well as object oriented and functional programming. It also supports Parallelism, concurrency, and asynchrony including multi-core support. At the top level a Raku program is interpreted, but if you use Raku Modules, the code will be compiled and the preprocessed version is then loaded when necessary. Raku is a general purpose programming language, that can also be used for different types of applications. For example, it can be used to build web apps, especially with the availability of the Cro framework.



How to install it

For the installation, and for both platforms, we will describe the installation steps of the Rakudo implementation .

  • On Windows:
  • To install on Windows, download the installer from the Rakudo Download page. You can choose the msi file, download it, run it, and follow the installation steps.
    To check the installation, open the terminal, an type in: raku -v

  • On Ubuntu :

    You can install the package provided by your Ubuntu distribution: sudo apt update
    sudo apt install rakudo

The Hello World Example

  • Create a new file named hello.raku
  • Write the following code in the hello.raku file:
    say("Hello World!");
    put("Hello World!");
    print("Hello World!");
  • To run your code, you must run your commands from the folder where you saved your file hello.raku. So, open the terminal (the command prompt), and run the following command: raku hello.raku


Additional Information

Something to say ?

If you want to add something about the Nim language or about this post, please feel free to do it by commenting below 🙂 .