Perl Dist::Zilla hidden feature : minimum bundle version require !

Dist::Zilla is a great tools to create perl distribution. You can also create PluginBundle that contain everything you usually use in your package. You will usually add and remove stuff in your PluginBundle, and you want that people who help you develop and release your perl distribution to use the good version of your bundle. … Continue reading Perl Dist::Zilla hidden feature : minimum bundle version require !

Perl Memory::Stats – Get RSS memory reporting on multiple platforms

It is often nice to be able to dump the current memory usage of a part of your process. I’m working on Mac OSX, and I’m frustrating when a perl module only works on Linux, because it read file like ‘/proc’ or stuff like that. Thanks to IRC users, I have discover Proc::ProcessTable, and then … Continue reading Perl Memory::Stats – Get RSS memory reporting on multiple platforms

Perl IO::Socket server socket strange behaviour

I’m trying to create a server that listen on a port and that never answer nor accept anything. Here my small code :

To test it, I run the server :

And then I try the socket timeout with for instance a redis connection with a timeout :

The first time I … Continue reading Perl IO::Socket server socket strange behaviour

Perl Benchmark Serializer: JSON vs Sereal vs Data::MessagePack vs CBOR

I’m working on optimization of computing and I need a fast real time message packer for storing data in Redis at light speed. So I have try several serializer, like JSON, Sereal and Data::MessagePack. And I would like to share the result. First of all, a tiny word about the different serializer. JSON is a … Continue reading Perl Benchmark Serializer: JSON vs Sereal vs Data::MessagePack vs CBOR

Perl Jedi Plugin Auth

Jedi::Plugin::Auth is an authentication plugin for Jedi. It handle the authentication for you, saving using info in his database, and returning the full profile in a session when the user identify himself properly. The plugin provide : jedi_auth_signin jedi_auth_signout jedi_auth_login jedi_auth_logout jedi_auth_update jedi_auth_users_with_role jedi_auth_users_count jedi_auth_users So you can add an user, remote it, log the … Continue reading Perl Jedi Plugin Auth

My Perl and Javascript blog !