Array comparison in Perl XS

Posted on March 13, 2019. Filed under: Uncategorized | Tags: , , , , , , |

Array comparison in Perl XS Comparing two 1-dimensional arrays for equality in XS. Also available on github

Read Full Post | Make a Comment ( Comments Off on Array comparison in Perl XS )

perl XS – passing array to C and getting it back

Posted on December 10, 2018. Filed under: Uncategorized | Tags: , , , , |

perl XS – passing array to C and getting it back

Read Full Post | Make a Comment ( Comments Off on perl XS – passing array to C and getting it back )

Camel vs. Gopher [Perl vs Go]

Posted on December 9, 2018. Filed under: Uncategorized | Tags: , , , , , , |

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] )

Exploring Inline::C (Generating primes)

Posted on April 30, 2017. Filed under: Uncategorized | Tags: , , , , , |

Exploring Inline::C (Generating primes) I set out to figure out how to use Inline::C today, and thought I’d share the experience from the perspective of someone who was using Inline::C for the first time.

Read Full Post | Make a Comment ( Comments Off on Exploring Inline::C (Generating primes) )

Wrapping a C shared library with Perl and XS

Posted on March 18, 2017. Filed under: Uncategorized | Tags: , , , , , , |

Wrapping a C shared library with Perl and XS This tutorial shows how to wrap a C shared library using XS and Perl (including creating a trivial test shared library). Also posted to PerlMonks where the discussion references InlineX::C2XS.

Read Full Post | Make a Comment ( Comments Off on Wrapping a C shared library with Perl and XS )

Send in a Perl aref to C, get back a Perl array (and using the generated XS)

Posted on January 27, 2017. Filed under: Uncategorized | Tags: , , , , |

Send in a Perl aref to C, get back a Perl array (and using the generated XS) This will show you how to pass a Perl array reference (aref) into a C function, convert the aref into a C array, work on it, then push it back onto the stack so the C function returns […]

Read Full Post | Make a Comment ( Comments Off on Send in a Perl aref to C, get back a Perl array (and using the generated XS) )

Getting started with Perl XS and Inline::C

Posted on August 18, 2016. Filed under: Uncategorized | Tags: , , , , |

Getting started with Perl XS and Inline::C There’s a good list of references at the end!

Read Full Post | Make a Comment ( Comments Off on Getting started with Perl XS and Inline::C )

perl XS – passing array to C and getting it back

Posted on August 18, 2016. Filed under: Uncategorized | Tags: , , , , |

perl XS – passing array to C and getting it back I’ve never really learned how to write XS – I just use the XS file that Inline::C creates.

Read Full Post | Make a Comment ( Comments Off on perl XS – passing array to C and getting it back )

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