News for hackers. Stuff that matters.
Re:Simplicity Made Easy by coldtea on Wednesday June 26, 2019 @03:36AM (#20282665)
Surprising?

1) The Perl 5 community itself was dwindling before Perl 6.

2) Perl 6 took a good chunk of time to arrive.

3) It's still not 100% baked.

4) Perl 6 is mostly a different language.

5) Perl in general doesn't have a good "name" with todays devs

6) There's no killer app

7) Python got the data/science niche, Node got the web/services niche, Go got the backend niche - what's left for Perl 6?

8) The libs are also lacking.

9) Too complex to begin with (kitchen sink offering), at a time when devs started valuing simplicity more than before.

10) Maturity of implementation, tooling, support, etc.

11) No major commercial backing...

Re:Simplicity Made Easy by kamaal on Wednesday June 26, 2019 @05:17AM (#20283219)
>> 1) The Perl 5 community itself was dwindling before Perl 6.

https://metacpan.org/recent

More people are writing Perl everyday than may be even Java, Let's put this Perl is dwindling argument to rest. Perl's niche, more like empire is glue language for anything Unix. That is a huge empire to govern on. Unless Unix is going away, Perl is here to stay.

>> 5) Perl in general doesn't have a good "name" with todays devs >> Node got the web/services niche

Most dynamic languages are in the same bucket. Today everybody is hesitant to start any serious big project in a dynamic programming language. Even in case of JavaScript most things will move to TypeScript eventually. And that too is more or less a totally new language.

>>Go got the backend niche

Go got nothing. Heck, merely shell scripting exceeds Go usage by several multiplicative factors.

>> 7) Python got the data/science niche

Most of the use case for Python's 'Data science' library is basically spread sheet automation. Perl has been used to that kind of work since early 90s.

>>what's left for Perl 6?

Firstly, and entire universe exists outside of web development. And most that universe is far more exciting than majority of api and json plumbing work in web dev work.

Secondly, Not sure, but no one can rebut an argument that says there is no scope for any new software to be ever written anymore.

