My experience with Perl: We (a corporate shop) have a lot 'legacy' scripts in Perl. I am assigned to maintain such scripts as no one else wants that role. I discover, Perl is powerful. Every 'legacy' script I find can be trivially regression tested (These scripts always have the same pattern, take some input, produce some output). Managers want to move away from Perl. I want to move closer to Perl.
Do they even have a replacement in mind already?
Interview with Larry Wall
11–20 of 93 posts
Re: Interview with Larry Wall
#12> my @values = [1 .. 20]; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 > say @values[0,2,4 ... *]; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Wall says this should print all the evens, but it prints all (this is in the perl6 repl).
$ perl6 -v
This is Rakudo version 2016.04 built on MoarVM version 2016.04
implementing Perl 6.c.
and I see: > my @values = [ 1 .. 20 ];
[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]
> say @values[0, 2, 4 ... *];
(1 3 5 7 9 11 13 15 17 19)
(Of course it's the odd numbers, not the even numbers, but it just happens that the odd-valued entries are in the even-indexed positions in this list.)Re: Interview with Larry Wall
#13> my @values = [1 .. 20]; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 > say @values[0,2,4 ... *]; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Wall says this should print all the evens, but it prints all (this is in the perl6 repl).
Which version are you using? I happen to have 2016.04 installed: $ perl6 -v This is Rakudo version 2016.04 built on MoarVM version 2016.04 implementing Perl 6.c. and I see: > my @values = [ 1 .. 20 ]; [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20] > say @values[0, 2, 4 ... *]; (1 3 5 7 9 11 13 15 17 19) (Of course it's the odd numbers, not the even numbers, but it just happens that the odd-valued entries are in…
perl6 --version
This is perl6 version 2013.12 built on parrot 5.9.0 revision 0
Installed from the Mint/Ubuntu/... repository. Wow, that's really old.Is there anything like Python's Anaconda, but for Perl6?
Re: Interview with Larry Wall
#14Earlier quoted context omitted.
Which version are you using? I happen to have 2016.04 installed: $ perl6 -v This is Rakudo version 2016.04 built on MoarVM version 2016.04 implementing Perl 6.c. and I see: > my @values = [ 1 .. 20 ]; [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20] > say @values[0, 2, 4 ... *]; (1 3 5 7 9 11 13 15 17 19) (Of course it's the odd numbers, not the even numbers, but it just happens that the odd-valued entries are in…
perl6 --version This is perl6 version 2013.12 built on parrot 5.9.0 revision 0 Installed from the Mint/Ubuntu/... repository. Wow, that's really old. Is there anything like Python's Anaconda, but for Perl6?
Re: Interview with Larry Wall
#15My experience with Perl: We (a corporate shop) have a lot 'legacy' scripts in Perl. I am assigned to maintain such scripts as no one else wants that role. I discover, Perl is powerful. Every 'legacy' script I find can be trivially regression tested (These scripts always have the same pattern, take some input, produce some output). Managers want to move away from Perl. I want to move closer to Perl.
The sad thing is about 90% of normal back-end computing at enterprises is take data source A,B,C,etc and generate data file Z. Cobol lives because it could do that well. Perl did that amazingly well[1]. Its really trivial to write easy to maintain code that does that in a very standard (across programs) way. 1) Data Munging with Perl was a pretty good book for it
Can't every language do that well?
Re: Interview with Larry Wall
#16Earlier quoted context omitted.
The sad thing is about 90% of normal back-end computing at enterprises is take data source A,B,C,etc and generate data file Z. Cobol lives because it could do that well. Perl did that amazingly well[1]. Its really trivial to write easy to maintain code that does that in a very standard (across programs) way. 1) Data Munging with Perl was a pretty good book for it
> Cobol lives because it could do that well. Can't every language do that well?
Re: Interview with Larry Wall
#17Earlier quoted context omitted.
The sad thing is about 90% of normal back-end computing at enterprises is take data source A,B,C,etc and generate data file Z. Cobol lives because it could do that well. Perl did that amazingly well[1]. Its really trivial to write easy to maintain code that does that in a very standard (across programs) way. 1) Data Munging with Perl was a pretty good book for it
Work is receive input, mangle input, send output once you generalize it enough. but the devil will definitely be in the details.
I now follow a simple law when setting up a data source: If I need attribute X from an item then I better have a way to find all items with attribute X in a hurry.
Re: Interview with Larry Wall
#18>Why isn't PERL more windows friendly? Really? I've had tons of fun with Perl+OLE automating the processing of Excel and Word files.
With Perl 5, both ActiveState's and Strawberry Perl just worked, whereas Python can't even print to the console [1] without workarounds or an extra library that's not installed by default.
[1] http://stackoverflow.com/questions/5419/python-unicode-and-t...
Re: Interview with Larry Wall
#19> It turns out if you accept the 90% of each paradigm that is practical, and reject the 10% that puritanically rejects other paradigms, you can get a pretty decent general-purpose language out of it
> But there's a long history of people confusing "general-purpose" with "Turing-complete".
Yeah. Things that are formally equivalent are not (usually) equally easy.
Re: Interview with Larry Wall
#20Isn't quite late for a JS backend given that we have WASM now?
> Perl 6 -> wasm won't be happening any time soon
> for now wasm is just bytecode asm.js
> if we really wanted to compile to it we would have to use enscripten and run MoarVM on top of wasm