Live data from Hacker News

Ask HN: Perl 6: Do you use it, how do you like it, what do you do with it?

news.ycombinator.com

1–10 of 163 posts

Ask HN: Perl 6: Do you use it, how do you like it, what do you do with it?

#1
I'm sort-of intrigued by Perl 6, but a curiosity of mine, which I believe that I share with some other people, is how it's used in the real world, be it in little scripts or commercial software. What are your feelings and comments on Perl 6, and if you use it, how and where you use it (I'd be glad it people shared links to published projects and actual code out in the internet). Thanks in advance!

Re: Ask HN: Perl 6: Do you use it, how do you like it, what do you do with it?

#3
post #2

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.

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 do you do with it?

#6
I've been using it locally to write a few small scripts, nothing publicly available (yet).

Traits and roles are really neat - they feel like a natural conclusion to what Ruby started building upon with respect to metaprogramming natural syntax and encouraging developer happiness over strictness.

On the whole, however, many small parts of Perl 6 feel immature. There's no core JSON/YAML module, and there's no "official" module manager yet - just panda[1] and a few others.

Overall I'd recommend tinkering with it, but I don't think it's ready (as an ecosystem) for larger development. Hopefully soon, though!

[1]: https://github.com/tadzik/panda

Re: Ask HN: Perl 6: Do you use it, how do you like it, what do you do with it?

#7
post #3
post #2

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.

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

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 do you do with it?

#9
I used perl6 to write a mini-webservice, an API-wrapper for a weather forecast API my bash script is speaking to – I of course don't want users to have to generate API keys, hence the wrapper. Programming that was straightforward, the language itself nice and powerful. But of course I did not really need a powerful language for that task.

I had issues finding the right modules to use, like which webserver to use, with which module to make http requests. But the biggest issue was that the hoster I initially wanted to use doesn't have perl6 pre-installed, and compiling it fails because the compilation itself uses too much memory. I then moved it to a bare metal server, where compiling Rakudo Star succeeded.

The whole Rakudo Star thing, that there are different VMs (that there are VMs in the first place), that there are different module manager, all that was totally confusing. But I liked the language itself a bit, it was nice testing something else.

Re: Ask HN: Perl 6: Do you use it, how do you like it, what do you do with it?

#10
So this doesn't help with your question but I'm sure i'm not alone on this one...

I hadn't even realized Perl 6 was out! I remember years ago it kind of being labeled as the "Duke Nukem Forever" of programming languages versions. I don't personally use it but I'm glad to see it is out (even if I found out a year late).

Post reply on HN