Live data from Hacker News

Perl 7 is going to be Perl 5.32, mostly

perl.com

531–540 of 573 posts

Re: Perl 7 is going to be Perl 5.32, mostly

#531
post #58

Earlier quoted context omitted.

JS is probably closer to billions.

Not just orders of magnitude more money, but more importantly the large number of incredibly talented people working full time on JavaScript, in many different companies and research institutions, collaborating together. JavaScript benefits from an overwhelming network effect and critical mass of tools and developers, that Perl just can't touch, and never will.

Unfortunately it does not change bad parts.

Re: Perl 7 is going to be Perl 5.32, mostly

#532

Perl has these tiny neat features that I still miss in other languages. Like unless (opposite of if), and postfix syntax. print "It worked!\n" unless $error; print "Item: $_\n" foreach @items;

I hate unless! It always makes me stop and think a few times, causing double or even triple negatives in my brain. What's wrong with something like "print this if not $error"? Maybe that's because I'm not a native English speaker?

I am not native English speaker but I like it in ruby, helps with double not:

    if not not_implemented
    unless not_implemented

Re: Perl 7 is going to be Perl 5.32, mostly

#533

Earlier quoted context omitted.

I don't think your performance numbers are very accurate. I've done a bit of Perl and a lot of Python and they're fairly comparable in most cases. Python is lightning fast for a lot of scripting tasks and I generally use very few libraries for day to day tasks because the Python stdlib is so good. Unless you're doing something really simple with Perl command line switches that operate over an entire file, I'd bet Per…

No, his estimates look pretty accurate to me. I've also done a fair bit of both Perl and Python (including working with the internals in C). Perl is significantly faster than Python for many types of common string manipulation tasks. They're both fast, sure, but Perl has some key optimizations.

For maybe some regex tasks sure, but there are also plenty of Python operations that are significantly faster than Perl, not to even mention all the data science stuff. I might have misunderstood the comment as evaluating the language on one thing doesn't capture a broad/general spectrum of usefulness.

Re: Perl 7 is going to be Perl 5.32, mostly

#534

Earlier quoted context omitted.

I don't think your performance numbers are very accurate. I've done a bit of Perl and a lot of Python and they're fairly comparable in most cases. Python is lightning fast for a lot of scripting tasks and I generally use very few libraries for day to day tasks because the Python stdlib is so good. Unless you're doing something really simple with Perl command line switches that operate over an entire file, I'd bet Per…

> I don't think your performance numbers are very accurate. Food for thought. https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

So Python is faster than Perl on 6/10 benchmarks? This seems to support my argument that they are generally fairly comparable and definitely not that Perl is waaay faster.

Re: Perl 7 is going to be Perl 5.32, mostly

#537

I was part of a team that wrote significant parts of Amazon's payment processing systems in Perl in the late 90s. I really loved the language. It's object system was so flexible and powerful. Once you understood how write idiomatic perl. It was a joy to use. I'm looking forward to trying out Perl 7.

Ok, so I wrote tons of Perl and am to this day a fan, but I don’t think one can call a blessed hash (or scalar for the fancy folks) an object _system_. It is flexible and fun and I do miss it. True story: years of passing functions to other functions and map/greps made the switch to FP Scala (another language I fear will die) a lot easier!

Very similar story here; I barely write any Perl nowadays but am still very fond of it.

I especially like the sigils - they serve in a way as a primitive type system and actually convey useful information when reading code. I suspect people who complain about them are the same who dislike strong typing.

Interestingly, like you, nowadays I am very fond of Scala.

Re: Perl 7 is going to be Perl 5.32, mostly

#538
post #357

Earlier quoted context omitted.

My understanding was that Perl's OO system was directly inspired by Python's. I can't find a source on that though.

Other way round I think.

Nope. http://www.perl.com/pub/a/2007/12/06/soto-11.html

> I don’t really know much about Python. I only stole its object system for Perl 5. I have since repented.

Re: Perl 7 is going to be Perl 5.32, mostly

#539

I've been a perl zealot since 2005. I didn't even know "python" existed until around 2008 when I found a script file with a ".py" file ending in a fresh ubuntu install. I started going to perl conferences sometime after 2010 when someone on irc informed be about them. I learned so much in those conferences, mainly about the alternatives to cgi and the modern OOP "framework" named "moose". I thought I was in heaven. I…

Thanks for sharing your experience.

I worked some years with Perl, and while it was fun most of the time, it had a lot of frustrating things that made it difficult to have consistent builds and dependency management. The "There's more than one way to do it" mantra is very damaging when all you want is a productive language to produce something, vs having fun implementing or tinkering with libraries in CPAN. There's a lot of research, including taking a look at the code to really know what the library does, to assemble programs in Perl.

Once you get over the initial conceptual barrier and remember how the sigils are used, and get used to the bless object system, it is fun to develop in it, on an intellectual level. But rather annoying on an "enterprise" level.

In the end, I find it very difficult to justify using Perl over almost any other language. Even PHP would be better for dev teams, due to the higher focus on productivity frameworks, even if the language holds no distinctive advantage over any other. I felt Perl is not really a professional language, but the product of a whimsical creator and community (which, by the way, is very welcoming and open).

Re: Perl 7 is going to be Perl 5.32, mostly

#540

There used to be a big Python/Perl debate. I'm not sure I could have predicted how well that would turn out for Python, and how poorly for Perl. Readability and ease of use matters?

Universities switched from teaching Java and Scheme to teaching Python.

Probably because Python resembles pseudo-code.

Anecdotally I've heard from a few people who said Python was the first language where ideas just made sense to them. An "easy to learn" language, in other words.

(I can't relate to that and don't know why Python is thought of that way. As far as I can tell, beneath the syntax (which is prettier than Perl), Python is a messy language with even messier standard library.)

Post reply on HN