LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2015, 05:03 PM   #1
NeedySaigon.
Member
 
Registered: Jul 2015
Distribution: gentoo ~64
Posts: 48

Rep: Reputation: Disabled
perl 6 officially in β...


Code:
sub postfix:<²>($a) { $a ** 2 };

say 2² + 4²;   # 20
sub infix:<♥>($a, $b) { "$a LOVES Perl $b" };

say 'Zoffix'♥'Perl 6'; # Zoffix LOVES Perl Perl 6
http://perl6.org/
 
Old 09-28-2015, 06:16 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Woohoo - only 15 years in the making.
Must admit I lost interest long ago. If it ever gets to a full release I might look at it - CPAN is also an issue.
 
Old 09-28-2015, 09:24 PM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,006

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
So, on the welcome page it states that Perl 6 is Perl 5's little sister ... does this mean it will do less?
 
Old 09-29-2015, 12:35 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
Wikipedia says that it's not really backward compatible with Perl 5.

Probably a good design decision, but I've heard "Perl is backward compatible and therefore BETTER THAN PYTHON" too many times here.

Last edited by dugan; 09-29-2015 at 01:10 AM.
 
Old 09-29-2015, 08:05 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,657
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
The biggest problem with "Perl 6," IMHO, is that it is not "Perl."

If it were "Perl," then it would be backward-compatible, and CPAN (that vast library consisting of "155,158 modules" at the present time) would be usable with it.

Instead, it is ... yet-another all-new language. One that is merely coat-tailing on the name of its erstwhile predecessor, with which it shares little (if any) actual genetic material.

What I think that the designers never realized, is that no one is particularly interested in "Perl." But they are interested in "CPAN," and that's why they are interested in Perl. (Ditto the Ruby language, and its Gems. Python ... the list goes on.)

CPAN represents the product of tens of millions of dollars' worth of human effort, now free for the taking. Removed from it, Perl6 (sic) is a brand-new baby with not one single pair of diapers.

Language designers, e.g. the Python community, PHP, etc., are discovering that it is very hard to change a language once it has entered the main stream: because of these contributed source-code libraries, and because the vast amount of production source-code (worth millions of dollars) that a company has already written in that language. It really does not matter that your new language is "-er," if it breaks what I've already got. If you cannot guarantee that it will not break what I've already got . . .

Last edited by sundialsvcs; 09-30-2015 at 08:21 AM.
 
3 members found this post helpful.
Old 09-29-2015, 08:36 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by grail View Post
So, on the welcome page it states that Perl 6 is Perl 5's little sister
Perl 5 will get all the blame, no doubt.
 
Old 10-09-2015, 03:25 AM   #7
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
yes, yet another perishing programming language.

we'll all have one each soon.
 
Old 10-09-2015, 11:18 AM   #8
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
When is perl 7 coming out?

6 is jaw-dropping, a.k.a. big yawn.

I no longer write much in perl. But I do still use perl one-liners often.

Recently was looking at nodejs and the npm tool output is retarded so perl one-liner to the rescue.

npm search pumpkin|perl -lane 'm|^(\S+)(\s+)(.+)?(=\w+)(\s+)([\d-]+)(\s+)(.+)$|;if($1 and $2 and $3 and $4 and $5 and $6 and $7 and $8){print "$6 $1 $2 $3 $4 $5 $7 $8"}'

Don't get me started on npm.
 
Old 10-12-2015, 01:57 AM   #9
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
Tell me....
how do you feel about npm?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Print output of a script to screen using Perl/Multiple installation of Perl Modules metallica1973 Linux - General 1 02-17-2011 05:59 PM
Hi LinuxQuestion, now officially stani LinuxQuestions.org Member Intro 3 01-11-2010 11:04 AM
Any last hope? Dell 946 w/ no drivers. Whitestar Ubuntu 4 04-09-2007 07:32 PM
Kernel 2.6.0 is officially out .. wiraone Fedora 16 12-22-2003 06:49 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration