user-pic

moritz

  • Website: perlgeek.de/
  • About: I use Perl, and develop Perl 6
  • Commented on Perl 7, not quite getting better yet
    Smylers, another nugget to consider: Raku's "use DBI:from;" only work because Raku and Perl 5 have different library search paths (and methods, but that's secondary). If you plan to use the same search paths for mixed Perl 5 + 7...
  • Commented on Perl 7, not quite getting better yet
    @Smylers that sounds like a really sensible approach, but there's some details to be worked out. If you run a script using perl7 foo.pl, and it "use"s a module, does it apply Perl 7 defaults to the module? It feels...
  • Commented on Are Restricted/Locked Hashes A Failed Experiment?
    We use them a bit at work. They helped me catch some typos while refactoring very messy code. That said, I'd be fine with a replacement module that works similarly to Python's NamedTuple (that is, you specify the keys at...
  • Commented on Using Role as Partial Classes
    To me, those roles sounds like a degenerate case of the normal "roles for code reuse" approach. Degenerate, because they are only composed into one class. But who knows, maybe in future there's something other than a character that does...
  • Commented on A small puzzle for you
    Here's my solution: https://gist.github.com/moritz/4421c5e9ab0e5d994bac...
  • Commented on Creating an MMORPG in Perl
    Question: do you want to hear more about my attempts to create an MMORPG in Perl, even if posts are not Perl-related? Doesn't quite fit the "RPG" part, but it fits the "MMO" part: http://www.lacunaexpanse.com/ the backend is mostly...
  • Commented on YAPC::Europe 2013 in Kiev, week minus 42. Food
    Please serve lunch right at the venue; it means attendants have to worry much less about where to get lunch, and it makes it much easier to converse with other people during lunch. I for one attend YAPC mostly for...
  • Commented on No Accepted Perl 6 Talks at YAPC::EU 2012?
    Thanks for looking into it. While you are at it, could you please send emails to those who have rejected talks too? It feels very weird to notify only speakers who have accepted talks....
  • Posted No Accepted Perl 6 Talks at YAPC::EU 2012? to moritz

    The YAPC::EU blog says "Our final voting round ends on Friday." So, Friday has gone by, does that mean that all talks that have not been accepted now have been rejected?

    And if so, are we really not going to have a single talk on Perl 6? I k…

  • Commented on Yet Another Friday the 13th
    Here's a Perl 6 one-liner: http://irclog.perlgeek.de/perl6/2012-07-18#i_5825055 say (2012..2017 X 1..12).map(-> $y, $m { Date.new($y, $m, 13) }).grep(*.day-of-week == 5)...
  • Commented on Perl first world problems #1
    About perlbrew being slow, if you have multiple cores you could try MAKEFLAGS=-j4 perlbrew ... to compile with 4 jobs in parallel....
  • Commented on Core Modules add/remove quick reference
    FWIW the data is all in Module::CoreList, getting it out isn't very hard....
  • Commented on How (not) To Load a Module or Bad Interfaces Make Good People Do Bad Things
    You are totally right, using a module is too much "black box" in Perl 5. And while require_module is certainly a start in the right direction, it might make more sense to start exposing the more low-level operations to the...
  • Commented on What are your environment settings for Unicode?
    FWIW I wrote http://perlgeek.de/en/article/set-up-a-clean-utf8-environment a while ago, but it probably needs to consider many more aspects and systems....
  • Commented on Perl Helps Save Endangered Languages
    I just downloaded the Perl client, and --list only shows to languages (Italian and Dutch). Is that normal? If not, where can I submit a bug report?...
  • Commented on Let's add Git userdiff defaults for Perl and Perl 6
    For Perl 6, instead of just 'sub', it's probably good to use multi|sub|submethod|method|macro Not sure if it's also a good idea to include BEGIN|END|INIT|CHECK etc., probably not....
  • Commented on Perl6 modules in Rakudo baby-steps, part 1
    For the record, you can also use the PERL6LIB environment variable on the outside of the program, just like PERL5LIB in p5....
  • Commented on Is 230 % 5 == 4? Sometimes it is.
    Output in Perl 6: 0. The reason is that 1.25 is represented as a rational number with integer numerator and denominator, so the identity 200 * 1.15 == 230 actually holds. Put another way: 15:47 <@pmichaud> I'd simply say that...
  • Commented on Grepping exact values
    In Perl 6 this form works already, because each list item is simply smart-matched against the first argument (aka matcher). If the matcher is a block/closure, the smart-matching executes the block, handing the list item as a parameter. If it's...
  • Posted Contribute to Perl 6, without huge startup costs to moritz

    Do you find Perl 6 interesting, but maybe not very accessible? Would you like to contribute half an hour of your time, if it doesn't involve learning a few new languages and weird parrot assembler langauges?

    Then participate in the ="http://perlgeek.de/blog-en/perl-6/contribute-now-…

  • Commented on Improve My Perl 6!
    You can force coercion to a hash with return %( gather for %preds.kv ...) But I'm not sure if you like that bettter. Also a perfect Perl 6 implementation wouldn't need %!freqs{$item1}{$item2} //= 0; and similar lines. I'm pretty sure...
Subscribe to feed Recent Actions from moritz

  • Leon Timmermans commented on Perl 7, not quite getting better yet

    Being a former bioinformatician myself, I can only concur it should work that way; but that's not how academic computing works today and it's unlikely that it will work that way tomorrow.

  • Smylers commented on Perl 7, not quite getting better yet

    you run into weird issues where you have "use5 A::B" but "use7 A::C", and then A::B cannot upgrade to Perl 7, because all the callers still use "use5" to load it

    Not quite. use wouldn't mean ‘load and enforce v5 semantics regardless of what the file says’, but ‘load with v5 semantics by default’. A::B could still put a use v7 in there to switch itself to modern meanings. The point would be to avoid inadvertently loading a legacy module with modern semantics that it didn't know about, but nothing stops it opting i…

  • Leon Timmermans commented on Perl 7, not quite getting better yet

    No apologies needed, but taking things to p5p may be a good idea indeed.

  • tnish commented on Perl 7, not quite getting better yet

    Can we just have a /usr/bin/perl-ng (for 'next gen', or any other cheesy suffix we can think of)? It doesn't take over /usr/bin/perl, we won't end up with multiple perl8, perl9, etc... And it still has "perl" in it. /usr/bin/perl-ng will be 7 and beyond, /usr/bin/perl will be 5.x. Distros can ship a perl 7+, and a perl 5.x. It will be annoying to remember adding -ng to perldoc, cpan, and a few others, but, seems like something we can get used to (I'd just use shell aliases or something).

  • George Magklaras commented on Perl 7, not quite getting better yet

    Nice article, I see most of your points. For the purposes of accuracy, however, you might like to correct what you say about Python3 and the Linux distros. Fedora (since Fedora 32 which is the latest stable) has switched to Python3 by default (and yes, this has upset many dev folk that were still relying on Python2). Gentoo (I think) has a compilable option to switch to Python3 and OpenMandriva has also ditched Python2. So, things are happening there.

Subscribe to feed Responses to Comments from moritz

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.