Some tricks for prettier xs

Posted on February 20, 2022. Filed under: Uncategorized | Tags: , , , , , |

Some tricks for prettier xs (reddit) (blogs.perl.org) XS has a reputation of being ugly and cumbersome, but in my experience, it doesn’t have to be. […] How did I write XS with so little code/boilerplate? By using XS the way it was originally intended: to glue Perl and C together, not to implement any behavior.

Read Full Post | Make a Comment ( Comments Off on Some tricks for prettier xs )

Distar – A CPAN Distribution Author Tool

Posted on March 31, 2021. Filed under: Uncategorized | Tags: , , , , , , , , |

Distar – A CPAN Distribution Author Tool Not all authors agree with the trade-offs made by tools like Dist::Zilla. Matt S Trout wanted an author tool, but started from a different perspective. What needs to be added on top of what ExtUtils::MakeMaker provides to make it a viable author tool? The result of this thought […]

Read Full Post | Make a Comment ( Comments Off on Distar – A CPAN Distribution Author Tool )

Building a microservice in Perl

Posted on February 28, 2021. Filed under: Uncategorized | Tags: , , , , , , , , , |

A microservice can be thought of as the distributed computing implementation of the Unix philosophy of “Do one thing and do it well.” Usually modeled around specific business domains, a well-designed set of microservices each have their own lifecycle and communicate with each other and with consuming applications via technology-agnostic protocols like HTTP. A series […]

Read Full Post | Make a Comment ( Comments Off on Building a microservice in Perl )

Dist::Zilla::Starter – Guide to getting started with Dist::Zilla

Posted on May 18, 2019. Filed under: Uncategorized | Tags: , , , , , |

Dist::Zilla::Starter – Guide to getting started with Dist::Zilla I’ve been trying to put together this guide for a while, as a modern introduction to the intentions and inner workings of Dist::Zilla, there isn’t much out there that really tells you how it works and why. Dist::Zilla::Starter @ MetaCPAN

Read Full Post | Make a Comment ( Comments Off on Dist::Zilla::Starter – Guide to getting started with Dist::Zilla )

Patching Perl: loading modules that return false

Posted on July 24, 2018. Filed under: Uncategorized | Tags: , , , , |

Patching Perl: loading modules that return false If you’ve been programming Perl for a while, you’ve probably run into this exception: Foo.pm did not return a true value. This is a peculiar quirk of the require function: modules must return a true value else Perl interprets it as a failure via r/perl [reddit]

Read Full Post | Make a Comment ( Comments Off on Patching Perl: loading modules that return false )

A Guide to Versions in Perl

Posted on April 14, 2018. Filed under: Uncategorized | Tags: , , , , , |

A Guide to Versions in Perl Version numbers in Perl are very important; they allow orderly updating and maintenance of modules and distributions across the CPAN, and allow CPAN modules and consumers to require the versions of modules with the bugfixes or features they need. However, in this context, they are also a very unique […]

Read Full Post | Make a Comment ( Comments Off on A Guide to Versions in Perl )

Fixing Legacy Perl Functions With Decorators

Posted on October 21, 2017. Filed under: Uncategorized | Tags: , , , , , , , |

Fixing Legacy Perl Functions With Decorators Function decorators give us a way to modify a function’s behaviour without changing its source. This is useful in changing the behaviour of complex or legacy functions that you don’t want to touch. Although perl does not have a built-in syntax for creating or using decorators, typeglob manipulations are […]

Read Full Post | Make a Comment ( Comments Off on Fixing Legacy Perl Functions With Decorators )

Git bisect and Perl

Posted on August 9, 2017. Filed under: Uncategorized | Tags: , , , , , |

Git bisect and Perl git bisect run treats certain exit values specially: 125 means the code cannot be tested, and 128 or higher will abort the bisect process. If Perl throws an exception it exits with 255 (instead of 0 for a pass and 1 for a test fail), aborting the bisect altogether. To fix […]

Read Full Post | Make a Comment ( Comments Off on Git bisect and Perl )

Getting started with XS

Posted on May 4, 2017. Filed under: Uncategorized | Tags: , , , , , , , |

Part 1: Getting started with XS Part 2: Writing your own XS functions Part 3: XS utility routines that are good to know eXtendable Subroutines (XS) are subroutines written in C that are callable from Perl code. There are two common reasons you’d want to use XS: there is a C library you’d like to […]

Read Full Post | Make a Comment ( Comments Off on Getting started with XS )

Liked it here?
Why not try sites on the blogroll...