Live data from Hacker News

Perl 7 is going to be Perl 5.32, mostly

perl.com

331–340 of 573 posts

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

#331
post #316
post #217

Earlier quoted context omitted.

Perl 6 has been renamed to Raku ( https://raku.org using the #rakulang tag on social media). You can run Perl inside of it if you want to, with the Inline::Perl5 module. Check out the Rakudo Weekly News https://rakudoweekly.blog if you want to stay up-to-date!

I'm surprised to see .pm6 extension still being used, at least on the rakudo documentation page. Do those contain Raku code, or Perl?

These would contain Raku code. But as with Perl, the core developers value backward compatibility much. Since many versions of Raku in use do not know of the new .rakumod extension yet, the old extension is used for many modules still.

This is probably going to change in the next language revision of Raku. See https://github.com/Raku/problem-solving/blob/master/solution... for the nitty gritty.

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

#332
post #310

This is great news! I was really excited about Perl 6, until I realized it was a different language, and it never quite jelled into a usable thing. So I kept using Perl 5. I write mostly modern Perl code, so this is exactly what I wanted. I learned Perl back in the late 90's when it was the best way to do web programming. As a C programmer, it was a breath of fresh air. It was a higher-level C for me and I used it fo…

No idea when it was the last time you tried jelling. But Raku is very much a usable thing nowadays and is used in production: https://raku.org

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

#334

Earlier quoted context omitted.

I think you should revisit perl. My first job writing perl was in 2005 or 2006, and it was not a good language for an eager idiot without guidance. After a couple years, I started getting it, and it became one of my favorite languages. I think it was my coworker who told me to read https://hop.perl.plover.com/ and it blew my mind and made me start to rethink how I was approaching code. With the languages that I'd bee…

Do you have a good link to learn about grammars in perl?

Start https://perldoc.perl.org/perlre.html#Extended-Patterns . I was trying to find an article from many years ago, but either my google skills fail me, or it is dead. Perl's regular expressions haven't been regular expressions for a long time. Beyond that, the ergonomics of perl make them much more useful for things like flow control than in other languages. It's similar to how you can do type matching in Java, but it's ugly, versus a language like Haskell where using type matching simplifies the code.

Perl 6 (as lizmat pointed out), has more powerful rules. I don't know a ton about them.

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

#335

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?

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

#336

They last line of the article summarizes it well: > Perl 7 is v5.32 with different settings. Your code should work if it’s not a mess. Expect a user release within a year. Are there actually people that are still deploying new things in Perl? The only times I see it is for legacy stuff, and then only because the script is too much of a hassle to be rewritten.

I write new things in Perl all the time. Deploying highly functional backend services using Mojolicious, a framework which is VERY actively developed.

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

#337
post #102

Earlier quoted context omitted.

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!

I've heard Python's object system isn't that different under the hood.

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

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

#338

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…

Python? That doesn't make sense. Anyone who appreciates Perl would surely choose Ruby over Python.

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

#340
post #275

Earlier quoted context omitted.

Favorite syntactic sugar feature: the /x modifier which makes the regex ignore spaces and comments, meaning you can break your regex into multiple lines and comment them.

FWIW, this is the default in Raku regular expressions.

Raku is Perl programming language so that makes sense.
Post reply on HN