in reply to Re^4: Perl 6.0.0 is out - merry X-mas!
in thread Perl 6.0.0 is out - merry X-mas!
Performance is not always the reason to choose a language. Esp in one-liners or scripts that take a small dataset, ease of use is way more important than the speed difference. If typing the one-liner takes longer than its runtime, you should not care.
Perl6 offers a whole new toolkit, e.g. Text::CSV implements a whole legion of in/out combinations for the csv function.
my Channel $ch = csv(in => "file.csv", out => Channel);
And that makes it very easy to combine all kind of data generators and consumers, including support for types String, Array, Hash, Capture, Callable, Routine, Block, Supply, Channel. Sometimes it even makes sense to support both Channel:U (creates a new Channel on demand) and Channel:D (uses an existing Channel).
my $aoh = csv(in => { $sth.fetch }, out => Hash);
Readable and understandable. Explicit and intuitive. Something almost impossible in perl5 (or C, lua, go, java, php, and other languages).
I 100% agree that speed is an essential property of a language, but unless the speed is needed (required), I think that perl6 is not only FUN to learn, but also gives you insight in new(er) possibilities and even new ides for existing perl5 modules. Perl6 makes it very easy to do things in parallel, where threading in perl5 makes users complain over and over and over again.
Don't (yet) write off a language purely based on speed.
|
|---|