lazy thoughts

Bill Baxter wbaxter at gmail.com
Tue Jan 13 14:09:51 PST 2009


On Wed, Jan 14, 2009 at 6:39 AM, Robert Fraser
<fraserofthenight at gmail.com> wrote:
> Fawzi Mohamed wrote:
>>
>> Probably something of the following:
>> 1) In general when you do map you cannot exclude that the user expects
>> sequentiality, or at least not parallelism.
>>
>> 2) if you use forward iterators (and lazy lists are such) are *very*
>> sequential.
>
> Yes, but Haskell is pure-functional.

Sure but in a lazy list the value of element n+1 can depend on any or
all of elements 0..n.
Like a lazy list of Fibonnocci numbers, there's not much you can do to
automatically parallelize that.
Just a guess though.  I have no idea what the problem was.

--bb



More information about the Digitalmars-d mailing list