Subject: Re: Two versions of sum over node list by recursion--why and how does seco
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Wed, 06 Sep 2006 07:31:20 +0100
|
Is your hope founded on knowledge of someone working on such an
implementation?
For Dimitre, it can also be written as a divide and conquer
sum(empty-list)=0
sum(item)=item
sum(list)=sum(even-position-items)+ sum(odd-position-items)
David
What is becoming important with this is that not in the so distant
future (I hope) an XSLT processor will calculate:
sum(even-position-items)
and
sum(odd-position-items)
in two different threads on two processors so that the total
calculation will be approx. twice as fast.
Parallelization is something very natural in functional programming,
while it can be very difficult to achieve with imperative programming.
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters
|