25 Nov 2026

feedPlanet Debian

Maytham Alsudany: Relicensing the entire Debian wiki (part 1)

So the Debian wiki's been around for 25 years, but no-one thought about licensing when it was started. There have been a few short email threads over the years on this topic, but nothing actually happened. Now, since gears are turning on moving the wiki to MediaWiki, we're finally trying to fix the licensing issue... yay us! (Sarcasm.)

Background

The wiki started in 2001 running under wiki.debian.net, which used a custom licence with the bare legal minimum to allow content to go on the wiki. As you can probably tell, this is not a "free" licence with respect to the Debian Free Software Guidelines.

For those who don't know, the Debian Free Software Guidelines (DFSG) define whether a given piece of software (or in this case, adapted to writing and media works) is "free" as in freedom. You may be more familiar with the Open Source Definition, which was adapted from the DFSG.

In 2005, wiki.debian.org was established running MoinMoin, the software that it still uses today, and content was imported from wiki.debian.net. At this time, Jonathan Dowland raised concerns on the lack of licensing terms on the new MoinMoin installation as well as the copyright status of the content being imported, but it happened anyway. As he puts it, "the question is now whether the material on this site is DFSG at all and if it ever will be." Currently, the Debian wiki is the biggest wiki on the internet that uses MoinMoin according to Steve McIntyre during DebConf25.

So now it was going from custom licence to no licence at all. At that time, someone suggested the wiki used the GNU Free Documentation Licence (GFDL), before Steve corrected it.

Since then, people have been editing and contributing to the wiki, growing it as an essential, if sometimes messy, resource for information about Debian. Now it's not as beautiful or well organised as, say, the Arch Wiki, but content like the page on installing Nvidia graphics drivers or the page on installing Debian have helped likely hundreds of thousands, perhaps millions, of people according to data Jonathan collected over two months. Take that with a grain of salt though as AI scrapers have skewed these counts recently.

Yet, there was no clear licence for the content people were putting on the wiki. And when there is no licence, and no-one specifies a licence on the page itself, it is assumed to be "all rights reserved" in most jurisdictions. This is ignoring the implicit grant given by an editor to display that content on the wiki when they submit content to the wiki, but this is shaky at best and doesn't provide the clear permissions needed to freely reuse that content.

Steve McIntyre speaking at DebConf25

Steve McIntyre hosted a Debian Wiki BoF (Birds of a Feather meeting) at DebConf 25. Credit: DebConf Video Team; MIT licence.

During DebConf 25, there was a BoF meeting to discuss the wiki, preceded by a great "biased SWOT analysis" presentation by the Arch Wiki admins on how they run their wiki and the challenges they faced. The wiki BoF discussed a range of topics, one of which was licensing.

Following this, stuff started happening to make major changes to the wiki, mainly with a migration to MediaWiki to leave the unmaintained MoinMoin software and be able to upgrade away from Debian Buster (version 10, oof!), as well as the creation of a new mailing list and IRC channel.

At the same time, I started pushing to fix content licensing, and for the last 16 months, I have been largely working alone to slowly but surely relicense everything ever put on the wiki. This article aims to document what has been done so far and why, and some challenges encountered along the way.

You can watch the wiki BoF: low quality, HD (warning: choppy audio), and the Arch Wiki presentation: low quality, HD, thanks to the DebConf Video Team who recorded them during DebConf 25.

Picking a licence

First things first, we needed to pick a licence. After some email discussion on the new mailing list, we landed on the Creative Commons Attribution-ShareAlike 4.0 licence (CC BY-SA 4.0) for the following reasons:

  • It is designed explicitly for content and media, compared to other licences that are aimed at software (e.g. MIT).
  • It requires attribution for contributors' hard work.
  • It ensures any adaptations of the work continue to use the same or compatible licence, preventing someone from taking the work and making it proprietary.
  • It is pretty permissive and allows adapting CC BY-SA 4.0 materials into GPL-3-licensed works, like package manual pages and other documentation.

