Pickling example using Sieve of Eratosthenes

Oct. 31, 2009
3:27 a.m.
Hi Folks: I recently did a talk at the Montreal Python user's group. To illustrate the power of Stackless, I adapted Robert Pike's prime number sieve written in Newsqueak for Stackless Python (I was inspired by the Gregario PyCSP example). Like my previous talk, I got requests from people to see pickling examples (it seems to be an eye opener). So I wrote a version of the sieve that can be pickled and resumed. In this fashion, hundred of thousands of primes can be generated at one's leisure. I have executed the programme in both pypy-c and Stackless Python. I would appreciate comments before putting it in the Stackless repository (however I do that). Cheers, Andrew
5590
Age (days ago)
5590
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andrew Francis