Look, I don't hate Perl. It was my first real language beyond basic that I used for a long long time. But Perl's popularity peaked in the late 90s? Early 2000s? The failed Perl 6 adventure was about the time that people started fleeing elsewhere, like PHP.
Maybe Perl 6 was not even really needed and Perl is perfect ;)
Weird donation if you ask me. There are many many many more interesting languages that I would rather see succeed. Koka, Hylo, Vale, Whiley, Lobster, etc.
They'll rarely advertise it in a job listing of course. They're looking for people with Java/C#/C++/Python experience, and there's certainly plenty of that, but also thousands of little Perl scripts doing ETL workflows.
See the comment from Olaf Alders here:
These types of donations to open source initiatives should be publicized and encouraged to have brands see it as a worthy way of gaining supporters.
jmclnx•4mo ago
I got close 20 years ago, but "things".
bastardoperator•4mo ago
athenot•4mo ago
Sure you can write amazingly obscure foot-guns in Perl but that's also true of any other language. But honestly I'd rather a few lines of obscure Perl code WITH a comment block explaining why, than a dozen classes with bits and pieces of business logic spread all over the place.
samoit•4mo ago
rurban•4mo ago
kstrauser•4mo ago
1. Sigils, and relatedly, contexts. In my opinion, `my $length = @list;` is a horrid way to spell `length = len(list)`. It feels too much like typecasting magic.
2. Having to opt in to pass by reference caused so much pain. You're happily passing a hash around, but then you want to do something to it, so now you have to change the type signature of the function, then everything that calls it, etc. etc.
Contrast with Python, where everything is pass-by-object-reference and sigils aren't needed because contexts in the Perl sense don't exist. This worked on my first try:
I liked Perl. I wrote a lot of Perl. And yet, I still had to pull out The Book whenever I wanted to do anything more complex than passing a couple of ints or strings around. This stuff is knowable, obviously, but I just got tired of having to know it.hackthemack•4mo ago
kstrauser•4mo ago
davidschultz•4mo ago
If one wants the function to mutate them, one has to explicitly mark them as `$x is rw` in the function signature; this then requires one to always pass a mutable container for $x. (A bit more detail: https://andrewshitov.com/2019/10/15/110-is-rw-vs-is-raw-in-r... )
kstrauser•4mo ago
Ultimatt•4mo ago
To do this in Python is truly grim:
and thats doing it the unpythonic way, if you were to do this like the typical Python dev would accept in an MR for a large corp you would have written: They would still hate you for defaultdict(datastructure) though. Because absolutely no one in Python realises its got that level of expressionism one of the few places it does.kstrauser•4mo ago
Enk1du•4mo ago
odc•4mo ago
So when you see
then $a is an array reference where each item is a hashmap. But with then $a is an array reference where each item is a reference to a hashmap.zaucker•4mo ago
mrweasel•4mo ago
I've done a few small Perl script in the past month, mostly just to try out things and learn a bit more. I'm surprised how robust the code turns out, without me trying. The Perl syntax is a little all over the place at times, but it's incredibly powerful.
Overall it's probably not a language I'd use at work, unless I have to, but for hobby project I would pick Perl again. It has put some of the fun and humanity back in programming.
8s2ngy•4mo ago
reddit_clone•4mo ago
Its only fault is, it has too much stuff in it.
7thaccount•4mo ago
The main problem in my eyes is not enough volunteers (although they are doing a superhuman effort) to get it into the production level it needs to get more widespread adoption. The other problem is that Python already has a huge amount of libraries and is considered to be "good enough" feature wise, so it's hard to attract interest.
I do enjoy reading Raku code and think it is super neat as this do it all post-modern language. Inertia is hard to overcome though.
reddit_clone•4mo ago
Razengan•4mo ago
That said, how does DuckDuckGo get that money?
7thaccount•4mo ago
sciolizer•4mo ago
reddit_clone•4mo ago
Some of the warts are gone (like a list element needs to have a scalar context, the stuff that scares away beginners).
It is a _large_ language with paradigms and constructs that are from everywhere (ML, Haskell, Lisp, C, Perl you name it).
Powerful operators. Actually too powerful. Easy to write elegant line-noise kind of code.
Easy to use built in concurrency. (There isn't much that is not built in :-) )
Nice language for Sys/Ops scripting if you find Bash too dangerous and Python too tedious.
davidschultz•4mo ago
There's also this polished three-hour introductory lecture: https://www.youtube.com/watch?v=eb-j1rxs7sc
Combine that with reading up on details in the reference and you're in for a decent start. https://docs.raku.org/reference
pfexec•4mo ago
neuroelectron•4mo ago