Perl 6 needs to be hyped more. It has optional static types and multiple dispatch.
>>61139963
>> Went onto https://perl6.org/ to check what it is about.
>> First perl example:
grammar Parser {
rule TOP { I <love> <lang> }
token love { '' | love }
token lang { < Perl Rust Go Python Ruby > }
}
say Parser.parse: 'I Perl';
# OUTPUT: 「I Perl」 love => 「」 lang => 「Perl」
say Parser.parse: 'I love Rust';
# OUTPUT: 「I love Rust」 love => 「love」 lang => 「Rust」
Go to faq, read that this grammar construct in perl 6 is powerful enough that it was used to write the perl 6 parser.
WTF, I love perl 6 now.
>>61139963
It's slow. And starts up slowly, which is bad for scripting lang. Why is it this way?
>>61139963
It also has syntactic macros iirc.
>>61140059
http://blogs.perl.org/users/zoffix_znet/2016/04/perl-6-is-slower-than-my-fat-momma.html
>> However, a Perl 6 one-liner loads the comprehensive object model, list tools, set tools, large arsenal of async and concurrency tools..
>>61139963
Remember what happened to python when it got two mutually incompatible versions?
>>61140059
This made me google "perl 6 slow".
The botnet knows.
The main reason perl6 is so fuckmazing is it has got fully extensible macros like in lisp making it a god tier hacker language and nobody realizes
>>61141643
What makes perl better than Scheme?
>>61141735
Not the shitty logo
>>61140580
This is how you find out that a language is obscure a fuck.
>>61141643
so does Elixir, so does Julia, big wow
>>61141643
Parsing it is nontrivial though. IIRC Perl's grammar is turing complete.
http://www.perlmonks.org/?node_id=663393
>>61143354
That is Perl 5, not Perl 6. Perl 6 is defined by a context free grammar afaik, and drops backward compatibility with Perl 5 to do this.
Are they ever going to actually "finish" Perl 6? If not, no one is going to use it.
I do personally like a lot of the changes, especially concerning sigil clarity. Dereferencing from a nested data structure in Perl 5 can be a clusterfuck of sigils and brackets.
>>61143753
it's 1.0+ aready
>>61139963
I'll just wait until all the features pour down into 5.x due to the impatience of developers
>>61139963
>It has optional static types and multiple dispatch.
Wow, you're bad at selling things.
>>61140059
Apparently they bootstrapped/metacirculared the interpreter in parts of Perl itself which is always a bad idea, in particular with JIT compiler, where it will be extra slow due to not being optimized the first and only time it's run.
Or at least they did in the past, no idea if that's still a thing. Honestly, no idea what the fuck moarVM does this days, they changed the dev team too often for me to follow.
>>61144996
A source for that would be nice.
>>61145806
Looks like NQP is still a thing.
>>61144996
A couple already have