Last week, 2 projects kept me busy, one is "Perl Weekly Challenge" and the other is "London Hack Day".
Perl Weekly Challenge
I have created dedicated email account for the group i.e. perlweeklychallenge@yahoo.com so that I no longer have to use my personal email. Second I created a twitter account to spread the word about the forthcoming challenges i.e. @PerlWChallenge. If you are active on Twitter, I request you to please follow the twitter account and spread the word. I have started working on dedicated web portal and registered a domain as well. I am using Hugo to generate the contents. With the help of GitHub pages, we are planning to go public on 25th March 2019 with the first challenge for both Perl5 and Perl6. I have informed the team members about the progress we have made so far. I am hoping more will join after the official launch of the event. Fingers Crossed.
Another edition of the German Perl Workshop took place in Munich from 6th to 8th March 2019. I very much enjoyed taking part. Let me share some personal remarks.
Last Thursday, 28th February 2019, London Perl Mongers group organised first Tech Meet of the year 2019. Thanks to Zoopla for giving us space to hold the meet. Also for Pizzas and drinks.
In the past, I never made any effort to attend the Tech Meet. On 9th November 2017, I attended my first Tech Meet. It was to meet and greet Neil Bowers as the invitation had his name as one of the speakers. I blogged about it. Ever since, I haven't missed a single Tech Meet. It is so fun and entertaining.
This time also it was such a great event with mix of regular and new speakers. I got to meet LPW team after such a long time. Two members were still missing. Rick and Lee. Luckily, Julien and Katherine made it. Julien even gave a short talk that he is planning to give in the next German Perl Workshop as well but in German.
The next Google Summer of Code has been launched, and The Perl Foundation is part of it! Several Perl 5 and Perl 6 projects are available for computer software students to join. Among those, RPerl is present, under the title "Perl 5 RPerl: Built-In Operators". Will the Chill will be the lead mentor for this project. All the details are available here: perl-gsoc-2019.github.io/ideas/perl5/RPerl_Operators.html
The Google Summer of Code is a great opportunity to create more code that will be available to the open-source community. Students have until April 9th to apply.
Good luck to all the Perl projects involved!
PS - We've just launched the official Team RPerl page on Patreon!
Special thanks to our first 5 Patrons: Packy Anderson, Tommy Butler, Harry Braswell, Debbie Sonnycalf, and John Stuke
It's long been common to use the LWP::Simple module for quick HTTP requests where you only need to retrieve the contents of a website and put them somewhere. Nowadays I would highly recommend the very neat ojo module from the Mojolicious framework for oneliners, but I have created another alternative using just core modules.
HTTP::Simple implements similar functions to LWP::Simple using the core HTTP::Tiny. One other important difference is that it will throw exceptions whenever there is an error, rather than sometimes returning undef which the user can't do anything with. For oneliners, exceptions are very useful as they will print out what went wrong and cause the script to exit with a failure code; for scripts, they can be easily handled with modules like Syntax::Keyword::Try to perform the appropriate action.
The dates for this year's Swiss Perl Workshop are now confirmed after our poll to ask interested attendees on their preferred choice:
Although the date is close to The Perl Conference in Riga, just one week later in fact, this infers some advantages: we hope to appeal to overseas visitors who are attending TPC, including potential speakers, the dates in October turned out to clash with Swiss personal and school holidays, and we will be able to use the excellent kitchen team for snacks and lunches as we did in 2015 :)
The workshop will be free to attend once again, so please, register, think about submitting a talk, and perhaps even sponsor the workshop.
A great thanks go to our sponsors, who have already committed to the event:
libusb is a highly portable library providing generic access to USB devices. USB::LibUSB was newly written in 2017 to provide Perl bindings to the libusb-1.0 API. It replaces the deprecated module Device::USB, which targeted the older and incompatible libusb-0.1 API.
This release of USB::LibUSB fixes a bug in the config descriptor data structure. Before the fix, only the first interface of a given configuration was represented. Now, the "interface" element of the config descriptor hash holds an array of interfaces, each of which consists of an array of alternate settings. Typically each interface has only one alternate setting:
my $config = $dev->get_active_config_descriptor();
my @interfaces = @{$config->{interface}};
# Get first alternate setting of first interface
my $first_interface = $interfaces[0]->[0];
Many thanks to Mike Ferrara who spotted the issue when porting code from Device::USB to USB::LibUSB.
But I always missed a simple tool to share Perl code. Yes there is https://gist.github.com/ and a lot of other pastebin sites, but they just share the code without the ability to run it.
In browser you can run Perl code at http://perltuts.com, but there is no way to save your work and to share it with others. There is a tool that you can use to run & share Perl code https://ideone.com/, but it is complicated and you can't use perl one-liners in it.
Accessible rooms have been popular this year at our venue hotel. Unfortunately, sometimes people will book an accessible room when they don't actually need one. We want to make sure that those who truly need accessible rooms have the chance to book them. #TPCiP has held two more accessible rooms back just for this reason. If you need extra accommodation and haven't reserved your room yet, email admin@perlconference.us so we can help ensure you get an accessible room at the conference rate!
February had been much better than January in many ways. First, I didn't get any cold or flu and second I finally got my hand dirty for the first time with Perl 6. For me it is a big thing, I have been planning to do for more than a year now. It was one tweet that put everything in place, thanks to JJ Merelo and Simon Proctor. I must thank all the experts in Perl 6 IRC channel for all the help so far. It has been only one week and I already submit handful of PR to Perl 6 code base. I even joined the Perl 6 GitHub organisation that gives me exposure to what others are contributing. One other thing that happened in February, I announced Perl Weekly Challenge to public. I have had good response so far but I am looking for more people to come forward and join the team.
Let's take a quick look through last month activities.
As previously announced, Team RPerl was in Brussels for FOSDEM, one of the (if not the) world's largest open source computer conferences. RPerl creator Will 'the Chill' Braswell was one of the two Perl programmers invited as a main track speaker, along with Andrew Shitov, whose talk was about Perl 6 as a tool for language compilers.
It was my first FOSDEM, and the event was quite spectacular. It takes place at the Université Libre de Bruxelles, and is spread over several buildings full of stands, conference rooms, and dev rooms, all packed. At the Perl booth, Wendy and Liz were busy all weekend, promoting Perl as always. When I say booth, that includes the table covered in Perl books & stickers & other collectibles, plus the "Perl bookshelves" pop-ups, plus a huge Perl 6 banner, plus a giant stuffed camel... The latter of which is now in the pictures and selfies of many FOSDEM attendees.
That's right, there is one week left on our poll to choose the dates for this year's Swiss Perl Workshop. If you're a regular to the workshop, or you are thinking about attending for the first time, then make your choice known. See our previous post for the details.
A great thanks go to our sponsors, who have already commited to the event:
Ever since I received "Think Perl 6" book as a gift by Neil Bowers at the London Perl Workshop 2017, I have been planning to start learning Perl6 without any luck. I can think of many reasons why. One of the reasons was my confusion where to start. First I thought, I will start from the basics but then I easily get distracted if I don't have a target. Then I realised why not pick one of my Perl5 distributions and convert it into Perl6. That sounded great idea.
I tweeted about my intention and asked for help. Immediately two people kindly came forward, Scimon Proctor and JJ Merelo. With their guidance and support, I decided to create a basic Calculator distribution. Once I got the approval of the two mentors, I started preparing the ground.
Ran into some issues gettng HTTPS to work with LWP in a Lambda. I blog about it here..
Amazon's assertion regarding the AMI that comprises the runtime for Lambdas is suspicious. If you launch the AMI they indicate is representative of the Lambda runtime environment you'll find that it contains openssl 1.0.2. But, actually inspecting a running Lambda environment reveals it is running version 1.0.1.
The dive into Perl Lambdas continues...mostly successful, but there are rough edges that even other languages also run into when vendoring libraries.