Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ajs (158)

ajs
  (email not shown publicly)
http://www.ajs.com/~ajs/
+ -

  Comment: Rakudo now works (Score 1) on 2009.10.05 14:43

by ajs on 2009.10.05 14:43 (#70793)
Attached to: Who has the best state implementation?
This now works in rakudo, FWIW. Tested with current git version as of this weekend (Oct 2009).
Read More 3 comments
Comments: 3
+ -

  Comment: Re:Perl6 is more marketing than substance (Score 1) on 2009.09.18 11:15

by ajs on 2009.09.18 11:15 (#70622)
Attached to: Defining the Marketing Problem
I know this was a while ago, but I feel it requires a response.

Do we care about Perl 5, or are all eyes on Rakudo?

I care only for Perl5,

Really? Do you care about Perl 5's given operator or smart matching? Do you think those are "Perl 5 constructs?" Do you really need to care?

most of what I have to say about Perl6, or Rakudo, is not welcomed by the much vocal Perl6 groupies, hence I usually stay quiet when they blog about it. But then again, it feels like I am lightyears away from them anyway, with my requirements for stability and reliability,

Users of Perl 4 (and I was among them) said exactly the same thing about this crazy Perl 5 thing that was going to add an object system and make data structures far too complicated to support in the "real world."

the only thing Perl5 and Perl6 have in common is the prefix of four letters to their name.

Hmmm... no. There are a plethora of features of Perl 5 that remain in exactly the same form in Perl 6. They also share many conceptual similarities ranging from the use of expression context to the use of twiggles to future-proof existing variable names. I think that a lot of people read the specs as they were being written and focused on all of the things that they couldn't imagine doing in Perl 5 instead of the fact that programs will largely look like Perl 5 code. Here's an example:

  sub is_prime(Int $n is copy) {
    $n = abs($n) if $n < 0;
    given $n {
      when 0 { return False }
      when 1 { return False }
      default {
        for 2, (3 .. sqrt($n) :by(2)) -> $f {
          return True if $n == $f;
          return False if $n % $f == 0;
        }
        return True;
      }
    }
  }

This is Perl 6. The words True and False and the ordering of iterator and list in the for loop are different. There is a type and formal parameters. Other than that, this is bog-standard Perl 5 and perfectly valid Perl 6. If that doesn't bear any resemblance to Perl 5 then what language do you think is bears a resemblance to? It's certainly not more like C, shell, AWK, Python, Lisp, Ruby, Forth, Java, etc.

Read More 14 comments
Comments: 14
+ -

  Comment: Playing with Rakudo (Score 1) on 2009.04.03 13:27

by ajs on 2009.04.03 13:27 (#67999)
Attached to: Rakudo Perl development release #15 (
I've just downloaded Rakudo and started playing with it. It's a very nice piece of software, and given the power and elegance of the Parrot Compiler Tools, it's wonderful to see something making large-scale use of it.

However, it should be noted that Rakudo really isn't at the point that people should expect to grab it and start hacking on Perl 6 code. It parses a good chunk of the language, but if you're looking to get your feet wet writing P6 you'll probably just end up breaking your keyboard every time it gives you a nonsensical error.

Still, very impressive!

Once I have more hands-on with it, I'll throw some thoughts up on essays.ajs.com

Read More 1 comments
Comments: 1