Linked Questions
14 questions linked to/from How to collect result continuously (interruptible calculation) when running parallel calculations?
6
votes
2answers
540 views
ParallelMap and Sow/Reap - not behaving as expected? [duplicate]
Is ParallelMap and Parallelize@Map expected to work with Sow and Reap construct.
This is a rather brief toy code to find all Primes just to force the use of Sow/Reap inside Map
...
562
votes
19answers
142k views
Where can I find examples of good Mathematica programming practice?
I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
45
votes
4answers
2k views
Parallelize evaluation of function with memoization
I have a complicated function that I need multiple times, so I want to memoize it and have the first evaluation done in parallel. Unlike in my example below it's not a continuous function, so ...
18
votes
5answers
2k views
How to determine how much of a table is generated?
If I'm generating a table from a slow function, like this:
foo = Table[SuperSlowExpression, {1000}]
is there a way to determine after submission (so it is too ...
20
votes
4answers
2k views
How to speed up my Project Euler code
The evaluation speed of Mathematica often depresses me. It did it again when I wrote a code to solve a Project Euler problem.
https://projecteuler.net/problem=206
Here's my code:
...
21
votes
4answers
1k views
Recovering intermediate results from a Table after an interruption
I am interested in knowing if it is possible to recover intermediate results from a Table after an interruption.
Let us say I want to produce a really useful table
...
15
votes
4answers
520 views
How can we implement “Sleep Sort”?
Inspired by Implement Sleep Sort:
Sleep Sort is an integer sorting algorithm I found on the Internet. It opens an output stream, and for each input numbers in parallel, delay for the number seconds ...
15
votes
2answers
3k views
Is there a Break[] equivalent for short-circuiting in Table?
I am running Mathematica 7. The following is admittedly a silly example, but suppose that I have a list list whose entries are either ...
15
votes
1answer
1k views
Reap, Sow with Parallelize: bad performance, why?
I have a question about the performance of Reap and Sow with Parallelize. I am aware of the following questions
How to collect result continuously (interruptible calculation) when running parallel ...
6
votes
3answers
276 views
How to keep building list until manually stopped?
I would like to run a numerical experiment for as much as it can run in a reasonable time.
This is a sketch of how I currently do it:
...
5
votes
2answers
268 views
Using Throw within ParallelDo
I've noticed that I can't Throw from within a ParallelDo in the same way that I can from inside Do. For instance, the following will work as anticipated with Do but not with ParallelDo:
...
4
votes
2answers
312 views
Dealing with a huge dataset
I have two ingredients here:
a big dataset contained in a list, with ~ 20M values.
a function that takes as each element of the list as input and yields True or False
I want to save somewhere the ...
1
vote
2answers
112 views
Finish calculation on user Input
Lets say I have a calculation in a form of
Table[myStuff[i],{i,0,k}]
Is there a way to avoid a fixed k but instead end the ...
1
vote
1answer
111 views
ParallelDo errors using Physical Constant and a list
I am new to using Mathematica in parallel and need help with the following code. When it is not run in parallel as follow, it works.
...