Simon Bisson (sbisson) wrote,
Simon Bisson
sbisson

  • Mood:
  • Music:

Apocalypse now: Larry Wall blows up regular expressions

First: a confession.

I love Perl.

There's something in its elegant simplicity that just tweaks that aesthetic sense. It's, dare I say it, beautiful. And one of its most beautiful aspects are its regular expressions. Back in my ISP days I would spend hours sitting there tuning regular expressions so that they would sit up and beg, doing just what I wanted - no more, no less. And it's a language that works just the way I think. I can write a sentence in English and take it and turn it into Perl, and the code will do just what I described.

You can take your C#, take your Java. Just give me Perl...

The big event in the Perl world at the moment is the development of Perl 6. Unlike previous versions, this is a major rewrite, taking time to step back from what's already been done, to what can be done today. The basic philosophy of the redesign is wrapped in religious imagery - delivered in the form of apocalypses and exegises. So when I saw on Slashdot that Larry Wall's latest Perl Apocalypse was a rethinking of how my favourite feature would work in Perl 6, I decided to have a long look. It's a very interesting paper, that rethinks the way we pattern match in the light of the move from single-byte character coding (such as the familar ASCII) to multiple-byte character encodings (like Unicode). It's also a step back to the linguistic basis of pattern matching, trying to find a better way of describing patterns and structures.

There's something very interesting happening here. It's the development of a language tailored to how we at the start of the 21st century relate to the world, a language based on philosophy as much as mathematics.

Have I told you that I love Perl?
Subscribe

  • My tweets

    Fri, 14:22: Hmm. Anyone able to get Excel's Data from Picture option to work in recent Office iOS builds? Both iOS 15 on iPhone 12 Pro and on…

  • My tweets

    Thu, 13:44: RT @ InfoWorld: More of @ Microsoft's internal tools get released to the outside world — by @ sbisson. https://t.co/frqvRv3ZHy…

  • My tweets

    Wed, 16:50: Over at @ techrepublic I take a look at how to protect your organization against consent phishing attacks using Microsoft 365…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments