News for hackers. Stuff that matters.
Re:My Delorean runs Perl by _jal on Saturday January 27, 2018 @11:05AM (#16246676)
I still fall back to perl for experimental/recreational programming. Possibly because it is the first scripting language I really felt fluent in, but I think just because it is so quick and flexible to write.

These days, anything I inflict on others in this category tends to be redone in Python, but for hacking? Perl just hits a sweet spot like no other language for me.

Re:My Delorean runs Perl by v_lisivka on Saturday January 27, 2018 @04:54PM (#16248294)
Perl is joy to write (especially with Modern::Perl qw(2016) and feature qw(signatures)) but is hard to read. I can write lot of code in single line with map/reduce/split/join/regexps, but without chaining of operators it is mess, because order of operators is opposite to order of execution. It because of traditional function or operator invocation syntax: "x(a1, y(a2, z(a3, a4), a5), a6)", instead of modern chain of calls: "z(a3,a4).y(a2, a5).x(a1, a6)" . The more operators I pack into single line of code with traditional syntax, the harder it to read.

Perl6 has "feed operator", but it is not ported to perl5 to date. Perl6 syntax is clean:

    my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>;
    @array ==> unique()
           ==> sort()
           ==> reverse()
           ==> my @final-array;
    say @final-array;
but perl6 is slow, so it is not gaining any popularity.
Re:My Delorean runs Perl by lizmat on Sunday January 28, 2018 @02:39PM (#16253020)
Not sure when you last tried to run your Perl 6 program, but things have improved over the years. Today Rakudo Perl 6 celebrated having one of the most tested canary programs break the 100x faster barrier: https://twitter.com/zoffix/status/957322578460315649
Re:My Delorean runs Perl by singingfish on Saturday January 27, 2018 @05:44PM (#16248525)
perl can be hard to read. but then again it can be easy e.g. https://gist.github.com/anonymous/a229b77c8ab25026633f1ab819...
Re:My Delorean runs Perl by v_lisivka on Saturday January 27, 2018 @10:55PM (#16249714)
I can write readable page of code. I want to write readable line of code.