[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Perl 6 needs to be hyped more. It has optional static types and

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 21
Thread images: 5

File: Camelia.svg.png (47KB, 640x468px) Image search: [Google]
Camelia.svg.png
47KB, 640x468px
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?
>>
File: 2017-06-29.png (107KB, 1043x607px) Image search: [Google]
2017-06-29.png
107KB, 1043x607px
>>61140059
This made me google "perl 6 slow".
The botnet knows.
>>
File: 1498705217463.jpg (18KB, 320x375px) Image search: [Google]
1498705217463.jpg
18KB, 320x375px
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.
>>
File: tgz7a.jpg (97KB, 640x457px) Image search: [Google]
tgz7a.jpg
97KB, 640x457px
>>61139963
>>
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
>>
File: xd.jpg (206KB, 4096x4096px) Image search: [Google]
xd.jpg
206KB, 4096x4096px
>>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
Thread posts: 21
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.