Issue #724 - 2025-06-09 - Perl and XS

latest | archive | edited by Mohammad Sajid Anwar
This edition was made possible by the supporters of our cause.
Don't miss the next issue!

Hi there,

What's XS?

XS (eXternal Subroutine) is a glue language that helps Perl interact with C.

Sounds simple?

In my personal experience, it's not simple at all. I've tried many times but never managed to fully grasp it. Recently, Robert Acock, shared a blog post series titled Learning XS, which I found very helpful in unraveling its complexity.

Robert Acock also wrote another blog series for newcomers: Learning Perl. I'm sure this would be handy for anyone looking to explore Perl.

Lately, I've been playing with AWS S3 and have shared my experiences in two posts so far:

There are plenty more articles in the pipeline, so watch this space!

Enjoy the rest of the newsletter.

Mohammad Sajid Anwar


Announcements

DBD::Oracle v1.91_2 released

by Dean Hamstead (DJZORT)

With help from the community a development release of DBD::Oracle has been published to the CPAN.

Formally announcing Perl Magpie

Perl Magpie serves as a user frontend for the CPT database backend. It operates 100% using the CPT API to fetch test metadata and results.


Articles

Generating Content with ChatGPT

by Dave Cross (DAVECROSS)

Yet another quality post that shows the power of ChatGPT.

Learning XS

by Robert Acock

A blog series to learn XS ground up.

Learning Perl

by Robert Acock

A blog series to learn Perl.

Analysing FIT data with Perl: basic beginnings

by Paul Cochrane (PTC)

FIT files record the activities of people using devices such as sports watches and bike head units.

AWS S3 Encryption

by Mohammad Sajid Anwar (MANWAR)

This is first post in the series about AWS S3 Encryption in general.


Discussion

Are you still using the 2-argument open?

by Robert Rothenberg (RRWO)

It's well documented suggestion to always use 3-argument open function. This post shares the reason.


The Weekly Challenge

The Weekly Challenge by Mohammad Sajid Anwar will help you step out of your comfort-zone. You can even win prize money of $50 by participating in the weekly challenge. We pick one champion at the end of the month from among all of the contributors during the month, thanks to the sponsor Lance Wicks.

The Weekly Challenge - 325

by Mohammad Sajid Anwar (MANWAR)

Welcome to a new week with a couple of fun tasks "Consecutive One" and "Final Price". If you are new to the weekly challenge then why not join us and have fun every week. For more information, please read the FAQ.

RECAP - The Weekly Challenge - 324

by Mohammad Sajid Anwar (MANWAR)

Enjoy a quick recap of last week's contributions by Team PWC dealing with the "2D Array" and "Total XOR" tasks in Perl and Raku. You will find plenty of solutions to keep you busy.

Two Dimensional XOR Not?

by Adam Russell

It procides efficient solutions to both tasks, with clear explanations and examples. The implementations leverage Perl's strengths (e.g., built-in hashes for set operations, Math::BigInt for arbitrary-precision arithmetic).

TWS324

by Ali Moradi

Great show of CPAN modules power. It allows us to create a compact and efficient solutions. Well done.

Exclusive or 2D

by Arne Sommer

The solution leverages Raku’s expressive syntax in a way that is both concise and readable. Slicing with [..*] captures the "L-shaped" region without verbose loops. The use of +^= for accumulation is both efficient and visually distinctive.

Perl Weekly Challenge: Week 324

by Jaldhar H. Vyas

The XOR subset sum write-up doesn’t just present code—it reflects on how subsets behave and how XOR values aggregate, which is the hardest part of the task. Use of naive exponential approach before opting for clarity over cleverness.

Or Is It Reshaped?

by Jorg Sommrey

This is for all PDL fans. I enjoy thoroughly every time, I read PDL solutions. Keep sharing knowledge with us.

Perl Weekly Challenge 324

by W Luis Mochan

The solutions are notable for their clarity, efficiency, and effective use of Perl's capabilities. By employing modules like PDL and List::Util, he addresses complex problems with succinct and performant code.

Reduce and Reduce, and Reduce!

by Matthias Muth

It uses frequency counting with a hash to avoid O(n²) complexity. Inline explanation clarify non-trivial steps.

Totally 2bular!

by Packy Anderson (PACKY)

It's a well-crafted and informative piece that balances technical rigor with creative flair, making it a valuable read for both novice and experienced programmers interested in the nuances of multi-language coding challenges.

Fun with arrays

by Peter Campbell Smith

The post stands out for its clarity, depth, and instructional value. His explanations are accessible, making complex concepts understandable for a broad audience. The code is well-structured and annotated, providing readers with valuable insights into Perl programming and problem-solving techniques.

The Weekly Challenge #324

by Robbie Hatley

The post is commendable for its clarity, thoroughness, and innovative problem-solving techniques. His ability to identify ambiguities in problem statements and address them proactively enhances the reliability of his solutions. The post serves as an excellent resource for Perl enthusiasts and programmers seeking to deepen their understanding of array manipulation and bitwise operations.

The Total Array of Xor in 2-D

by Roger Bell West (FIREDRAKE)

No overengineering solutions match the challenge’s scale. Comparing Rust/Raku implementations teaches language-agnostic problem-solving.

The total array

by Simon Green

It starts with a concise Python version, then thoughtfully converts it to Perl. Great for readers fluent in one language who wish to learn the other.

The Weekly Challenge 324

by Yitzchak Scott-Thoennes

The solutions exemplify idiomatic Perl programming, showcasing the language's strengths in concise and expressive code. The post is informative and demonstrates a deep understanding of Perl's capabilities, making it a valuable resource for programmers seeking elegant solutions to common challenges.


Rakudo

2025.22 SurveyOverflow

by Elizabeth Mattijsen (ELIZABETH)


Weekly collections

Events

Paris.pm monthly meeting

Paris, France

The Perl and Raku Conference 2025

Greenville, South Carolina, USA



You know, you could get the Perl Weekly right in your mailbox. Every Week.
Free of charge!

Just ONE e-mail each Monday. Easy to unsubscribe. No spam. Your e-mail address is safe.
Perl Weekly on Twitter RSS Feed of the Perl Weekly. Updated once a week