In the parallelism section of the guide 
(https://docs.racket-lang.org/guide/parallelism.html), there's a Mandelbrot set 
example demonstrating parallel computation with futures. I've tried it on two 
different machines (with OSX and Linux) but I don't seem to get any parallel 
computation. The futures visualizer shows very short "squares" of work with a 
sync-and-switch to the other thread on both machines. This pattern continues 
all the way to the end of computation. Both machines are using DrRacket 6.7. 
The first example with the for/list iteration works as described.

Has something about futures changed since the example was written? Is the 
problem in the example code or in Racket itself? I'd be happy to submit a PR 
with a fixed example, but I don't understand what's happening well enough to 
figure it out on my own.

I tried to send this message with a screenshot of the futures visualizer a few 
minutes ago, but it was immediately deleted.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to