Camelia

Perl 6 Maven

Speed of Bcrypt

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.)


Speed of Bcrypt


Printing to Standard Error in Perl 6

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


Continuous Integration for Perl 6 modules

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


LWP::Simple - a simple web client in Perl 6

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


MongoDB with Perl 6 on Linux

MongoDB is the leading Open Source document database. In this article we'll see how to use it in a Perl 6 script using the Rakudo Star distribution.


MongoDB with Perl 6 on Linux


Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: