March 2009 Archives

Parrot 1.0.0

| | Comments (0)

[This is a translation of my article in Italian language on Perl.it]

Sometimes things happen when few are still left to believe in them, nevertheless they are able to bring new enthusiasm and life to projects which seemed to be sentenced to a never ending gestational status. OK, I'm now going to come out of this "Barack Obama mode", but I hope I gave an idea of how much March 17, 2009, the date of the release of Parrot 1.0.0 is important for the Perl community (and not just for it).

Anyone who's got something to with Perl likely knows what Parrot is, but this moment deserves a brief refreshing about its main features. First of all, it's a virtual machine which aims at becoming the virtual machine. Even though its development started out from the Perl community, the goal is that other dynamic languages should be able - or even want - to use it as well, as Parrot will grant superior performance.

For other technical information, please read the Parrot Wikipedia page, as I'd like to write something about the second reason for which Parrot is important. It's maturation is fundamental to give a boost to Perl 6 development, in order to reach the much awaited first major release of our favourite language, an event we've been waiting for years: yt's current implementation, Rakudo, is being developed upon Parrot.

Many more steps still have to be performed, and maybe many folks will continue to state, as a joke or seriously, that Perl 6 will never see the light. However, as Parrot did, Perl 6 could surprise you as well.

This review is by Nicola Gigante, a member of "Nordest.pm"http://nordest.pm.org/. Thank you for the contribution!

Click here to read this review in Italian language.

Learning Perl (5th edition)
Randal L. Schwartz, Tom Phoenix & brian d foy
O'Reilly Media, 2008
ISBN: 9780596520106
US$ 39.99 (printed) - US$ 31.99 (electronic)

Rating: 4.5/5

Perl is a very flexible language. It has the most complex grammar you can find around,
and a context-dependent semantic, and this makes perl an easy and yet powerful scripting language. The 5th edition of Learning Perl is just about how to write scripts with it. It wonʼt teach you how to write huge and complex software or how to optimize your code to make it fast and yet extensible. After all, this book is just about learning the language. The big work made by Schwartz and co. was to write a book that lets you feel the extremely high level of flexibility you get from the perl syntax. The book is full of examples, and itʼs common to find a way to solve a given problem, just to read how it can be solved with fewer lines of code or in a faster way respect of a previous solution. The book also highlights the most famous perl features. Theyʼre text and list processing tools, such as regular expressions and sort routines. After the first chapters explaining basic language features like numbers, strings, arrays and hashes manipulation, three chapters are dedicated to regular expressions: how to write and understand them, how to use them to match text, and how to use them to replace text. Also, a whole chapter is dedicated to methods and techniques to sort arrays and hashes. The second part of the book is about manipulating files, processes, and other things needed for administrative purpose, a field where perl scripts are used very often. The other two books of the series, Intermediate Perl, and Advanced Perl, complete this book, covering things that you donʼt find here. If you donʼt know the language and want to learn it, or if you know it briefly and want to improve your basic knowledge, this is the right book for you.