News for hackers. Stuff that matters.
Re:Larry Wall has approved renaming Perl 6 to Raku by weff_ on Friday October 11, 2019 @07:42PM (#21229406)
Is that a bit like Go's `go` keyword?

edit: that is, as far as I can tell, after a quick Google, it's not too different from Python's Thread object.

Re:Larry Wall has approved renaming Perl 6 to Raku by b2gills on Wednesday October 16, 2019 @12:20AM (#21267007)
The `start` statement prefix operator is a bit like Go's `go` keyword.

(In that when I translate Go into Raku, I usually replace `go` with `start`.)

    my Channel \input .= new;
    my Channel \output .= new;

    start for input -> \message { output.send(message) }

    start for output -> \message { say message }

    input.send(5);
But what he was really talking about is something more like the following.

    sub foo () {
      sleep 10;
      42
    }

    #                     ___
    #                    V   V
    my $delayed-result = start foo();

    say 'Hello World'; # Hello World

    say $delayed-result.status; # Planned

    say await $delayed-result; # 42
Re:Larry Wall has approved renaming Perl 6 to Raku by pmezard on Saturday October 12, 2019 @01:00AM (#21230788)
It is, python Threads are system threads.