Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Conncurrency in Perl

by sleepingsquirrel (Hermit)
on Jan 03, 2005 at 19:57 UTC ( #419043=note: print w/replies, xml ) Need Help??


in reply to Concurrency in Perl

What about perl6 junctions as a concurrency operator? I don't know if it was the intention, but functions like "all" seem like they could be put to good use as parallel data constructors (see also Connection Machine LISP). For example...
$ans = 7 + all(1,3,16)
...could spawn off three threads, one for each addition calculation.


-- All code is 100% tested and functional unless otherwise noted.

Replies are listed 'Best First'.
Re^2: Conncurrency in Perl
by hardburn (Abbot) on Jan 03, 2005 at 20:17 UTC

    An excelent point, though I'm not sure we can take it as far as LISP can. There has been some research of late for transparently doing parallel processing in functional languages, which is a really big deal. They can do this because statments in functional languages tend to be highly expressive and self-contained.

    For that to be usable in Perl, the rest of the language has to play nicely, too. To do that, the language probably wouldn't look much like Perl anymore. I suspect that a supporting library will still have to be used.

    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Re^2: Conncurrency in Perl
by tilly (Archbishop) on Jan 05, 2005 at 07:40 UTC
    That would be a very cool idea. It would cause hard to debut errors. It would be very heavy-weight. It would make basic things like handling signals very difficult. But it would sure sound cool.

    Cool isn't always worth it. :-P

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://419043]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2019-12-09 05:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?