Hacker News new | ask | show | jobs
by kilowatt 6566 days 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.h...) always struck me as a pretty cool way to abstract away synchronization problems. Using the multiprocess stuff as a background would be fun.

1 comments

Hmm is poking around the AST necessary? What about looking at the bytecode instead?