Live data from Hacker News

Larry Wall Unveils Perl 6.0.0

pigdog.org

41–50 of 336 posts

Re: Larry Wall Unveils Perl 6.0.0

#41
I love Perl [I have been to perl monger meetings and I had to look up how to 'unshift' in python today].

But Python3 is mostly just Python2 with a print function instead of a print keyword. It is occasionally non-trivial to port large existing code bases from Python2 to Python3, but it is practically always trivial for a Python2 programmer to write new code in Python3.

I hope Perl 6 will get its own camel book!

Re: Larry Wall Unveils Perl 6.0.0

#42
post #5
post #2

Larry Wall Unveils Perl 6 and no comments on hacker news an hour later. That's the new headline that sums up Perl: an anachronistic programming language that may never recover from the perl 5->6 decade long 'freeze'. Also the language is crazy to write substantial programs in!

Yeah, the freeze killed momentum and left the community to wither. Python's transition was much better but is still not quite complete, and consumed a lot of time and effort. Making a backwards-incompatible change to a programming language == making and launching a new language, with all its difficulties.

If Python's transition actually was much better, that says quite a bit about how awful the Perl transition is gonna be - since the Python 2->3 transition seems pretty widely acknowledged to be a disaster.

Re: Larry Wall Unveils Perl 6.0.0

#43
I'm pretty excited about the release of perl6. perl6 has a number of interesting use cases and features. I'll be happy to watch it evolve as more people pick it up and find new/interesting uses.

Re: Larry Wall Unveils Perl 6.0.0

#45
So, for someone who has never read or written Perl code, where should I start? Perl 5 or 6? I get that they're different languages, but I want to see what "Perl" is like.

Re: Larry Wall Unveils Perl 6.0.0

#46
post #39
post #26

Earlier quoted context omitted.

Perl 6 basically hoovered every good programming concept they could think of (and some that ended up being not so good, which have hopefully been shaken out over the last decade). If you want a small language, this is not it. If you want an amazingly powerful language that just allows you to do what you want with a minimum of fuss, pull up a seat.

Whereas Go has gone the other route and jettisoned everything. Not having a ternary operator is a real pain. One thing Go does well is provide the gofmt tool. There is only one way to format code properly. Does Perl 6 have something like this?

No, but Perl 5 has Perl::Critic[1], which is a configurable opinionated code and style analyzer. It defaults to using the Perl Best Practices book by Damian Conway, with configurable levels of exactness. You can modify the rules to suit your particular needs/team.

I imagine something on this front will materialize for Perl 6 sooner than later.

1: https://metacpan.org/pod/Perl::Critic

Re: Larry Wall Unveils Perl 6.0.0

#47
post #39
post #26

Earlier quoted context omitted.

Perl 6 basically hoovered every good programming concept they could think of (and some that ended up being not so good, which have hopefully been shaken out over the last decade). If you want a small language, this is not it. If you want an amazingly powerful language that just allows you to do what you want with a minimum of fuss, pull up a seat.

Whereas Go has gone the other route and jettisoned everything. Not having a ternary operator is a real pain. One thing Go does well is provide the gofmt tool. There is only one way to format code properly. Does Perl 6 have something like this?

Probably soon.

Perl 5 has a Tidy'ing tool[0], as well as a Lint[1] tool. Both are based on rules created from (originally) Best Practices [2]. These rules of course can be modified to taste, so you can set your own rules/filters before checking in your changes to a repo (or, whatever)

[0] https://metacpan.org/pod/distribution/Perl-Tidy/lib/Perl/Tid...

[1] https://metacpan.org/pod/Perl::Critic

[2] http://shop.oreilly.com/product/9780596001735.do

Re: Larry Wall Unveils Perl 6.0.0

#48
post #44

sidenote: why does a barracuda device consider pigdog.org "Porn"?

well they have certain ... associations ... with dog urls so they decided that dog* was a good ban pattern.

In a perl article, you give a non-matching pattern?

Its just one of those little things we don't think of often, but a lot of folks buy these devices and its a weird form of censorship beyond what's normally intended.

Re: Larry Wall Unveils Perl 6.0.0

#49
post #45

So, for someone who has never read or written Perl code, where should I start? Perl 5 or 6? I get that they're different languages, but I want to see what "Perl" is like.

> but I want to see what "Perl" is like

> get that they're different languages

I'm not sure you do get it, unless you are talking about the "feel" of using it, in which case use either. They aren't just different languages because there's some things that break backwards compatibility, they are vastly different in many ways.

If you want to know what current deployed Perl is like, look at Perl 5. If you want to look at what the "Perl" future is, look at both Perl 5 and Perl 6, since they'll both be around. If you want to see something new and different, look at Perl 6.

Re: Larry Wall Unveils Perl 6.0.0

#50
post #24

Seems too little too late. Is Perl still relevant in 2015? What would you build in Perl today that you wouldn't build in another language instead? I used to be a big fan of Perl but it seems to have fallen behind the times, I doubt Perl 6 is enough to catch up.

Here's something that's normally not too fun to deal with in Python and Ruby: asynchronous operations. Perl 6 has promises, C#-style async/await, Go-style channels, and Reactive Extensions-style Supplies built in as first-class ways to deal with asynchrony, concurrency, and parallelism. It can also take advantage of as many threads as you'll give it. Since I deal with web services a lot, this is a huge boon for me. B…

Are you talking about Clojure ;)
Post reply on HN