I'm looking for the right concurrency library/semantics for what
should be a reasonably simple problem.
I have a little simulator:
runWorldSim :: MTGen - SimState - IO SimState
it takes about a second to run on a PC. It's functional except it whacks
the rng, which needs IO. I run 5-10 of
Patrick Caldon p...@pessce.net writes:
it takes about a second to run on a PC. It's functional except it
whacks the rng, which needs IO. I run 5-10 of these jobs, and then
use:
Which RNG are you using that it needs so much IO?
mergeWorld :: [SimState] - SimState
to pick the best features
Ivan Lazar Miljenovic wrote:
Patrick Caldon p...@pessce.net writes:
it takes about a second to run on a PC. It's functional except it
whacks the rng, which needs IO. I run 5-10 of these jobs, and then
use:
Which RNG are you using that it needs so much IO?
Mersenne Twister,
Patrick Caldon wrote:
I'm looking for the right concurrency library/semantics for what
should be a reasonably simple problem.
I have a little simulator:
runWorldSim :: MTGen - SimState - IO SimState
it takes about a second to run on a PC. It's functional except it
whacks the rng, which
Neil Brown wrote:
Patrick Caldon wrote:
I'm looking for the right concurrency library/semantics for what
should be a reasonably simple problem.
I have a little simulator:
runWorldSim :: MTGen - SimState - IO SimState
it takes about a second to run on a PC. It's functional except it
On Fri, 2009-12-04 at 22:51 +1100, Patrick Caldon wrote:
I'm looking for the right concurrency library/semantics for what
should be a reasonably simple problem.
I have a little simulator:
runWorldSim :: MTGen - SimState - IO SimState
it takes about a second to run on a PC. It's
On 04/12/09 11:51, Patrick Caldon wrote:
I'm looking for the right concurrency library/semantics for what
should be a reasonably simple problem.
I have a little simulator:
runWorldSim :: MTGen - SimState - IO SimState
it takes about a second to run on a PC. It's functional except it
On Fri, Dec 4, 2009 at 7:38 AM, Duncan Coutts
duncan.cou...@googlemail.comwrote:
Wait! This is not going to work!
You cannot use the MTGen from the mersenne-random in a concurrent IO
program because the C code uses a single global mutable RNG state.
So use the PRNG in the statistics package