News for hackers. Stuff that matters.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by forgotmypw17 on Wednesday July 23, 2025 @11:21AM (#44660238)
Yes, it's still well-maintained and highly backwards-compatible, avoiding breaking changes between releases.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by martinflack on Wednesday July 23, 2025 @11:30AM (#44660333)
And the last release was three weeks ago! Perl 5.42.0 was released July 3, 2025.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by walterbell on Wednesday July 23, 2025 @11:27AM (#44660298)
We need an ROI metric to quantify the backward compatibility and low churn of Perl relative to languages like Python, Ruby, golang.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by lordofgibbons on Wednesday July 23, 2025 @11:34AM (#44660394)
Golang declared a perfect backwards compatibility guarantee way back when version 1 was released. So in this regard, Perl isn't unique.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by naikrovek on Wednesday July 23, 2025 @12:05PM (#44660757)
well, Go has broken that backwards compatibility when it was deemed important enough to break things. So it's not "perfect" and I imagine Perl's isn't either.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by drysart on Wednesday July 23, 2025 @12:21PM (#44660940)
Perl as a language is pretty mature and rarely sees breaking changes (and what breaking changes exist are in corners of the language that are extremely esoteric even for Perl). You can take a Perl script written 25 years ago and it'll still run just fine.

New language features and things that might alter existing behavior are usually locked behind a version declaration opt-in at the top of your script. You need to do something similar to `use v5.39;` to unlock new behaviors from that version of Perl -- which may contain breaking changes but those are also generally backward compatible too.

But that's for the base language and standard library. Individual third-party packages may vary in their backward compatibility.

Re:Proxmox Donates €10k to the Perl and Raku Foundation by dcassett on Wednesday July 23, 2025 @12:46PM (#44661250)
I remember a breaking change that was not esoteric: "keys %hash" started producing a different result each time the script was run. It required replacing the construct with "sort keys %hash" to get reproducible results.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by jcynix on Wednesday July 23, 2025 @01:54PM (#44662025)
I can't remember a time where "keys %hash" returned the keys in a defined order. And I've been using Perl for over 30 years now.

I've just consulted my first issue of "Programming Perl" (printed in 1990l and it says:

keys (assoc ARRAY) this function returns a normal array consisting of all the keys of the named associative array. The keys are returned in an apparently random order, but it is the same order as either the values() or each() function produces (given that the associative array has not been modified)

Re:Proxmox Donates €10k to the Perl and Raku Foundation by dcassett on Wednesday July 23, 2025 @04:10PM (#44663444)
Agreed, but prior to the change the "apparently random" as described in the documentation was similar to using random(fixed_seed), rather than the new behavior of random(system_time), which made the output of the script non-reproducible given the same inputs. The change to Perl's behavior was made for security reasons.

(Edited for clarity)

Re:Proxmox Donates €10k to the Perl and Raku Foundation by ether_at_cpan on Wednesday July 23, 2025 @06:11PM (#44664570)
> I can't remember a time where "keys %hash" returned the keys in a defined order.

It was never a _defined_ order, but before version 5.17.6 (November 2012), each hash returned its list of keys and values in a _consistent_ order between runtimes, so some code ended up getting written that depended on this ordering (say in a unit test, or a list that would get assigned into a database). The change was to make the ordering random/inconsistent/unpredictable every time the list was fetched, which as I recall did break some number of tests in CPAN modules and required new releases.

Re:Proxmox Donates €10k to the Perl and Raku Foundation by librasteve on Wednesday July 23, 2025 @01:03PM (#44661449)
Perhaps, but code that inadvertently depends on the Hash implementation returning keys in a particular order is arguably incorrect.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by SoftTalker on Wednesday July 23, 2025 @11:32AM (#44660370)
> avoiding breaking changes

Perl 6?

It was so breaking they don't even call it Perl anymore.

Re:Proxmox Donates €10k to the Perl and Raku Foundation by kstrauser on Wednesday July 23, 2025 @11:51AM (#44660594)
In fairness to Perl, that's a good reason not to consider it a breaking change.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by em-bee on Wednesday July 23, 2025 @12:02PM (#44660714)
perl 6/raku was a redesign. as far as i remember, upgradeability from perl 5 without code changes was never the goal.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by aaronbaugher on Wednesday July 23, 2025 @12:08PM (#44660789)
It's unfortunate that that wasn't clear to people who weren't closely involved with Perl at the time. So many people got the impression that Perl 5 was outdated as soon as 6 was in development, so they thought they had to move on from it. It's too bad Raku didn't have a different name from the start.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by petdance on Wednesday July 23, 2025 @02:18PM (#44662293)
> It's too bad Raku didn't have a different name from the start.

We thought that it would take a year or two, not decades.

Also, the intent was to have a Perl 5 compatibility mode.

Re:Proxmox Donates €10k to the Perl and Raku Foundation by aaronbaugher on Wednesday July 23, 2025 @04:15PM (#44663496)
Looks like the last time I tried out Perl 6 was almost 10 years ago. Even wrote a few blog posts about it before giving up on it again. Might be time to take another look.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by lizmat on Wednesday July 23, 2025 @06:31PM (#44664714)
There is a Perl 5 compatibility mode: it's called Inline::Perl5.

Maybe not the one that was originally planned. But that was only a real possibility if Perl 5 would be able to get rid of its XS addiction.

Ask yourself: how many of the up river Perl modules are Perl only?

Re:Proxmox Donates €10k to the Perl and Raku Foundation by oofbey on Wednesday July 23, 2025 @03:13PM (#44662856)
Agreed. Probably why they renamed it. I think everybody probably wishes they'd taken a new name from the start.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by SoftTalker on Wednesday July 23, 2025 @12:03PM (#44660723)
Isn't that the definition of a breaking change?
Re:Proxmox Donates €10k to the Perl and Raku Foundation by em-bee on Wednesday July 23, 2025 @12:25PM (#44660995)
yeah, in the same sense that D is a breaking change for C, or wayland for X11. the point is that as far as i know it was never intended that existing perl 5 code would be rewritten. unlike the python 2 to 3 change where the intention was that people would convert using 2to3 and later using compatibility modules that allowed writing code that works with both. python 2 development stopped after 12 years, much later than they expected.
Re:Proxmox Donates €10k to the Perl and Raku Foundation by 0xbadcafebee on Wednesday July 23, 2025 @12:36PM (#44661120)
If Ford makes a 4-door passenger car, and then comes out with a 2-door sports car, and keeps producing both cars, that's not a breaking change. It's just a new car.

Perl 5 is still supported, Perl 6 (Raku) continues independently.