Menu

#Xs

5 posts

Feed·
5 of 5 posts
Introducing Object::Proto — A Prototype Object System for Perl
📰
0Read More

Introducing Object::Proto — A Prototype Object System for Perl

DEV Community·LNATION·6 months ago
#D5k36aru
#perl#xs#programming#software#coding

Perl's object system is famously flexible. bless a reference, add some accessors, and you're in business. Over the years, modules like Moose, Moo, and Mouse have built increasingly sophisticated layers on top of that foundation — giving us type…

15s
Heap::PQ — A Binary Heap (Priority Queue) Implementation for Perl
📰
0Read More

Heap::PQ — A Binary Heap (Priority Queue) Implementation for Perl

DEV Community·LNATION·6 months ago
#v6BjmFGu
#perl#xs#programming#software#coding

So What Is A Binary Heap? A binary heap is really just an sorted array pretending to be a tree. Each element has a parent and children, but instead of pointers you find them with simple array indexes.…

15s
LRU::Cache - A Fast Least Recently Used Cache For Perl
🖼️
0Read More

LRU::Cache - A Fast Least Recently Used Cache For Perl

DEV Community·LNATION·6 months ago
#lQU0zvcM
#perl#xs#programming#comment#cache

Caching is one of those things every application needs eventually. Whether it's DNS lookups, database rows, or computed results, keeping frequently accessed data close avoids expensive recomputation.…

15s
Enums for Perl: Adopting Devel::CallParser and Building Enum::Declare
🖼️
0Read More

Enums for Perl: Adopting Devel::CallParser and Building Enum::Declare

DEV Community·LNATION·6 months ago
#O7RXWOKK
#perl#xs#programming#comment#software

Adopting one from Zefram Back in 2011, Andrew Main, known to the Perl community as Zefram, released Devel::CallParser. It was a quiet piece of infrastructure: a C API that let XS modules attach custom argument parsers to Perl subroutines.…

15s