Thursday | 8 January, 2009
CIO
Perl 6 to break compatibility, support other interpreters
Enabling many more ways to obfuscate code
Rodney Gedda (Techworld Australia) 04 December, 2008 15:57:00

Version 6 of the popular Perl programming language will not be compatible with previous versions, but will open up a new world of custom “languages” and interpreters, according to its founder Larry Wall.

In Sydney for the annual Open Source Developers Conference, Wall delivered a keynore on “The once and future of Perl” and gave a few rare insights to what the future of Perl programming might look like.

“I often get asked if you had to do it all over, what would you do different?” Wall said. “How would the Sydney Harbour Bridge look if it had been built by the architect of the Sydney Opera House? The bridge would have been $100 million over budget!”

“One answer is nothing and the other is everything. The thing about doing nothing is you are stuck with the old architecture and the problem with doing everything is you are stuck with the new architecture.”

But that's what Wall and his co-developers are doing with Perl 6 – starting again.

“It will break backward compatibility [but] in order to simplify it we have to get rid of old cruft, particularly the regular expression cruft,” Wall said. “A lot of the unreadability of Perl is related to the regular expression syntax – and we didn't do that, we got it from Unix. It needs to be end-of-lifed. Regular expressions are not strings, they are a sub-language. We took it and made it worse. There is this two-pass nature that is evil.”

Wall also asked when is a language not a language? The answer: when it's many languages. And Perl 6 is many languages.

“We want to preserve as much of the Perl culture as we can so it's still recognisably Perl, but nicer,” he said. “We tell you how to think, just not what to think. The Perl culture encourages freedom.”

“We want the freedom to write things and optimise in many directions. We encourage people to program at the level they are ready to program. We all start as cargo-cult programmers. We type something into the computer and it does something magical. That's the way we develop, you just don't want to stay there.”

Perl 6 has no “core”, pre-defined operators and support for user-defined operators.

“'Only Perl can parse Perl' is a saying for we have used for quite a while and we have changed the meaning of that,” There will be multiple implementations of Perl 6 and only Perl 6 can easily parse Perl 6.”

There will be a standard implementation and a test suite shipped with Perl 6.

“The idea with Perl 6 is you start with a standard language and you can mutate it. As long as you follow that refinement process there isn't the problem of ambiguity. There is the problem of multiple dialects, but that will always be a problem.”

Perl 6 promises to put the "regular" back into regular expression.

“We have more powerful primitives in Perl 6,” Wall said. “There's no more /x switch to enable extended syntax. No more mode switches like /s and “dot” (.) now means match any character. There's no /m modifier and we've regularised the brackets so {} always mean embedded code.”

The “Kewlness” of Perl 6 includes a parser that uses stringwise "surreal" precedence and Perl 5 “isms” and it warns you if you are using obsolete syntax.

After eight years of development, Wall refrained from providing an exact release date for Perl 6, but says it will be on Christmas Day some year in the near future.

“Every day will be like Christmas Day when Perl 6 is released,” he said.

The motto of Perl 6 is “embrace and extend, please”.

Perl creator Larry Wall
Perl creator Larry Wall
Additional Resources
Executive Guides
Whitepapers
Zones
Zone logoZones provide focussed content from CIO and leading technology partners.
Newsletter Subscription
Sign up for our CIO newsletters!
RSS Feeds
Featured Whitepaper Sponsors
Market Place
 

Smart SOA World Tour

Discover how SOA can create smarter outcomes for your business.

Attend and learn:

  • How SOA is helping leading companies to become more agile
  • Where you should be applying SOA processes in your company
  • The top SOA implementation mistakes to avoid

