develooper Front page | perl.perl6.language | Postings from June 2006

Re: Synchronized / Thread syntax in Perl 6

Thread Previous | Thread Next
Paul Hodges
June 3, 2006 15:51
Re: Synchronized / Thread syntax in Perl 6
Message ID:
--- Ashley Winters <> wrote:
> On 6/2/06, Paul Hodges <> wrote:
> >
> >  my @answer = map { async { &_() } } @jobs;
> That still seems too explicit. I thought we had hyperoperators to
> implictly parallelize for us:
> my @answer = @jobs.»();
> Which would run them in parallel automatically, if possible.

Snazzy bit of syntactic shenanigans, that...and slick, if we're in that
mode, but just to clarify, I *will* still be able to know whether or
not something's going to thread? Or will it matter?

Seems to me there will be times when I WANT a purely single-threaded
system, even if I'm using hyperops -- in fact, especially if I'm using
hyperops. Maybe we need a pragma to be able to step in and out as

 { no threads;
   print @_.»();

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About