[Haskell-cafe] Re: data structures question

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Sep 1 09:53:51 EDT 2006


Hello Tamas,

Friday, September 1, 2006, 1:52:03 PM, you wrote:

>> >> | type Point = (State, State, Int)
>> > | type TypeV = Array Point Double
>> 
>> which will require 128 gigs of memory for 32-bit cpus and even
>> slightly more for 64-bit ones :)

> Bulat,

> Can you please explain this?  The following code works fine for me,
> and I don't have that much RAM ;-) It seems I am not getting
> something.

sorry, it was entirely my mindbug - i imagined that such type means
that array should contain elements for every possible combination of
State+State+Int :)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list