Click here for more information.
  • +

    CIO Live Podcast #79: Brent D Taylor, author of The Outsider's Edge: The Making of Self-Made Billionaires Part II 05 October, 2007 06:00:00

    For his new book, The Outsider's Edge: The Making of Self-Made Billionaires, social researcher Brent D Taylor spent four years of intensive research investigating the psychological make-up and backgrounds of some of the world's richest men and women, including IT luminaries Bill Gates, Larry Ellison and Steve Jobs. Taylor discovered that, despite working in different industries and coming from different upbringings, they all have one thing in common -- they are all outsiders.
  • +

    CIO Live Podcast #78: Brent D Taylor, author of The Outsider's Edge: The Making of Self-Made Billionaires 28 September, 2007 17:34:25

    For his new book, The Outsider's Edge: The Making of Self-Made Billionaires, social researcher Brent D Taylor spent four years of intensive research investigating the psychological make-up and backgrounds of some of the world's richest men and women, including IT luminaries Bill Gates, Larry Ellison and Steve Jobs. Taylor discovered that, despite working in different industries and coming from different upbringings, they all have one thing in common -- they are all outsiders.
  • +

    CIO Live Podcast #77: Panasonic Speeds Up Trans-Pacific File Transfers, Part III 21 September, 2007 07:00:00

    Part three in our three-part special report from CIO's sister publication Network World in the US, as Paul Desmond reports from the Network World IT Roadmap Conference in Santa Clara, California. With development teams in the US and Japan, Panasonic needed a more efficient way to move very large files between the two locations. Iben Rodriguez, IT consultant for Panasonic Research and Development, explains how a storage-area network and virtual server technology helped speed up WAN performance.
  • +

    CIO Live Podcast #76: Panasonic Speeds Up Trans-Pacific File Transfers, Part II 14 September, 2007 07:00:00

    Part two in our three-part special report from CIO's sister publication Network World in the US, as Paul Desmond reports from the Network World IT Roadmap Conference in Santa Clara, California. With development teams in the US and Japan, Panasonic needed a more efficient way to move very large files between the two locations. Iben Rodriguez, IT consultant for Panasonic Research and Development, explains how a storage-area network and virtual server technology helped speed up WAN performance.
  • +

    CIO Live Podcast #75: Panasonic Speeds Up Trans-Pacific File Transfers, Part I 07 September, 2007 07:00:05

    Part one in our three-part special report from CIO's sister publication Network World in the US, as Paul Desmond reports from the Network World IT Roadmap Conference in Santa Clara, California. With development teams in the US and Japan, Panasonic needed a more efficient way to move very large files between the two locations. Iben Rodriguez, IT consultant for Panasonic Research and Development, explains how a storage-area network and virtual server technology helped speed up WAN performance.
  • +

    Rogue SSL certificate exploit puts VeriSign on the spot 07 January, 2009 11:04:00

    Wishes "white hat" researchers had notified VeriSign before public demo.
    Following the success of researchers last week in creating a false SSL certificate based on VeriSign's RapidSSL brand, the company is scrambling to explain how it happened, how it's preventing it from reoccurring, and whether its other SSL certificate-generation services are at risk.
  • +

    With Gaza conflict, cyberattacks come too 05 January, 2009 08:03:00

    Pro-Palestinian hackers have defaced thousands of sites following attacks in Gaza.
    The conflict raging in Gaza between Israel and Palestine has spilled over to the Internet.
  • +

    5 ways to secure your Blackberry 18 December, 2008 12:58:00

    What do Tom Cruise and the McCain campaign have in common? They have both been bitten by the loss of a Blackberry. Mobile expert Dan Hoffman gives advice on how to keep your cherished mobile device safe, even if it's out of your hands
    What do Tom Cruise and the McCain campaign have in common? They have both been bitten by the loss of a Blackberry. Mobile expert Dan Hoffman gives advice on how to keep your cherished mobile device safe, even if it's out of your hands.
  • +

    Wireless VPNs: Protecting the wireless wanderer 18 December, 2008 11:04:00

    Employees sipping café Java over their wireless laptops may think a VPN makes them safe and secure. With careful configuration, there's some chance they're right
    Employees sipping café Java over their wireless laptops may think a VPN makes them safe and secure. With careful configuration, there's some chance they're right.
  • +

    Cyber Crime: The 2009 Mega Threat 17 December, 2008 12:09:00

    What threats to a company's sensitive and confidential data are getting worse, staying the same or actually becoming more manageable?
    What threats to a company's sensitive and confidential data are getting worse, staying the same or actually becoming more manageable?
CIO Webcast Innovation #8 - What are the biggest roadblocks to IT's involvement in innovation at your company?
Watch the latest latest edition of CIO Innovation which is now available for download.
Watch the webcast
Sign up to the CIO Innovation update email


CIO Live Podcast #79: Brent D Taylor, author of The Outsider's Edge: The Making of Self-Made Billionaires Part II
Listen to the latest edition of CIO Live which is now available for download.
Listen to the podcast
Sign up to the CIO Live email
Whitepaper

Understanding Email Marketing: A Guide for SMBs

Email marketing is often viewed as a marketers silver bullet. If used effectively, email campaigns will provide strong results for a limited spend each and every time. Download this white paper to discover how email marketing can work for you and your business.