|
From: | Arthur Maciel |
Subject: | Re: [Chicken-users] Parallel procedures in CHICKEN |
Date: | Wed, 28 Dec 2016 13:46:45 -0200 |
On Sat, 24 Dec 2016 02:11:37 -0200I guess you could spawn a process pool and send these processes a thunk
Arthur Maciel <address@hidden> wrote:
> Is there a way to implement map, for-each and other procedures in a
> parallel way so
>
> (use srfi-1)
> (map (lambda (x) (+ x 1)) (iota 1000000)
>
> would automatically split the list into smaller lists according to the
> number of CPU cores and then gather the results back?
that calculates their part and send back the result. You could use s11n
egg for that, I believe.
I’m not sure it would be faster than the regular functions though.
[Prev in Thread] | Current Thread | [Next in Thread] |