Some licences were ruled out for various reasons:

  • Public domain / CC Zero - We wanted a licence that required attribution, especially considering the wiki relies on volunteers to populate and update its content.

    This would also make it difficult for any content to be brought into the wiki from other sources, since they would have attribution requirements that could not be preserved under CC0.

  • GNU Free Documentation Licence (GFDL) - Debian only considers the GFDL to be a DFSG-free licence when it is used without any of its invariant options as per the 2006 general resolution. Also, this licence would limit where wiki content could be integrated outside of the wiki. Generally, this is an unwieldy licence with many restrictions, and should probably be reserved for printed works as it was designed for that.

  • Creative Commons NC & ND options - The Non-Commercial (NC) and Non-Derivative (ND) options for Creative Commons licences are not compatible with the DFSG.

It's not like CC BY-SA 4.0 is a niche licence; it is the licence that Wikipedia uses. As a result, we can copy content back and forth from a whole lot of places with this licence.

Overall, CC BY-SA 4.0 provides a balance between putting in place protections for the work contributors put into the wiki via requiring attribution and share-alike, while also being very permissive in every other aspect, in line with the kind of freedom we're looking for.

Handling new additions

Screenshot of Debian wiki's FreedomBox page showing the yellow relicensing banner.

The Debian Wiki displayed a prominent banner regarding the licence of new content.

Before dealing with the mess that is the old content, first we looked at how to handle new edits to the wiki.

After picking an arbitrary future date (in this case, 24 July 2025), I wrote a new copyright page explaining that content contributed after this date would be licensed under CC BY-SA 4.0, and summarised the main points of the licence.

Following this, I updated the website footer and added a banner notifying wiki users and editors of the licence change (or should we say: addition). It was ugly, prominent, and in highlighter yellow to make sure no-one missed it. The banner served its purpose for a few months, and then was removed because, by then, we're pretty sure we got the message across.

I also ensured this was displayed properly on the 'edit' page, so that editors understood that, by submitting their changes to the wiki after this date, they agreed to license their contribution under CC BY-SA 4.0.

Dealing with old content

Now, to the annoying part. In order to actually get everything to use CC BY-SA 4.0, contributors need to be contacted one by one and asked for permission to relicense their work, as they are the copyright holders.

Keep in mind that the end goal is for all content on the wiki to be DFSG-free, with CC BY-SA 4.0 being the preference.

Wait, how much work is this?

Allow me to first give you an idea of the scale of the task at hand:

  • There are 21,506 registered user accounts on the wiki (at the time of writing).
  • Over 290,052 edits have been made to the wiki.
  • Of those user accounts, 9,778 users have made one or more edits on the wiki.
  • Only 1,548 users have made more than 20 edits on the wiki.

These numbers are based on a snapshot from 26 January 2026.

For that last bullet point, this graph here makes it clear that the majority of user accounts (on the left side of the graph) have only made a handful of edits.

Frequency of number of edits per contributor. Each point shows how many contributors made a given number of edits. The horizontal axis uses a logarithmic scale.

Though unrelated to the topic at hand, this is probably a good argument for allowing anonymous edits to the wiki once again, a setting that was originally disabled to reduce spam. New accounts requiring manual approval, which has been in place for the past few years, was put in place for the same reason as well.

These kinds of protections mean wiki admins have to deal with less spam, but they also increase friction, which makes it harder for readers to make one-off edits and should be minimised as much as possible in the opinion of Weird Gloop, the folks behind a bunch of notable wikis, like the Minecraft wiki. Hopefully the move to MediaWiki will greatly improve the anti-spam tools available to allow for this to happen.

Finding who to contact

