Posted on December 9, 2018. Filed under: Uncategorized | Tags: benchmarking, cpan:inline-c, go, hash, perl, perlmonks, xs |
Camel vs. Gopher I’ve been using Perl for several years mostly for small to medium sized programs of sysadmim type (automation, gluing, data transformation, log searching). Recently I started to learn Go. I wanted to write something in both languages and compare. Features a Perl XS solution that demonstrates the use of a hash in […]
Read Full Post |
Make a Comment ( Comments Off on Camel vs. Gopher [Perl vs Go] )
Posted on July 24, 2018. Filed under: Uncategorized | Tags: author:david.farrell, perl, r/perl, reddit, xs |
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 )
Posted on July 2, 2017. Filed under: Uncategorized | Tags: cpan:c-blocks, tpc, video, xs, yapc, yapc:na:2017 |
C::Blocks In the Perl ecosystem, C is a highly respected but second-class language. C::Blocks changes this situation by embedding a C compiler directly into the Perl parser. Blocks of C code are placed directly among lines of Perl. The compiler is Just-In-Time, making your C code just as scriptable as your Perl code. Functions, variables, […]
Read Full Post |
Make a Comment ( Comments Off on David Mertens – “C::Blocks” )
Posted on June 23, 2017. Filed under: Uncategorized | Tags: author:bulk88, c, perl, tpc, video, xs, yapc, yapc:na:2017 |
Writing XS in Plain C Even if you learned C in a classroom at some point, Perl’s “XS” API for writing perl subs in something purported to be C but is really a cat on a tablet with caps lock on. In this talk I will show how difficult it is to write subs in […]
Read Full Post |
Make a Comment ( Comments Off on Bulk88 – “Writing XS in Plain C” )
Posted on May 4, 2017. Filed under: Uncategorized | Tags: c, meta, perl, xs |
XS Mechanics is an article in five parts about XS. It explains what it is, why it is, how it works, and how to use it. It includes a complete, working example of an XS module, and a stub module that you can use as a starting point for your own code. It is an […]
Read Full Post |
Make a Comment ( Comments Off on XS Mechanics )
Posted on May 4, 2017. Filed under: Uncategorized | Tags: author:david.farrell, c, cpan:xs-tutorial, meta, perl, r/perl, reddit, xs |
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 )
« Previous Entries