Camelia, the Raku bug

Raku Compilers

Raku is a language specification and, just like C or C++, it encourages multiple compilers for the language.

Compilers

Rakudo™ and NQP

Rakudo runs on MoarVM and the Java Virtual Machine (JVM). It is actively developed on the Rakudo GitHub site. Download or compile Rakudo.

NQP is not a Raku compiler. NQP is a small subset of Raku used as a foundational tool to help write compilers (including Rakudo) and libraries.


Historical Compilers

Niecza
Niecza is a compiler targeting the Common Language Runtime (.NET and Mono). Its goal is to explore the static aspects of Raku and the possibilities for compile-time optimization.
STD
STD is Larry Wall's reference implementation of the Raku grammar, parser generator, and some of the semantic verifier. STD is an abbreviation of "Standard". It is written in Raku, transliterated into Perl 5 by viv. It is also used by various phases of several other compilers (mildew, perlito, elf).
viv
viv ("vi" to "v", 6 to 5) is a compiler that uses STD as its front-end. STD itself uses viv to build. It is actively developed along with STD.
Perlito
Perlito, also known as MiniPerl6, is a subset of Raku, designed as a light bootstrapping language. You can try it online. It is actively developed here.
Pugs
Pugs is written in Haskell. Maintenance releases for successive versions of ghc are published to Hackage.

Supplementals

  • Inline::Perl5 executes Perl code in Raku. Supports Perl modules including XS modules like DBI. Allows passing integers, strings, arrays and hashes. Also supports calling methods on Perl objects from Raku and calling methods on Raku objects from Perl.
  • Rakudo's setting library which defines all of the classes, routines, and terms available when your script starts. In Perl parlance, it's roughly all the things you can see in perlfunc, perlop, etc. This part of Raku is mostly written in Raku (and NQP).