At the moment, what I've been doing is checking pages one at a time to determine who needs to be contacted, and emailing them. While I've been doing this, I have kept an evolving record of who has been contacted, who has agreed, and who cannot/will not agree in a Git repo on Salsa (Debian's GitLab instance).

The first thing I did was write a small script that listed pages that were three or fewer clicks away from the front page. This way, I could start with the important pages first. This turned out to be very annoying to work with, as these pages also had the most edits and unique authors (who could've guessed?). Many of them were "portal" pages as well, which are big collections of links rather than real content, so I tended to skip these.

I've created a little bit of JavaScript that acts as a bookmarklet (i.e. button in the bookmark bar that does things rather than open a URL). What it does is highlight usernames on the edit log of a given wiki page (which MoinMoin calls the "Info" tab) based on a colour code: green means agreed, yellow means contacted with no response yet, and red means "failed". This gives a great overview of the status of each contributor to the page, and also filters out edits made after the 24 July 2025 cut-off.

Screenshot of the Info tab for the Packaging page on the Debian wiki, showing contributors' usernames highlighted with colour.

The bookmarklet script highlights the username associated with each revision to show the relicensing status of each contributor.

Many pages have been completely rewritten or transformed so much that none of the original remained, so there was no point in contacting every contributor in the edit log if I could determine only the ones that mattered. Additionally, if all someone did was fix a typo or grammar mistake, they were also not worth contacting (though this was usually decided on a case-by-case basis).

This introduced a new problem; how can I filter out these contributors to find the editors responsible for the current content? The first thing that came to mind was git blame. So naturally, I ran a script on the Debian Wiki server overnight to transform the MoinMoin data into a giant Git repo, where each commit represented an edit, and the author was set to the editor's username and account email address. This resulted in a 252 megabyte repo with 290,052 commits.

MoinMoin stores its data on the filesystem, rather than a database like MediaWiki does. The data directory contains a user/ directory and pages/ directory.

Each page is represented as a directory under pages/, with special characters in page names encoded in a Moin-specific format. For instance, the page DebianDeveloper/Benefits is stored under pages/DebianDeveloper(2f)Benefits/.

Within each page, there is a cache/ directory (which we don't care about), a revisions/ directory containing a copy of the page at each revision (e.g. revisions/00000001), a current file containing the number of the latest revision, and an edit-log file containing the edit history of the page in tab-separated values (TSV) format.

The edit-log file stores the timestamp, revision number, username, IP address, and user ID for each revision, so using this and the data in the revisions/ directory, a Git repo could easily be constructed with a bit of scripting.

The final step was adding the user's email to the commit, which made it easy to associate usernames with emails within the Git repo. Each user has a file in the user/ directory named based on their user ID (assigned by Moin), and one of the attributes contained in that file is the user's email address.

Overall, the file tree looked something like this:

.
├── pages/
│   └── <page name>/
│       ├── cache/
│       ├── revisions/
│       │   ├── 00000001
│       │   └── 00000002
│       ├── current
│       └── edit-log
└── user/
    └── <user id>

Now I could git blame a page and find out exactly who should really be contacted, making this process much faster than reviewing every revision of a page by hand. This wasn't a foolproof method though, as it would blame a user for an entire line for both additions and modifications, like rephrasing a sentence or fixing a typo. It was a good starting point though, better than contacting anyone that ever edited the page. Additionally, git blame tended to be really slow, taking a few minutes every time it was run, likely because of the amount of commits involved.

I also made a wrapper around git blame to highlight lines in green, yellow, and red, allowing me to identify which lines remained to be reviewed. The colours mean the same thing as before with the bookmarklet script.

Highlighted blame output for an excerpt of the NvidiaGraphicsDrivers wiki page

The wrapper script produced a coloured output to determine the status of each editor of the page.

Recently, rather than using that 3-clicks-or-away list of pages to review, I have been sporadically reviewing any pages I stumble upon while doing other work. It may be less efficient, but it's more fun and feels less like a chore compared to reviewing pages one after another.

Sending out the emails

Of course now we need to do the most important part, actually contacting people over email.

For each user, the starting point is to retrieve the email address they have on their wiki account. Luckily, since I've got the repo as a git repo, I can git log -1 --author=<username> to do this rather than grepping the wiki data each time.

Now there were a few problems with this:

  • Email addresses were only verified for new accounts. This meant that some users changed the email address on their account to an invalid one, often intentionally (instead of asking for their account to be deleted).

  • Some email addresses were outdated and no longer existed. The most common case was for @debian.org addresses for people who have left the Debian project.

This meant that a little internet detective work was needed for some users, which involved checking things like searching Debian New Members and mailing lists. Sometimes users had a user page on the wiki with better contact info as well.

If I'm able to find a working email address, then I send them an email based on a template, which has been refined a couple times. It pretty much summarises what's going on and asks for permission to relicense their work to CC BY-SA 4.0.

These emails were sent from my @debian.org address, mostly relying on its domain reputation to cut through spam filters and end up in people's inboxes. I also CC'ed myself at a special maytham-wiki-license address, which allowed me to filter relicensing stuff into its own folder. Though, people kept leaving it out of their replies, so I ended up changing the filter to check the email subject instead. Eventually, I plan to create a Git repo containing an mbox per user to keep a record of people's responses.

Most failures occurred because the email address could not be found or the recipient mailserver had an issue, so I'd get that "Undelivered Mail Returned to Sender" email. In these cases, I wasn't able to find an alternative address. Other failures were mostly due to the contributor having passed away, and only one person so far has actually refused to relicense their work among those who have responded to the emails. All of these are being collectively referred to as "failed" users with regards to content relicensing.

Progress so far

At the time of writing (25 November 2026), the progress is as follows:

  • 791 users have been contacted.
    • 370 (47%) users have agreed to relicense their work.
    • The remaining 421 have not responded yet.
  • 67 users have been put down as "failed".

This is pretty good progress: of the 1,548 users who made 20 or more edits, 51% have been contacted, 24% have agreed to relicense, and only 4% have been marked as failed.

Next steps

Of course, not every contributor has been contacted yet, there are many more to go.

It would be great if there was a way to automate this, as a lot of it is repetitive. git blame has worked so far, but its limitations mean it still requires human review. Ideally, there should be a way to find the authors of the latest revision of the page based on word-diff rather than line-diff, and also rank them based on how much they contributed to the page. Maybe it would involve measuring Levenshtein distance per edit? Who knows?

At the moment, I don't have time to work on such a tool. So I'll keep doing it the same way I've been doing it so far: every once in a while when I open some page on the wiki, I will check who is yet to be contacted, and send out a handful of emails.

Handling failures

This likely entails stripping out each failed user's contributions from the wiki wherever it is part of the latest revision, which can also mean that some pages will need to be completely deleted as well. This is not a good thing, but it's something that has to be done to reach the aforementioned goal of a completely DFSG-free wiki.

This kind of thing probably should wait until the move to MediaWiki has happened. The tooling for doing these kinds of mass edits is much better there, and I think(?) there are plans to create a static archive of the MoinMoin wiki during or after the move, so that information isn't lost forever. This would be part of the general effort to clean up the wiki.

Following up when there is no response

A lot of the people who have been sent emails have not responded in a long time (>3 months, many much longer than that). These people need to have follow-ups sent to them, since there is a high chance the email ended up in their spam folders. I have sent follow-ups to a few people, some of which have succeeded, but this needs to be done in bulk for all the remaining people.

A limit also needs to be put in place before we give up on people. One approach would be to mark users as failed if they do not respond to two further follow-ups after the initial email, each spaced at least a month apart from the previous email, for a total of at least three months from first contact. This would be loosely based on the kind of procedure used by the Debian MIA Team.

Increased publicity

A while ago, I floated the idea on the wiki mailing list of asking the Publicity Team to create a Bits post (for instance) to let everybody know about the relicensing effort, and to ask contributors who have not been contacted yet to send us an email. This proactive approach would be much better and less work than the current reactive approach, since asking every person to send one email is a whole lot easier than one person sending hundreds of emails. Even though little interest was shown on the mailing list at the time, at some point, I'd like to follow through with this.

In a way, this post is serving the same purpose! You probably didn't know about what I'm doing before reading this, but now you do :)

Help wanted!

Have you ever, before 24 July 2025, edited the Debian wiki? Well step right up! It'd be great if you could send me a short email with the following format:

To: maytham-wiki-license [AT] debian (DOT) org
Subject: Relicensing my contributions to wiki.debian.org

Hi,

My username on wiki.debian.org is <INSERT USERNAME HERE>.

I give permission for all work I have submitted to
wiki.debian.org to be distributed under the terms of the Creative
Commons Attribution-ShareAlike 4.0 International license, the text of
which can be found at https://creativecommons.org/licenses/by-sa/4.0/.

It means I don't have to chase you down, which is great! Also note that the From address will be checked to make sure it's genuine, and it would be even better if you could GPG sign it!

Now for the complicated bit: Debian being a volunteer project is both a blessing and a curse. Having more people help out with this work would make this initiative much more sustainable. As someone put it in an email to me: "I am concerned about the bus factor of one Maytham." This is especially important as I've recently slowed down my work on this due to other matters that are either more important or just plainly more interesting.

If you want to help with contacting people, there is a short guide in the repo README. In short, find the contributors you want to contact (and make sure they have not already been contacted!) and send each of them an email based on the template, CC'ing my licensing email address so that it gets saved in my mailbox for the future mbox export. Then, you can modify the lists to add users to contacted, succeeded, etc.

Hopefully with a bit more work, we can get this across the finish line. This article is part 1 because the work is unfinished and still ongoing, so hopefully the progress numbers will be higher in a potential part 2 to the saga.

25 Nov 2026 8:00am GMT

C.J. Collier: Bringing Modern ML, Columnar I/O, and RAG to Perl Data Language (PDLPorters)

Disclaimer: The opinions stated here are my own, not those of my employer.

In my previous post on bringing native Protocol Buffers, gRPC, and Cloud/GenAI client libraries to Perl, I noted an important split in modern AI and data engineering: remote LLM orchestration happens over RPC, while local machine learning and columnar analytics rely on in-process C, C++, and Rust tensor libraries.

Naturally, the next question was: what about the local side of that equation?

What started as a pair of data-interchange prototypes (PDL::IO::Arrow and PDL::IO::Protobuf) developed alongside google-auth-library-perl (#35 and #37) quickly grew once we invited review from the PDLPorters community, in particular Ed J (mohawk2 / ETJ on #pdl) and Zakariyya Mughal (ZMUGHAL). That collaboration reshaped both the architecture and the governance of the project: 16 distributions (14 PDL::* modules at 0.011 and 2 Alien::* wrappers at 0.001) have now been migrated into dedicated repositories under PDLPorters, hardened across Linux, macOS, and Windows, and submitted as 16 pull requests built directly on Perl Data Language (PDL).


1. Eliminating the Two-Language Problem with a Clean 3-Layer PDL Architecture

In pure Perl, a list of one million floating-point numbers is an array of one million boxed scalar structures (SVs). Historically, serializing data into and out of Perl scalars or shelling out to external Python scripts and CLI wrappers created a painful "two-language problem" for engineering teams already running Perl for systems automation, log analysis, text processing, and service orchestration.

For nearly three decades, PDL has provided typed, contiguous C-level N-dimensional arrays (ndarrays) with vectorized broadcasting and affine slicing. What PDL lacked until now were zero-copy-friendly bridges to modern columnar file formats, deep-learning weight files, subword tokenizers, dense vector indexes, and hardware-accelerated inference runtimes.

Guided by PDLPorters conventions and PAUSE community stewardship (relinquishing 11 deprecated prototype namespaces and transferring primary maintainership on the active namespaces to ETJ while retaining co-maintainership alongside ZMUGHAL), the stack is organized into three clean layers:

  1. Alien::* Native Runtime Layer (Alien::GGML, Alien::LibTorch): Locates system-installed C/C++ libraries via pkg-config or builds low-level HPC tensor runtimes cleanly without coupling complex native build logic to thin Perl XS wrappers.
  2. Focused Engine & Zero-Copy I/O Layer (PDL::IO::*, PDL::ML::Engine::*, PDL::ML::Vector::*, PDL::ML::Token::*): Converts directly between native memory buffers (including the Apache Arrow C Data Interface and memory-mapped .safetensors / .gguf model weights) and contiguous PDL ndarray pointers.
  3. PDL Broadcastloop & Workflow Layer (PDL::ML::Preprocess, PDL::ML::Metrics, PDL::ML::RAG): Pure-PDL feature scaling, imputation, evaluation metrics, and retrieval-augmented generation workflows that compose naturally with PDL's broadcasting engine.

In practice, Perl services using traditional lexical search (TF-IDF, BM25, or regex log scanning) can now add subword tokenization, local ONNX or GGML embeddings, FAISS similarity search, and analytical DuckDB SQL completely in-process over shared C pointers.


2. Lessons Learned & Upstream XS Discipline (PDL#562 and PDL#563)

As the modules took shape, mohawk2 opened PDLPorters/pdl#562 ("Notes on binding libraries to PDL"), where we also contributed back a consolidated PDL Binding Cookbook. Several concrete engineering idioms shaped all 16 pull requests:


3. Inside the 16 PDLPorters Distributions & Pull Requests

Architecture diagram of the PDLPorters C/C++ columnar I/O, vector search, inference, and RAG stack over Perl Data Language (PDL).Figure 1: Modular C/C++ columnar I/O, vector search, inference, and RAG stack over Perl Data Language (PDL).

All 16 repositories under PDLPorters now have open pull requests spanning columnar and model-weight I/O, C/C++ ML and inference engines, dense vector search, tokenization, workflows, and Alien::* native library wrappers:

Distribution (Version) Pull Request Native Backend / Purpose
PDL::IO::Arrow (0.011) PDL-IO-Arrow#1 Apache Arrow C Data Interface IPC & Apache Parquet columnar read/write
PDL::IO::DuckDB (0.011) PDL-IO-DuckDB#1 In-process analytical SQL queries materialized directly into PDL ndarrays
PDL::IO::Protobuf (0.011) PDL-IO-Protobuf#1 Binary wire serialization between Protocol Buffer payloads and PDL ndarrays
PDL::IO::Safetensors (0.011) PDL-IO-Safetensors#1 Memory-mapped (mmap), zero-arbitrary-code Hugging Face .safetensors weight I/O
PDL::IO::GGUF (0.011) PDL-IO-GGUF#1 Memory-mapped quantized LLM tensor and metadata inspection for .gguf files
PDL::ML::Engine::ONNX (0.011) PDL-ML-Engine-ONNX#1 Hardware-accelerated PyTorch/JAX/TF model inference via ONNX Runtime's C API
PDL::ML::Engine::XGBoost (0.011) PDL-ML-Engine-XGBoost#1 Gradient-boosted decision tree training and scoring via libxgboost
PDL::ML::Engine::MLPack (0.011) PDL-ML-Engine-MLPack#1 Fast C++ classical ML clustering, classification, and nearest-neighbor routines
PDL::ML::Vector::FAISS (0.011) PDL-ML-Vector-FAISS#1 High-dimensional dense vector similarity search (L2, inner product, HNSW/IVF)
PDL::ML::Token::SentencePiece (0.011) PDL-ML-Token-SentencePiece#1 C++ SentencePiece BPE and Unigram subword tokenization into integer ndarrays
PDL::ML::Token::Tokenisers (0.011) PDL-ML-Token-Tokenisers#1 Fast BPE and WordPiece subword vocabulary encoding/decoding
PDL::ML::Preprocess (0.011) PDL-ML-Preprocess#1 PDL-broadcasted feature scaling, encoding, imputation, and train/test splitting
PDL::ML::Metrics (0.011) PDL-ML-Metrics#1 Vectorized accuracy, ROC/AUC, F1, RMSE, and ranking evaluation metrics
PDL::ML::RAG (0.011) PDL-ML-RAG#1 Chunking, normalized vector storage, prompt rendering, and hybrid local/cloud RAG
Alien::GGML (0.001) Alien-GGML#1 Alien::Build package for the ggml C/C++ quantized LLM tensor library
Alien::LibTorch (0.001) Alien-LibTorch#1 Alien::Build package for C++ libtorch tensor and inference runtimes

What It Looks Like in Practice

Reading and writing Apache Parquet or Arrow IPC files directly as named PDL columns (which also bridges cleanly to BigQuery's Arrow-based Google::Cloud::Bigquery::Storage::V1 API) takes a single call:

use PDL;
use PDL::IO::Arrow qw(rarrow warrow rparquet wparquet);

# Read Parquet columnar data directly into typed PDL ndarrays
my $cols   = rparquet('events.parquet');
my $scores = $cols->{score};

# Write named PDL columns back out to Parquet or Arrow IPC
wparquet({ id => long([1, 2, 3]), val => double([0.5, 1.5, 2.5]) }, 'out.parquet');
warrow({ id => long([1, 2, 3]), val => double([0.5, 1.5, 2.5]) }, 'out.arrow');

Indexing embedding vectors in FAISS and running local ONNX Runtime inference stay equally concise:

use PDL;
use PDL::ML::Vector::FAISS qw(flat_l2);
use PDL::ML::Engine::ONNX qw(load_session);

# 1. k-NN similarity search in FAISS
my $index = flat_l2(4);
$index->add(float([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0]]));
my ($distances, $indices) = $index->search(float([[0, 1, 0, 0]]), 2);

# 2. Local model inspection & inference via ONNX Runtime C API
my $sess    = load_session('model.onnx');
my @inputs  = $sess->input_names();
my @outputs = $sess->output_names();

And PDL::ML::RAG ties local vector retrieval together with either a local ONNX/GGML backend or a remote gRPC call via Google::Ai::Generativelanguage::V1:

use PDL;
use PDL::ML::RAG qw(chunk_text render_prompt);

my $rag = PDL::ML::RAG::Pipeline->new(
    embedder  => sub ($text) { ... },          # returns 1D PDL float vector
    generator => sub ($prompt, $hits) { ... }, # local ONNX/GGML or Gemini gRPC
);

$rag->ingest([
    { text => 'PDL provides fast n-dimensional arrays for Perl.', metadata => { src => 'pdl' } },
    { text => 'DuckDB runs vectorized SQL queries in-process.',   metadata => { src => 'duckdb' } },
]);

my $res = $rag->query('How do I run SQL?', k => 1);
print $res->{answer}, "\n";

4. Honest Capability Assessment: Where Perl Reaches Parity (and Where Python Still Leads)

High-level languages achieve modern ML throughput by orchestrating compiled C, C++, CUDA, and Rust engines over contiguous memory buffers. Distinguishing between analytics, tabular ML, inference, and RAG versus frontier foundation-model training clarifies what this expansion actually changes for Perl:

Workload Category Perl (PDL + PDL::ML / PDL::IO) Python (NumPy / PyTorch / JAX) Assessment
Columnar Analytics & ETL PDL::IO::Arrow, PDL::IO::DuckDB, PDL::IO::Protobuf pyarrow, duckdb, polars, pandas Near Parity: Both wrap the same C++ Arrow and DuckDB engines over contiguous buffers.
Classical & Tabular ML PDL::ML::Engine::XGBoost, MLPack, Preprocess, Metrics xgboost, scikit-learn, lightgbm Near Parity: Execution time is dominated by libxgboost and C++ routines.
Model Inference & Quantized LLMs PDL::ML::Engine::ONNX, Alien::GGML, Safetensors, GGUF onnxruntime, llama-cpp-python, safetensors Near Parity: Native C/C++ execution once tensors and weights are memory-mapped.
Dense Vector Search & RAG SentencePiece, Tokenisers, FAISS, PDL::ML::RAG sentencepiece, tokenizers, faiss, langchain Near Parity: Tokenization, embedding, and FAISS indexing all run in native C++ memory.
Frontier Model Training & Autodiff Limited (no native compiler-level autodiff or XLA/Triton stack) PyTorch, JAX, TensorFlow, Triton Python / C++ Lead: Multi-node GPU/TPU training, reverse-mode autodiff, and kernel fusion (torch.compile, XLA) remain Python/Julia/C++-centric.

Once data is resident in PDL ndarrays, chaining PDL::IO::DuckDB → PDL::ML::Preprocess → PDL::ML::Engine::XGBoost for tabular scoring, or PDL::ML::Token::SentencePiece → PDL::ML::Engine::ONNX → PDL::ML::Vector::FAISS → PDL::ML::RAG for dense retrieval, executes inside the exact same C and C++ libraries powering Python and Rust services.


5. Linux Distro Readiness: Debian trixie (and Enterprise Linux EPEL 9)

For Debian Developers and systems administrators, the best surprise is how much of the heavy C and C++ lifting is already packaged in Debian main thanks to the Debian Science and Debian Deep Learning teams. On a standard Debian 13 (trixie) machine today, apt already provides DFSG-compliant shared libraries and headers for the core numerical and ML runtimes:

(Enterprise Linux users benefit similarly: on Rocky Linux 9 and AlmaLinux 9, perl-PDL is available straight from EPEL 9.) Where an upstream C/C++ runtime is not yet packaged by the OS, Alien::GGML and Alien::LibTorch use Alien::Build's standard system-first probe: honoring pkg-config distro libraries automatically whenever present (as Debian's pkg-perl policy expects) and falling back to an isolated build only when needed.


6. What's Next

Paired with the Cloud gRPC, Protobuf, and Gemini SDK stack, Perl now has a cohesive story across both remote cloud AI orchestration and local C/C++ columnar analytics, vector search, and model inference. Over the coming weeks, our focus is on four concrete milestones:

If you use PDL, work on bioinformatics or scientific computing in Perl, or help maintain numerical packages in Debian, feedback on PDLPorters/pdl#562 and the 16 satellite pull requests is very welcome.

25 Nov 2026 3:18am GMT

Sergio Cipriano: My experience at Debian Brazil Reunion 2026 in São Paulo

My experience at Debian Brazil Reunion 2026 in São Paulo

The Debian Brazil Reunion Group Photo

Last weekend, I attended the first Debian Brazil Reunion.

Inspired by similar events organized in other countries, we decided to bring the idea to Brazil and organize a three-day event focused on contributing to Debian.

Every day, we started at 9 a.m. and worked until around 8 p.m.

I was so immersed in the event that even after getting back to the hotel, I kept working. I was having so much fun that I just couldn't get out of the mood of getting things done.

What everyone was working one

A few people were working on translations into Brazilian Portuguese, another group was organizing the MiniDebConf that will take place in Curitiba next year, and the rest of us, myself included, were working on packaging and other development-related tasks.

One thing that made me particularly proud was seeing Lucas Ramalho and Giovanna Macedo travel all the way from João Pessoa to attend the event.

I first met them a few months ago during Debian Day, when I went to João Pessoa to give a packaging workshop and a talk about what it's like to be a Debian contributor.

Seeing them again in São Paulo, eager to learn more about packaging, really inspired me to keep helping newcomers.

It's normal for people to come and go when making their first contributions. That's why it's always rewarding to help someone and see them stick around and become part of the project.

What I was working one

I started working on my list of Neovim plugins that I want to package for Debian.

I managed to upload neovim-promise-async, a package that ships both a Neovim plugin and a Lua library.

It was my first time packaging a Lua library, so I learned a lot by reading the dh-lua code to better understand a few details of the Lua ecosystem. Writing dh-lua.conf was a bit confusing at first, but it turned out to be simpler than I expected. I also had fun coming up with an autopkgtest for the package.

I also spend some time discussing and designing a feature with Aquila Macedo for Debian Gitlab self-service.

During the MiniDebConf Brazil, Antonio Terceiro gave a lightning talk about salsa-scripts, a tool he developed to help him approve Salsa accounts without having to use the GitLab interface.

I really liked the idea, but there was one limitation: only members of the salsa-admins team could use the tool. I tried to join the team to help with account approvals, but the only way to do so was by having an account with full administrative privileges.

I don't want that, and I agree with them that people should not have that level of access just to help approve new accounts.

My goal was to solve the problem of approving accounts during workshops. I hate having to pull commits from GitHub just because someone hasn't had their Salsa account approved yet. And I'm not blaming the salsa-admins team. It's simply impossible to approve accounts quickly enough to keep up with the pace of live events.

That's when I came up with the idea of adding a feature to salsa-scripts that would allow any Debian Developer to approve new accounts.

I shared this idea Aquila, and he introduced me to Debian Gitlab self-service. I wasn't aware of this project, and after discussing it, we decided that implementing the feature there would make more sense than adding it to salsa-scripts.

Anyway, if you want to learn more about this effort, check out the Merge Request: https://salsa.debian.org/salsa/gitlab-newuser/-/merge_requests/4

Aquila took the idea I had been putting off for a while, implemented the whole thing in just one day, and the result turned out pretty cool:

Debian Gitlab self-service feature outcome

Finally, I also sponsored a few uploads. I helped Tobias Sette and Giovanna Macedo with their first uploads to Debian.

It's always nice to help newcomers in person. It's much easier to explain things in detail, answer questions as they come up, and get things done faster than going back and forth reviewing merge requests.

Wrap up

It was an amazing experience!

I want to thank Rafael Passos and David Tadokoro for making this happen. They managed to reserve one of the classrooms at the University of São Paulo (USP). Without that, the event would have been much more expensive if we had needed to rent a coworking space.

It was also my first time visiting USP, which was a nice experience. It's one of the most important universities in Brazil!

I'm already looking forward to the next edition!

25 Nov 2026 1:35am GMT