[Haskell-beginners] Parallel Processing in Libraries?
Leonhard Applis
Leonhard.Applis at protonmail.com
Mon Jan 20 13:23:40 UTC 2020
Thank you Akhra,
Thank you Sebastian,
I appreciate your help and feedback.
However my Question was maybe not clear enough.
So in general my task is perfectly fit for Control.Parallel and
if I'd make a program including the Code I want I could just put control.parallel in the right places and run the program threaded.
Lets call this Application A.
However for separation I'd like to have my primary code, the one which should be run parallel in a separate library, call it Library A.
Library A should be utilizing Control.Parallel.
I then want to have Application B using Library A with multiple Cores.
The code of Library A has still all the control.parallel in place which worked perfectly fine when run running Application A threaded.
When I run Application B only one core seems to be utilized.
I also don't see any kind of parallel Code in popular frameworks such as QuickCheck2 (which seems very fit for parallel approaches)
which makes me wonder if what I want is "not possible" the way I want it.
I'd like to get Application B (and potential more Application C,D) to utilize library A properly.
I am at the moment not looking for mitigations or parallel-enabling frameworks/libraries.
thank you in advance and best regards
Leonhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: publickey - Leonhard.Applis at protonmail.com - 0x807FDDF3.asc
Type: application/pgp-keys
Size: 1843 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20200120/cac4f22c/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 477 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20200120/cac4f22c/attachment.sig>
More information about the Beginners
mailing list