[Python-ideas] pmap, preduce, pmapreduce?

Mike Meyer mwm at mired.org
Fri May 25 23:37:29 CEST 2012


Another crazy idea that may not be possible, based on my finally
getting around to watching Guy Steele's talks about what he's up to
these days (http://vimeo.com/6624203).

Given a function that takes a list (or a container class which len
doesn't consume) and a function, and then applies that function to the
list in some way: either element wise, or in pairs of elements/results,
but does it in parallel. It will hold the GIL, but run the function
calls in distinct threads, meaning two applications of the function
could interfere with each other.

Is it possible to place limitations on the function such that this
kind of controlled concurrent operation is safe?

     <mike
-- 
Mike Meyer <mwm at mired.org>		http://www.mired.org/
Independent Software developer/SCM consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the Python-ideas mailing list