Parallelization of a large array

Russel Winder via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 11 08:57:56 PDT 2015


On Wed, 2015-03-11 at 07:10 -0700, Ali Çehreli via Digitalmars-d-learn
wrote:
> On 03/11/2015 01:07 AM, Russel Winder via Digitalmars-d-learn wrote:
> > On Tue, 2015-03-10 at 15:34 -0700, Ali Çehreli via Digitalmars-d-learn
> > wrote:
> > […]
> >> We can hope to make it simpler by taking advantage of parallel map but
> >> it requires a static local function or a global function (a lambda
> >> cannot be used):
> > […]
> >
> > Is there a reason for excluding lambdas, it a priori sounds like a bug.
> 
> This is a current language implementation issue because there is just 
> one context pointer. Parallel map is a member function that takes its 
> function as an 'alias' template parameter:
> 
>    https://issues.dlang.org/show_bug.cgi?id=5710

Sadly the conversation seems to summarized as:

There is a major problem.
This problem must be fixed.
None of the solution proposed so far are perfect in all cases.
Let's leave the mess as is not even trying to fix at least some of the
worst problems.
No more debate.

I haven't thought about this much, but my initial reaction to this is
that a language that has functions and closures/delegates where a
closure/delegate is not substitutable for a function, has real problems.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150311/73142dfb/attachment.sig>


More information about the Digitalmars-d-learn mailing list