3 ms·
Keep in mind that Python 2.6 already has the new multiprocessing package, which presents a simple interface for multiprocess computation. I'd like to poke arou
by kilowatt 18y ago
Keep in mind that Python 2.6 already has the new multiprocessing package, which presents a simple interface for multiprocess computation.
I'd like to poke around with Python's compiler module and look at the AST--you could enforce that a certain class of functions have no side effects, and then spawn multiple processes to execute them semi magically.
Futures like the ones in IO (http://www.iolanguage.com/scm/git/checkout/Io/docs/IoGuide.html#Concurrency-Futures http://www.iolanguage.com/scm/git/checkout/Io/docs/IoGuide.h...) always struck me as a pretty cool way to abstract away synchronization problems. Using the multiprocess stuff as a background would be fun.
- randomhack 18y agoHmm is poking around the AST necessary? What about looking at the bytecode instead?