Re:Simplicity Made Easy by coldtea on Wednesday June 26, 2019 @06:52AM (#20283698)
>More people are writing Perl everyday than may be even Java, Let's put this Perl is dwindling argument to rest.

Err, that's just a link to a submissions page. That's not a statistic, and it doesn't even show if Perl kept its people or lost them. Perl could even have more people than 1999, but much smaller mindshare given how hugely larger the dev market is in 2019 vs 1999.

Actual long term analysis look like "Perl is dwindling" is right:

https://insights.dice.com/2018/04/05/perl-uncertain-future-t...

>Perl's niche, more like empire is glue language for anything Unix. That is a huge empire to govern on.

And that "empire" is already lost for Perl. Dev ops have moved to Ansible, Puppet, Chef, etc, and Python and other languages are used as the glue. The "Perl gluing admin" is a relic.

>Most of the use case for Python's 'Data science' library is basically spread sheet automation. Perl has been used to that kind of work since early 90s.

Which is irrelevant as to who does it now (and it's not even right, Pandas, Numpy and co are not "spread sheet automation").

>Most dynamic languages are in the same bucket. Today everybody is hesitant to start any serious big project in a dynamic programming language.

Actually millions start serious big projects in JS, Python and other dynamic languages. There's a movement towards static typing but not that strong in actual practice. Typescript is tiny compared to the size of greenfield JS being written.

>Firstly, and entire universe exists outside of web development. And most that universe is far more exciting than majority of api and json plumbing work in web dev work.

Also far smaller, devs wise. And I didn't just mention web work, but also data science, microservices, and so on.

(And my point wasn't that Perl 6 can't do those, but that people aren't doing those with Perl 6 -- people as in, "people in quantities large enough to matter").

Re:Simplicity Made Easy by kamaal on Wednesday June 26, 2019 @09:46AM (#20284936)
You tossed out a statistic on library submissions and are debating psychology(mindshare). Nothing is dwindling on the long term for Perl.

>>Dev ops have moved to Ansible, Puppet, Chef, etc, and Python and other languages are used as the glue.

This is glue? Sorry but we seem to come from very different worlds.

>>Also far smaller, devs wise.

Wow, Just wow!

You probably won't like to hear this, but this how most of the software world works:

1. C based backend language: Java. C Based embedded/speed requirement systems: C/C++

2. Glue: Shell/Perl

3. Web dev: Node, Java(Webservices)

4. Lisp Based languages backend: Clojure/Racket.

5. ML based languages backend: F#, OCaml, Haskell.

6. Database: SQL.

There are other special languages which rule their domain. But this is how bulk of the world works.

Data science area is still a extremely small part of even the web dev world, let alone the broader software ecosystem.

Re:Simplicity Made Easy by hyperpallium on Wednesday June 26, 2019 @05:11AM (#20283178)
In a nutshell: unlike Perl itself, it wasn't created to solve a problem. Its purpose was to "keep the gang together".

Imagine a start-up that didn't set out to solve a problem...

So it's a kind of research language - which is important and has its place.

Re:Simplicity Made Easy by lizmat on Wednesday June 26, 2019 @06:13AM (#20283499)
> So it's a kind of research language - which is important and has its place

I'd rather say that Perl 6 is an inspirational language. With other languages stealing ideas and features from it. But also a complete, production ready language on its own. Based on MoarVM, a virtual machine specifically designed to run Perl 6 on, but with more general applicability as well.

And with some exciting developments for the GSOC: one of which should allow creation of a single executable for a Perl 6 application on Linux / MacOS and Windows.

Re:Simplicity Made Easy by hyperpallium on Wednesday June 26, 2019 @12:26PM (#20286464)
Quite a lot of ideas came out of lisp, though lisp itself remains niche.

What ideas have come out of Perl 6?

Re:Simplicity Made Easy by lizmat on Wednesday June 26, 2019 @12:37PM (#20286621)
- grammars, mutable at that - simple declarative class definitions - easy to use async primitives - easy to use event driven primitives - unicode support based on graphemes
Re:Simplicity Made Easy by lizmat on Wednesday June 26, 2019 @06:07AM (#20283466)
> 6) There's no killer app

Have you looked at Cro? Cro is a set of libraries for building reactive distributed systems taking advantage of all Perl 6 has to offer. The high level APIs make the easy things easy, and the asynchronous pipeline concept at Cro's heart makes the hard things possible. https://cro.services . With HTTP/1.1 / HTTPS, HTTP/2.0 and Web Sockets support out the box.

> 10) Maturity of implementation, tooling, support, etc.

Comma is an IDE for Perl 6, based on the JetBrains platform, with detailed syntax highlighting, grammar support, auto-completion, refactoring support, integrated test runner / graphical debugger, stack explorer and direct profiling. https://commaide.com

Re:Simplicity Made Easy by coldtea on Wednesday June 26, 2019 @06:44AM (#20283653)
>* Have you looked at Cro? Cro is a set of libraries for building reactive distributed systems taking advantage of all Perl 6 has to offer. The high level APIs make the easy things easy, and the asynchronous pipeline concept at Cro's heart makes the hard things possible. https://cro.services . With HTTP/1.1 / HTTPS, HTTP/2.0 and Web Sockets support out the box.*

None of that seems "killer app", or anything more impressive than what e.g. Node or Golang offer out of the box...

Re:Simplicity Made Easy by agumonkey on Wednesday June 26, 2019 @07:55AM (#20284039)
12) performance ? last I heard it was still alpha/prototyping so perf was no concern

13) perl6 is above most mainstream languages conceptually, people aren't ready to use it IMO

Re:Simplicity Made Easy by b2gills on Wednesday June 26, 2019 @04:39PM (#20288899)
For some benchmarks Perl6 is faster than Perl5.

One person posted to #perl6 on freenode.net code written in both Perl6 and C/C++. They reported that the Perl6 code was faster. (I'm sure that the difference is mainly because the C/C++ code had to copy strings around, and iterate over them to locate the null terminators.)

Unless you are doing something where you might consider writing parts of it in assembly, Perl6 may be fast enough already. (I wouldn't write a first person shooter in it yet.)

There are some parts of it that are still in need of optimization. (If you find something that is egregiously slow, file a bug report.)

Re:Simplicity Made Easy by SwellJoe on Wednesday June 26, 2019 @11:13PM (#20291440)
Startup time is still egregiously slow compared to Perl 5. But, that couldn't be a major determining factor for people working in languages that are also slow to start (of which there are many, probably one could say most are slower than Perl 5). And, it's not a major concern for long-running applications and services, but for one-liners it feel sluggish.
Re:Simplicity Made Easy by lizmat on Thursday June 27, 2019 @05:53AM (#20293014)
If you realize that Perl 6 basically has Moose in its core, and you compare startup time of Perl 5 with Moose with Perl 6, then it's not that bad at all:

    $ time perl6 -e ''
    real 0m0.120s

    $ time perl -MMoose -e ''
    real 0m0.131s
And that's without all of the fancy type checking stuff of several Moose plugins that comes standard with Perl 6.

So in that sense, if you are interested in Moose functionality, you're better of in Perl 6.