[Haskell-cafe] exceptions, errors, random

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Fri Jun 23 06:31:02 UTC 2017


On 23 June 2017 at 16:10, Dennis Raddle <dennis.raddle at gmail.com> wrote:
> Thanks! Quick question, if I can split my task into 4 completely independent
> subtasks, what if I code a single program, then invoke this program on each
> of the 4 subtasks and let the OS give each program a CPU core (there are 4
> cores on my MacBook)? Would that be a simple way to take advantage of
> parallelism?

Not a very efficient method, but in essence yes.

>
> Note that it's always a good idea to start with a simpler prototype anyway
> ("solve a simpler problem first" in the words of Poyla) so it's a good idea
> for me to write a prototype that does not use parallelism. If I can then
> make it parallel just by invoking it four times and let the OS do its thing,
> that would be nice.

My take would be "build a non-threaded/serial solution, then try and
parallelise different parts".

>
> D
>



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list