[nem-en] multicore map?

Michal Moskal michal.moskal at gmail.com
Mon Jan 8 19:45:47 CET 2007


On 1/8/07, Janez P <noraguta at gmail.com> wrote:
> is there any plan to add multicore map implementation to nemerle
> collections, like at ?
> http://www.ericsink.com/entries/multicore_map.html
>
>
> this would be probably optimization in upcoming hardware?

While this sounds like a good idea at first, it is definitely overkill
in most scenarios (when the function applied returns quickly and
thread overheads are comparatively large). Additionally Nemerle is not
a pure language, so you cannot just go and pararellize things here and
there and hope for it to work.

Also in the setting of an eager language like Nemerle it does not seem
possible to pararellize FoldLeft/Right (called reduce in some
languages).

On the other hand, it would seem worhwhile to have library functions
(in List or in some separate module) to do this pararell maps on
lists.

-- 
   Michał


More information about the devel-en mailing list