Guys I am genuinely asking this and I have zero intent on bashing on Perl. What is the position of Perl industry right now? how much it can compete with Python. Where does it compete? is it on losing side ? P.S. I am student and I have no real perspective on what is going on in industry right now.
Perl has great Unicode support. Not just Unicode regexes, but a lot of built-in Unicode support ( https://perldoc.perl.org/perlunicode.html ). I have no idea if other languages have caught up, though. Perl doesn't have anything like Python's GIL. People have other complaints about threading in Perl, but you can count on things running in parallel more often. I believe Larry Wall is correct that he borrowed more from…
Perl 5.26.0 released
101–110 of 165 posts
Re: Perl 5.26.0 released
#102Guys I am genuinely asking this and I have zero intent on bashing on Perl. What is the position of Perl industry right now? how much it can compete with Python. Where does it compete? is it on losing side ? P.S. I am student and I have no real perspective on what is going on in industry right now.
Mostly legacy. perl5 is not developed anymore, just managed to death compared to the other big 3. Of the big 4 only php managed to improve itself significantly, but it's still only php. perl5 is still top 10, runs tons of code, has one of the hugest library codebases (CPAN), and is much easier to use than e.g. python or php. ruby is better, but slower. You cannot use simply a repl in whitespace formatted language (py…
Re: Perl 5.26.0 released
#103Earlier quoted context omitted.
The one thing that I miss in Python is true anonymous functions. Perl has them. JavaScript has them. Ruby has them. Python just has lambda functions which can only evaluate an expression.
Meh. In Python you can put a def inside of any scope you want and do anything that you want with it. The fact that it winds up with a name in that scope doesn't stop it from being anonymous everywhere else. At that point the difference is just syntax.
function myFunc () {
var myFunc2 = function () {};
return myFunc3().then(myFunc2);
}
This isn't some Python-specific thing.> At that point the difference is just syntax.
Isn't that the case with most things? If I said that I missed curly braces, that's "just syntax" too.
Re: Perl 5.26.0 released
#104Earlier quoted context omitted.
Meh. In Python you can put a def inside of any scope you want and do anything that you want with it. The fact that it winds up with a name in that scope doesn't stop it from being anonymous everywhere else. At that point the difference is just syntax.
And better clarity---I've seen anonymous callback hell in .js, no thanks.
Re: Perl 5.26.0 released
#105Wow, I haven't looked at Perl in a while, but all sorts of numbers mentioned in the announcement really surprise me. Btw., as mentioned in announcement. The actual changes are here, if you missed that: https://metacpan.org/pod/release/XSAWYERX/perl-5.26.0/pod/pe...
Yes, impressive community effort for a language that... Well... I have heard nothing good about in any "at the water cooler" conversation that I was ever in, over the past fifteen years or so. Except, of course, that Perl is awesome at regular expressions, an advantage that most languages must have caught up on, no? Not for nothing Perl shows up in most hated-lists all around town (top 10 at Stack Overflow).
If you mean at "parsing text", for which regexes are a tool, I don't think many other languages have caught up with Perl, which had (with Perl 6) gone beyond regexes to grammars.
But, even ignoring that, I think plenty of languages have regex engines less powerful than Perl's, and poorer ergonomics for using regexes in the language independent of regex engine quality so even on regexes as such Perl has an advantage.
Re: Perl 5.26.0 released
#106Earlier quoted context omitted.
Unicode regexes is a pretty small edge case. Is it because Perl is awesome, or because Unicode sucks?
Most people who understand what a can of worms those systems are start leaking a little grey matter from their ears when someone mentions the phrase "Unicode Regex". I have mental images of driving a wildly overpowered monster truck with no brake lines over a minefield. And then I start to consider the implications of passing the /i flag in...
Re: Perl 5.26.0 released
#107Earlier quoted context omitted.
Yes, impressive community effort for a language that... Well... I have heard nothing good about in any "at the water cooler" conversation that I was ever in, over the past fifteen years or so. Except, of course, that Perl is awesome at regular expressions, an advantage that most languages must have caught up on, no? Not for nothing Perl shows up in most hated-lists all around town (top 10 at Stack Overflow).
Perl is still the only language I've seen that has a dedicated syntax for regular expressions. Every other language requires you to write your regexes as strings, which puts you squarely in backslash hell. (I'm sure there must be other languages with dedicated regex syntax, but I'm not aware of any.)
So, you've never seen Ruby?
Re: Perl 5.26.0 released
#108Earlier quoted context omitted.
Ruby is a direct descendant of Perl and borrows its regex syntax.
Ruby used Oniguruma (and now Onigmo) for RegEx https://github.com/k-takata/Onigmo
Re: Perl 5.26.0 released
#109Earlier quoted context omitted.
FYI rurban is a well known Perl programmer who hates almost everyone.
I'm not hating anyone. I'm warning about the destructive work of 5 major p5p committers, who ran down the project. They are the haters and trolls, who are doing the name calling. and doing the destruction to the code base. I'm the one who is fixing the mess.
At a minimum, that goes both ways. See, well, the above.
Re: Perl 5.26.0 released
#110Earlier quoted context omitted.
Python's growth in popularity is largely due to its superior data science libraries and the backing of Google. Without these it wouldn't be where it is today. Perl's stewardship is largley responsible for its decline. If Perl6 hadn't taken 15 years to complete Perl's popularity might be different. Perl6 is far superior to Python and most popular languages. It's just not performant at string/regex handling which is ir…
> Python's growth in popularity is largely due to its superior data science libraries and the backing of Google. Both are false. Data science libraries are quite new development that happened because Python got popular, not the other way around. Backing by Google (whatever you mean) was irrelevant, as the main selling points for Python dozen years ago was simple and readable syntax and nice web toolkits (a movement t…