Live data from Hacker News

Perl 5.26.0 released

nntp.perl.org

101–110 of 165 posts

Re: Perl 5.26.0 released

#101
post #3

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…

Your comment about list comprehensions reminded me of an old, interesting Perl book, "High-Order Perl", which explores functional programming techniques in Perl. One of the chapters implements a lazy map - which, turns out, is actually quite easy to implement in a few loc, since Perl supports closures and high-order, first-class functions.

http://hop.perl.plover.com/

Re: Perl 5.26.0 released

#102
post #17
post #3

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.

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…

They're all stagnating. Nim for Python & Crystal for Ruby are the logical steps forward to get speed (GCC & LLVM respectively for compilers).

Re: Perl 5.26.0 released

#103
post #93
post #88

Earlier 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.

You're declaring the function within that scope. You can do this in other languages too. In Javascript, I can declare a function within a scope too:

  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

#104
post #93

Earlier 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.

That's not a requirement of anonymous callbacks. That's just a symptom of poor coding standards. It can happen in Python too.

Re: Perl 5.26.0 released

#105
post #2

Wow, 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).

> Except, of course, that Perl is awesome at regular expressions, an advantage that most languages must have caught up on, no?

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

#106
post #38

Earlier 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...

Yes, and that's the reason why it's important to choose a tool that gets Unicode correctly. Perl is an example of such a tool.

Re: Perl 5.26.0 released

#107

Earlier 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.)

> Perl is still the only language I've seen that has a dedicated syntax for regular expressions.

So, you've never seen Ruby?

Re: Perl 5.26.0 released

#108
post #52

Earlier 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

Yes (well, for MRI at least; I'm not sure other implemebtations use the same regex engine) and it used a different regex engine before Oniguruma. But engines and syntax are unrelated; Ruby has a dedicated regex literal syntax which was directly inspired by Perl.

Re: Perl 5.26.0 released

#109
post #30

Earlier 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.

> They are the haters and trolls, who are doing the name calling.

At a minimum, that goes both ways. See, well, the above.

Re: Perl 5.26.0 released

#110
post #98
post #62

Earlier 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…

Ruby 1.0 was released in 1996 and Python 1.0 in 1994. If Perl's demise was due to the simpler syntax of Python and Ruby why was Perl ever popular? Answer: Perl CGI at the dawn of the WWW. I'd date Perl's decline from around 2005 so Django and Rails might have more to do with it than languages and syntax.
Post reply on HN