News for hackers. Stuff that matters.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by ams6110 on Monday February 06, 2017 @10:12AM (#13580088)
I honestly haven't heard of anyone using Perl for anything new. Sure there is a lot of legacy Perl 5 being used and maintained, but Perl 6? For a new project? I've never even seen it on a short list.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by Moto7451 on Monday February 06, 2017 @11:08AM (#13580734)
ZipRecruiter, Booking.com, Duck Duck Go, and Craigslist are still building new things in Perl 5. It's out there still, you just have to hunt for it. Here's a site that lists Perl projects and companies: http://www.builtinperl.com
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by perlancar3 on Wednesday February 08, 2017 @05:34AM (#13597262)
By the way, do the guys who maintain www.builtinperl.com happen to be here? I submitted a new entry for it but haven't heard back for weeks. Another email has been sent but also hasn't seen any response.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by laumars on Monday February 06, 2017 @11:44AM (#13581206)
I promise you there are a lot of really high profile new projects being developed in Perl 5 still. A lot of companies tend not to advertise their use of Perl because it has a bad reputation (somewhat undeservingly in my opinion) or because of a tendency for some organisations to be secretive about their infrastructure. But I've worked on some pretty major projects, in Perl, over the last 5 years.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by joosters on Monday February 06, 2017 @10:18AM (#13580149)
I use perl for new code all the time. It's not a trendy language, so it won't get much coverage on HN, but the language and libraries are great IMO.

Also, perl 6 is effectively a completely different language from 'normal' perl (i.e. perl 5.x). The difference between the two is far far bigger than say python 2 -> 3.

As a perl programmer, I see no obvious benefit from switching from perl 5 -> 6, it would be the same as switching from perl to a completely different language. You're not going to be able to take your existing code and familiar libraries with you.

Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by cutler on Monday February 06, 2017 @01:57PM (#13582704)
Perl6 is not, IMHO, a completely different language and I can't understand why the Perl6 community beat this drum so hard. "use <version>;" "my" variables, context awareness, $@% variable identifiers, list emphasis. At the syntactic level Perl6 is very similar to Perl5. OK, it's OO under the hood, unlike Perl5. If it's a completely different language why name it Perl6?
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by b2gills on Monday February 06, 2017 @02:28PM (#13583014)
The OO part is actually one of the tiniest of changes. You can get basically the same thing in Perl 5 by using Moose.

It has signature, and subsignature parsing, built-in concurrency, not to mention over a dozen other features that are not in Perl 5. The main reason it is called Perl 6 is how the project began. It started out as Perl 5 minus a few warts.

As someone who well versed in both, they are very similar, and very different at the same time.

I like to categorize the differences like this:

Perl 4 is to C, as Perl 5 is to C++, as Perl 6 is to Haskell,Scheme,C#,D,Go,BNF...

That is Perl 6 brings in features from many diverse programming languages, and combines them in such a way that it feels like they have always belonged together.

Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by cutler on Monday February 06, 2017 @06:59PM (#13585618)
Perl was my goto language for over 10 years but I lost my patience with the Perl6 for Christmas meme around 2013 by which time Ruby was a much better proposition. If the Perl5 community had finally found a way to adopt a MOP they might have had a chance of competing with Ruby and Python. I also feel Perl might have had better adoption in web development if the community had rallied round Mojolicious instead of Catalyst. Catalyst's routing via subroutine signatures is an abomination.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by marvy on Monday February 06, 2017 @11:50AM (#13581293)
As someone who knows neither version, I find this surprising. Surely, even if none of your code works, switching from Perl 5 to Perl 6 is much less of a "culture shock" than switching to, say, Ruby or Python?
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by v64 on Monday February 06, 2017 @12:37PM (#13581850)
As someone who still occasionally has to write Perl 5 for a living, Perl 6 really is a new language. And because Perl 6 isn't as mainstream as Ruby or Python, there is a bigger culture shock when trying to find resources or figure out the "right way" to do things (I know, I know, There Is More Than One Day To Do It). There are big changes to the syntax too that make it feel like less of a successor and more of a new language inspired by an old one.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by marvy on Monday February 06, 2017 @02:54PM (#13583248)
Wow, that big a change? Then maybe they should have changed the name after all. Purl?
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by v64 on Monday February 06, 2017 @02:48PM (#13583197)
s/One Day/One Way/
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by cestith on Monday February 06, 2017 @05:08PM (#13584700)
Switching from Perl5 to Perl6 isn't completely shocking, but it's not just copying code over to a new project either. Programming in Perl6 back to back with programming in Perl5 indeed feels quite a bit like switching back and forth between Perl5 and Ruby. Everything's similar enough that you have to mind the differences. It's a much different feeling than going back and forth between C and JavaScript or between Forth and Pascal where the syntaxes are so different you'd never try the other way to do something for just a couple of lines.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by ribasushi on Monday February 06, 2017 @12:14PM (#13581582)
That's the thing - what OP said is exactly the case. Perl5 is an order of magnitude closer to ES6 than it is to Rakudo.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by labster on Monday February 06, 2017 @01:49PM (#13582650)
ES6 is a language specification and Rakudo is software. When Perl is written in uppercase it usually means the language, so what you said is true but not informative.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by gkya on Monday February 06, 2017 @10:29AM (#13580269)
IIRC there's a module for parsing and running Perl 5 in 6. Am I wrong or is it not practically useful?
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by gabriel on Monday February 06, 2017 @11:23AM (#13580934)
I think you mean Inline::Perl5: https://github.com/niner/Inline-Perl5. It doesn't parse Perl 5 and run it inside of Perl 6 though, it just runs the Perl 5 interpreter for you from a Perl 6 program and lets you marshall data between the interpreters. It's a legitimate technique.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by raiph on Monday February 06, 2017 @03:30PM (#13583560)
> lets you marshall data between the interpreters.

To be clear, Inline::Perl5 (and the other inlines like Inline::Python) automatically marshal data.

And exceptions. And classes (so you can sub-class a Perl 5 or Python etc. class in Perl 6). Etc.

Re:Ask HN: Perl 6: Do you use it, how do you like it, what d... by Ultimatt on Wednesday February 08, 2017 @02:47AM (#13596587)
There is the v5 project implementing Perl 5 targetting nqp to be compiled inline with a Perl 6 program. https://github.com/rakudo-p5/v5

The project has mostly stalled since Inline::Perl5 became so effective. v5 had the issue of being unable to easily support binary XS type modules. Which means it could never support CPAN, unlike Inline::Perl5. It was meant for people to be able to copy their high mental cost algo code into a new Perl 6 project without fuss.