user-pic

raiph

  • Commented on A dream realized
    Hi Fritz, > Corinna doesn't use the syntax proposed in Dios (and used in Raku). I wonder if it's closer than you think? First, the names of attributes (fields). Consider this Raku code: class Account { has $balance = 0;...
  • Commented on Text, Grammar, Tree- the 3
    > Dear readers, do you care to recommend any reading on the subject of reversible grammars jnthn's talk "What if.... Perl 6 Grammars could Generate?": http://jnthn.net/papers/2013-yapcna-grammar-generate.pdf https://www.youtube.com/watch?v=RPQvtfwsilM&index=44&list=PLRuESFRW2Fa77XObvk7-BYVFwobZHdXdK...
  • Commented on Perl 6: Shortcuts (Part 1)
    "Prefix the name of a sub with & to call it as a method." is slightly confusing. Maybe "Prefix the name of a sub with & when calling it as a method." Another shortcut, quoting http://doc.perl6.org/language/objects#Object_Construction : class EncodedBuffer {...
  • Commented on Why in The World Would Anyone Use Perl 6?
    > Lets shoot for love and acceptance together by listening hard to each other Indeed. ♡ :) I was particularly struck by: > When I say "Inline::Perl5 doesn't work at all for most of my code", that's a big deal....
  • Commented on Perl6 Pi and continued fractions
    > "In the end I'm not sure he explained why pi.Rat is 355/113." The comments in the Rat method in class Num reveal that .Rat returns an approximation of its invocant. It does so by finding "convergents of the continued...
  • Commented on Exercise 1. 3s and 5s.
    In your P6 code you have this line of code: unless any(@multiples) $start { That looks like TTIAR (two terms in a row) to me (syntax error)....
  • Commented on A Tiny Code Quiz
    Fwiw, using the current Rakudo/Parrot evaluator on #perl6: my @ar1 = <foo bar>; my @ar2 = <a b c d>; print $(@ar1, @ar2); foo bar a b c d...
  • Commented on YAPC Reflections (2013)
    I find it remarkable that you explicitly mention Moe, p2 and Perlito, and don't mention Rakudo. Rakudo natively implements Parsing Expression Grammars (PEGs). It's Perl 5 slang hooks @INC to allow Perl 5 modules to load. And MoarVM was a...
  • Commented on It will be sensible to use Perl 6 to build real-world apps in ...
    deadline The only three things I'm aware of that involve a predetermined timeframe for particular P6 pieces are: 1. Larry Wall's declaration about a year ago that the project needed to "productize" P6 (easy install, decent doc, debugger, modules, support...
  • Commented on Introducing Sah, another data validation framework
    Fwiw Perl 6 uses a trailing ! for required parameters, ? for optional ones: http://feather.perl6.nl/syn/S06.html#Required_parameters...
  • Commented on YAPC::NA 2013 (Austin, TX June 3-5) Update
    The planning group discussed this with organizers of previous yapcnas. The conclusion is that we'll watch the numbers and may send reminders nearer to the conference date....
  • Commented on It will be sensible to use Perl 6 to build real-world apps in ...
    this post is ... not meant to be negative Heh. Epic fail. :P solving tomorrow's problems Perl 5 (the language and the interpreter) has had known major issues since BMWS (Before Mugs Were Smashed). I'm not aware of any major...
  • Commented on Think Python in Perl 6 Chapter 4: Interface Design
    #perl6 especially. I think the current vibe is due to Audrey's influence even though it's 5 years since she dropped back to lurk/msg/Ofun mode, amplified by the sense of excitement building as 6.0.0 approaches. (For thos reading along, you don't...
  • Commented on Think Python in Perl 6 Chapter 4: Interface Design
    Fwiw, on Mojolicious and Perl 6... From #perl6 a few weeks ago ( http://irclog.perlgeek.de/perl6/2013-02-07#i_6422674 ): japhb: "if/when Rakudo is running on JVM, would you be willing at that point to do the Mojo porting in earnest? If not, what would...
  • Commented on Think Python in Perl 6 Chapter 4: Interface Design
    Hi Brian, Methinks another comment of mine (about passing arbitrary keyword args not already individually specified in a routine's formal parameter list) got sent to spam. I've been enjoying your posts and look forward to them restarting after you've had...
  • Commented on Think Python in Perl 6 Chapter 4: Interface Design
    In Perl 6, it looks like you must specify the arguments that accept keywords ... I am so accustomed to hash-style passing I think a half dozen or more parts of the canonical and complete spec doc for subs are...
  • Commented on YAPC::NA 2013 (Austin, TX June 3-5) Update
    Thanks autarch, that's excellent feedback. Additionally we've had registration enabled for about a month, but purchasing for only a few days, exacerbating that problem. I've added three tasks to our planning system to send reminder emails 2/28, 3/31, and 4/23....
  • Commented on Swampy.pm6
    Thanks. I hope you have time to read the comments I added; they took a while to create and provide what I hope is useful info addressing particular points you raised or queried in your posts. If you do nothing...
  • Posted YAPC::NA 2013 (Austin, TX June 3-5) Update to raiph

    • We've switched on ticket purchasing. Conference tickets are $100, or $80 for early birds (
  • Commented on Swampy.pm6
    I just tried again. I think it sees the links in my comments and decides they need to be approved by you: https://plus.google.com/photos/115289448037897603962/albums/5847878595708182609/5847878599956185890...
  • Commented on (my $title = "Think Python") ~~ s/Python/Perl 6/ && $title.say;
    (A second attempt to get a comment accepted on this blog post. Apologies if it ends up being a duplicate.) If anyone reading along is thinking of installing Rakudo, make sure to install Rakudo Star (aka R*) if you can....
  • Commented on Swampy.pm6
    Hi Brian, Not sure why, but a bunch of my comments on your posts have been held back for moderation. (I think I've added at least one comment to each four of the posts you've done so far in this...
  • Commented on Pumpkin Perl Breakdown
    I liked everything about mst's original Pumpkin post with one small exception -- the specific qualifier Pumpkin. In most ways it's outstandingly good. But it didn't leave me 100% satisfied. I've just seen someone's suggestion of Modern Perl, and I...
  • Commented on Swampy.pm6
    I'm having fun watching you have fun with these blog posts. :) You might want to check out the Turtle class in the Spiral and Zig-zag matrix entries from this search for turtle on Rosetta code. Also, Create and Distribute...
  • Commented on Think Python, But Perl 6 - Chapter 3: Functions
    The REPL has many weaknesses, but there are improvements most months. For example, on Jan 30, timotimo, who did the levenshtein code ("did you mean 'principal'?", which incidentally doesn't yet work in the REPL) said "not [too] terribly long until...
  • Commented on Think Perl6-ish Variables, Expressions, and Statements
    You can indeed much improve your date / time calculations. But rather than get in to that I'm going to recommend that you (and anyone reading along) visit the freenode IRC channel #perl6 and ask there. I'm confident they'd be...
  • Commented on (my $title = "Think Python") ~~ s/Python/Perl 6/ && $title.say;
    > You can also browse a wealth of documentation about Perl 6. not so much on the searching, though And if you use vanilla google, you'll generally get a wealth of info that's out of date or non-technical advocacy or...
  • Commented on Think Perl6-ish Variables, Expressions, and Statements
    Couple more comments. Have you tried the amazing debugger? constant π = 3.14 # can use unicode in variable etc. names...
  • Commented on Think Perl6-ish Variables, Expressions, and Statements
    Using a very recent Rakudo: my $principal = 327.68; my $interest = $principle * $rate; ===SORRY!=== Variable '$principle' is not declared. Did you mean '$principal'? Similar messages appear for misspelled functions and so on. This is timotimo's first code contribution...
Subscribe to feed Recent Actions from raiph

  • Yuki Kimoto commented on A dream realized

    Personally, becuase package syntax is parsed by CPAN to get the package name, I want to respect the package syntax.

    My idea is

    package Foo is class {

    }

    or

    package Foo : class {

    }

    How about this?

  • Ovid commented on A dream realized

    Hi Yuki,

    We're trying very hard to avoid overloading the meaning of existing Perl features, so we deliberately didn't go with the word package. The package keyword simply declares something as being in a given namespace. The class keyword in Corinna does the same thing, but it's a historical accident in Perl that classes and packages are sort of the same thing.

    In reality, a class is a data type, not a namespace. They're fundamentally different. While I don't know if it can be fixed, in the long-term, I would love to see the…

  • philip r brenan commented on A dream realized

    The opening comments argue that because some people have worked in this area for some time then their "authority" is enough to make the claim that Corinna is valuable. But this is a well known fallacy:

    https://en.wikipedia.org/wiki/Argument_from_authority

    If these people have genuine authority gained from years of hard experience in this field then they will be able to tell us in a few cogent words why Corinna is so much better than Moose and all the other OO systems available on CPAN. They will be able to…

  • Damian Conway commented on A dream realized

    I'm a little confused, Philip. You ask me to rewrite the article so that you can "know the compelling reasons why Corinna is so good"...but the article already contains at least six of those:

  • More concise syntax (therefore more readable)
  • More declarative syntax (therefore less boilerplate implementation code required)
  • Less prone to bugs (because more concise and more declarative)
  • Better performance for most method calls
  • Compile-time checking for at least one common type of error
  • Built right into the language, so no need to rely on external modules …
  • Brett Estrade commented on A dream realized

    You're expending some hard won social credit on this endorsement of this latest attempt at POOP. For the sake of Perl, I hope you are hitching yourself to the correct attempt and not in some vain attempt to lend credit to the claim that, "POOP is not the problem, it's just never been implemented properly". Sounds like a familiar claim.

    Subscribe to feed Responses to Comments from raiph

  • About blogs.perl.org

    blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.