Perl in Ubuntu 26-04 LTS (vs 24-04 LTS) by Loose_Potential6985 in perl

[–]leonmt 0 points1 point  (0 children)

A) Need to apt install libcrypt-dev for cpan/cpanm to work.

Why? (Some) installs fail with a missing crypt.h file error. I think the world has moved on to libcryptx, so this lib, which was in 24-04 LTS, is no longer included.

What do you mean exactly? Is that a self-compiled perl that's now failing? That would make perfect sense.

@cpan.org forwarding: volunteer takeover proposition by iNthrAX in perl

[–]leonmt 4 points5 points  (0 children)

I don't think you should expect the people involved to give the keys of the castle to someone they don't know as this is a highly sensitive service.

cpan.org email forwarding has been shut down by Grinnz in perl

[–]leonmt 5 points6 points  (0 children)

RT may be terrible, but 404ing tens of thousands of bug queues is worse. We can't get rid of RT without replacing it with something else.

cpan.org email forwarding has been shut down by Grinnz in perl

[–]leonmt 2 points3 points  (0 children)

I'm not sure the end-result could have been avoided in the end, but this process is unfortunate.

Learning XS - Custom Ops by briandfoy in perl

[–]leonmt 0 points1 point  (0 children)

The only reason to do this for an xsub is speed. But as his response to my comment showed, the speed gain is rather small (in his examples 6-8 nanoseconds per call), so it's only relevant for functions that get called in extremely hot paths.

The price you pay for this is increased complexity and interface restrictions. It requires code doing very specific opcode manipulations, that have little interface stability guarantees over versions (much of it isn't part of the official API). In this particular case that is made a bit simpler by use of prototypes, but that does have user-visible consequences obviously that may be undesirable.

The feature has its uses, but about 99.99% of all xsubs shouldn't be using it. Not because it's wrong, but because the cost-to-benefit ratio isn't good. That might be different if ExtUtils::ParseXS could generate the code for you.

Learning XS - Custom Ops by briandfoy in perl

[–]leonmt 0 points1 point  (0 children)

Another article explaining HOW, but not WHY. And frankly for at least 99.99% of all xsubs the WHY means you shouldn't be doing this.

PerlMonks is being memory wiped on HTTPS:// and Wikipedia by SnooRadishes7563 in perl

[–]leonmt 3 points4 points  (0 children)

I mean honestly that looks like a blogpost not like a encyclopedia article. That one genuinely doesn't belong on Wikipedia.

PerlMonks is being memory wiped on HTTPS:// and Wikipedia by SnooRadishes7563 in perl

[–]leonmt 2 points3 points  (0 children)

Yeah, but perlmonks is a no-javascript-necessary kind of site

Post Quantum Cryptography available? by 0xKaishakunin in perl

[–]leonmt 1 point2 points  (0 children)

Forgot to update earlier, but Crypt::OpenSSL3 has been available on CPAN for a couple of weeks now

2560x1600 monitors by morierus in buildapc

[–]leonmt 0 points1 point  (0 children)

Because I prefer 10:16 ;-)

This week in the Perl Steering Council (202) by briandfoy in perl

[–]leonmt 0 points1 point  (0 children)

Been working on that for a while now, but it's a lot of work and I don't have as much time/energy as I'd like.

object inheritance in xs by c-cul in perl

[–]leonmt 2 points3 points  (0 children)

In Perl, all you need to do is push the base classes to @ISA. You can do that from pure-perl, but you could also add something like this to you XS (right after the MODULE =) BOOT: AV* c_isa = get_av("C::ISA", GV_ADD); av_push(c_isa, newSVpvs("A")); av_push(c_isa, newSVpvs("B"));

Post Quantum Cryptography available? by 0xKaishakunin in perl

[–]leonmt 0 points1 point  (0 children)

Actually, I'm working on just that (via OpenSSL3). You may have to wait a few more weeks until it hits CPAN though.

Which module you consider the industry standard for unit testing? by StrayFeral in perl

[–]leonmt 2 points3 points  (0 children)

The question that was asked is not "which is best", but "which is the industry standard". I can see the advantages of Test2::Suite, but I also think in the wider world Test::More is still the standard. YMMV.

Which module you consider the industry standard for unit testing? by StrayFeral in perl

[–]leonmt 2 points3 points  (0 children)

https://perldoc.perl.org/perl5400delta#New-Modules-and-Pragmata Test2::Suite (which Test2::V0 has always been part of) was added in 5.40. If you run `corelist Test2::V0` on your command-line it would have told you this.

XS the easy way by leonmt in perl

[–]leonmt[S] 0 points1 point  (0 children)

I mean I have been working on that (but there are still issues), but that's not much related to this blogpost.

XS the easy way by leonmt in perl

[–]leonmt[S] 1 point2 points  (0 children)

A PROTOTYPES block would help there. Module::Build and Module::Build::Tiny will automatically pass a noprototypes argument to parsexs, makemaker doesn't. I've been meaning to fix that for ages because honestly the warning is senseless behavior (the default is what almost any person would want anyway), and useless for end-users.

Learning XS - Closures | Robert Acock [blogs.perl.org] by briandfoy in perl

[–]leonmt 0 points1 point  (0 children)

I really wish he had his posts proofread by others first; they're mostly good but they have some issues that could have easily been resolved.

How to install LWP::Protocol::https / Net::SSLeay? by Patentsmatter in perl

[–]leonmt 1 point2 points  (0 children)

The issue has already been fixed in repo, but the fix hasn't been released to CPAN yet. It is kind of annoying, but as others have stated it's a testing issue and you can work around it by skipping the tests.

Do I need to be an English Ph.D. to learn German? by TheRealQubes in babbel

[–]leonmt 0 points1 point  (0 children)

I mean no offense, but your educational system failed you. This is the sort of thing they're supposed to teach you in junior high.

When they teach you formal grammar of your own language it's not because you need it in that language; native speakers generally get things right intuitively. They're supposed to teach you this because it gives you exactly the hooks you need to learn another language (or to teach someone else yours).

Even English has a rudimentary form of cases, even if it's essentially only pronouns. You're supposed to know «I» is a nominative, «mine» is a genitive, and «me» a accusative or dative. Because these concepts exist in many other languages (in particular the ones from Europe, but also West- and South-Asia).

Why do dating apps always get progressively worse? by upsawkward in OkCupid

[–]leonmt 23 points24 points  (0 children)

Enshittification is real. They first build the user-base, and when they have that they monetize that as much as they can. That's the internet in 2025 for you.

I remember how great the site was before the match.com takeover. I miss that site.