Docker allows the creationg of small Linux containers that can make building environments and deploying applications easy. Let's see how can we use Rakudo with a Docker image.
Using Rakudo Perl 6 in a Docker container
Crypt::Bcrypt can be used to encrypt passwords and it can be told how many times to encrypt the password. The more rounds, the longer it takes to encrypt the password and the longer it takes to verify it. The longer it takes to check one password, the more expensive it would be to mount an attack on the system, even if the encrupted password file leaked to the public.
Let's see how fast the Perl 6 version of Bcrupt works. (Tested on an Macbook Air.)
When you run a program on the command line it automatically opens two channels for output. One is called Standard Output the other one is called Standard Error.
By default they are both connected to the terminal where you ran the program, but you can separate them and redirect them or hide them separately.
Printing to Standard Error in Perl 6
Travis-CI is a service that offers Continuous Integration on Linux to open source project hosted on GitHub free of charge.
Appveyor offers similar service on MS Windows.
Continuous Integration for Perl 6 modules
There are a lot of cases when you'd want to have some code accessing a web site. It might be to automate some human interaction or it can be because you would like to talk to an API. Let's see a few simple examples in Perl 6.
httpbin.org is an excellent web site that allows us to try all kinds of web client code. We are going to use that in our examples.
LWP::Simple - a simple web client in Perl 6