user-pic

Liz

  • Website: www.liz.nl
  • About: I must blog about Perl
  • Commented on Concurrency Weirdness
    Ah, yes, arrays are not thread safe if you have on thread adding and another thread removing. Please use Channels for that (the P6 equivalent to P5's Thread::Queue). Locks should probably never be used in any user code....
  • Commented on Concurrency Weirdness
    I first tried to minimize the functionality as I understand it: sub MAIN($lines) { .say for $*IN.lines.tail($lines); } This works fine. Then I tried mixing in the named pipe. sub MAIN( $lines, $pipefile ){ my $p = run << mkfifo...
  • Commented on Further Perl 6 Adventures
    $ 6 'sub a($a,$b) { }; &a.signature.perl.say' :($a, $b) $ 6 'my $b = -> $a,$b { }; $b.signature.perl.say' :($a, $b) Signatures are an object, just like any other thing in Perl 6. Any Callable has it, and it...
  • Commented on Async Aborts and P6SGI
    Thank you for this bug report. Not being a MoarVM / libuv person much myself, I won't act on it in the near future. But I'm pretty sure some other people will soon!...
  • Commented on Christmas Came, Bah Humbug
    As I stated in my London Perl Workshop Keynote, this is just the End of the Beginning. I agree that for Perl 6 to take off, there needs to be a business case for it. In 2016 we will see...
  • Posted Christmas Is Here! to Liz

    Check out the final Perl 6 Advent post of 2015.

    Also check out Jonathan Worthington's thoughts on the 6.c release o…

  • Commented on Fluent interfaces in Perl 6
    Cool! One remark: you don't need a closure for showing an attribute in a string, so: qq/Name: $.name/ will just do fine!...
  • Commented on Is Perl still a useful, viable language?
    I agree that Perl is the future. However, I think that if you think Perl's future depends on Larry's decision on what to name the next version of Perl, you are both demeaning to the fine folks that keep working...
  • Commented on Mystery Line in Proc Input in Perl 6
    Looking into it, it appears there is a different logic in setting EOF between getting a handle from a file, or from a process. The latter appears to be setting EOF too late, hence the extra empty line. Determining cause...
  • Commented on Refactoring Very Old Perl 5 in Perl 6
    Martin Hradil: re .index returning 0 but True? Alas, it didn't make it past TimToady's vetting in the long run :-( I removed that feature yesterday again, Long story: the feature was implemented using a subclass of Int, basically: class...
  • Commented on Refactoring Very Old Perl 5 in Perl 6
    Great post! Some comments: 1. You're using .trim the wrong way: .trim does *not* modify $_. It should probably warn in that case, actually. 2. You don't need .trim at all, as .words ignores any whitespace at the begin or...
  • Commented on Method Privacy in Perl
    Perhaps a source of enlightenment: http://perlcabal.org/syn/S12.html#Submethods...
  • Commented on Rakudo and NQP Internals Workshop (14/15 Sep)
    Down to 2...
  • Commented on Rakudo and NQP Internals Workshop (14/15 Sep)
    Actually, down to 3 now!...
  • Posted Rakudo and NQP Internals Workshop (14/15 Sep) to Liz

    Perl6 is at a turning point. Now running on 2 virtual machines (Parrot and JVM), with 2 more coming available in the next months (Javascript and MoarVM), with abstract concurrency on the JVM now and full Perl 5 interop at the horizon in MoarVM.

    To make it easier for past, current and futu…

  • Commented on YAPC::Europe 2013 in Kiev, week minus 19
    Some people in the Ukraine may not like "Back in the USSR" as the background music. Then again, it *is* April 1st :-)...
  • Commented on Why I'm considering dropping Perlmonks
    I left PerlMonks a long time ago already but for a technical reason: it is just too damn slow. I was impressed by Schwern's YAPC keynote. The comic strip is just bad and in bad taste. As far as I'm...
  • Posted Perl Reunification Summit to Liz

    As some of you may know, my partner Wendy van Dijk and me organized a Perl Reunification Summit on the Friday and Saturday before the YAPC::Europe. Organizing this started in May already, when I tried to contact as many people face to face to discuss this, before finalizing the plan. When the…

  • Posted First Post to Liz

    So, why don't you write a blog? A question I have been asked many a time in the past years.

    I guess I mainly felt that I didn't have to tell the world much. And I was busy with $work.

    Then you stop $work and start with $sabbatical. And start acting on the strange ideas that you …

  • Commented on So, Kiev 2013
    Please make sure that he gets a visa. Otherwise, I understand, he will not be let into the Ukraine (as Australia is one of the few countries of which its citizens need a visa to travel to the Ukraine)....
  • Commented on post-yapc
    Steven: Perl 5 momentum is much on everybody’s mind. The last thing I want is to do, is to take people away from Perl 5 development. What I do want to achieve, is a long term environment in which Perl...
Subscribe to feed Recent Actions from Liz

  • john napiorkowski commented on Further Perl 6 Adventures

    thank you Liz!

  • fireartist commented on Concurrency Weirdness

    The problem may be that changing the size of the array isn't thread safe, and you need some sort of lock.

    See this: http://doc.perl6.org/language/concurrency#Safety_Concerns

  • Pawel bbkr Pabian commented on Concurrency Weirdness

    Liz: that is expected, quote from mkfifo manpage:

    "Opening a FIFO for reading normally blocks until some other process opens the same FIFO for writing, and vice versa."

  • Aaron Baugher commented on Concurrency Weirdness

    Thanks everyone for the ideas. Yes, a named pipe blocks until a process reads from it. So that part works: as soon as I read from it, that loop continues, printing the array to the filehandle, closing it, and starting over. But while it's waiting, it stops the other thread. I'll check out the stuff on thread safety and try some different arrangements. Thanks again.

  • Aaron Baugher commented on Concurrency Weirdness

    I tried replacing the named pipe open with something else that would block -- reading a line from a pipe to grep without a filename -- to make sure it wasn't the named pipe itself causing the problem. Looks like it wasn't, because the for loop still starts and then stops after some lines. So I'm off to learn about thread safety!

Subscribe to feed Responses to Comments from Liz

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.