To sum up here is the example
that can write two arrays in one file and then read this two arrays
back. To restore written data it just reads the file into bytestring,
then splits the bytestring into equal parts. The parts are decoded. I
suppose the method is suitable for decoding files with unboxe
To sum up here is the example that can write two arrays in one file and then
read this two arrays back. To restore written data it just reads the file into
bytestring, then splits the bytestring into equal parts. The parts are decoded.
I suppose the method is suitable for decoding files with unb
2009/05/02 Grigory Sarnitskiy :
> 2009/05/02 Jason Dusek :
>> The original poster should try serializing a tuple of arrays
>> instead of serializing each array individually.
>
> Maybe, but I have some doubts. I have to operate with
> thousands of arrays --- are tuples good in such case?
No, they
> 2009/05/02 Jason Dusek :>The original poster should try serializing a tuple of> arrays instead of serializing each array individually.Maybe, but I have some doubts. I have to operate with thousands of arrays --- are tuples good in such case? Moreover it is desirable to write data as it is calcul
2009/05/02 Krzysztof Skrzętnicki :
> 2009/05/02 Jason Dusek :
>> I believe Data.Binary includes a header with the data it
>> serializes. In consequence, the second and all following
>> arrays will be invisible.
>
> I didn't check the Binary instance for arrays, however I
> belive it's not true. Con
On Sat, May 2, 2009 at 11:12, Jason Dusek wrote:
> I believe Data.Binary includes a header with the data
> it serializes. In consequence, the second and all following
> arrays will be invisible.
[Apologies for Jason for sending this twice to him]
I didn't check the Binary instance for arrays,
I believe Data.Binary includes a header with the data
it serializes. In consequence, the second and all following
arrays will be invisible.
Sorry I can not be of more help.
--
Jason Dusek
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
ht
So I wonder of existing projects of such type, both Molecular dynamics and Monte Carlo methods.
The fastest Haskell Monte Carlo code I've seen in action is
Simon's port of a Monte Carlo Go engine:
http://www.haskell.org/pipermail/haskell-cafe/2009-March/057982.html
http://www.haskell.org/pipe
Hello!I'm interested in computer simulation of molecular systems, especially liquids. Maybe some would say Haskell is far from best choice in the case, but I really like the ease of writing programs in Haskell.So I wonder of existing projects of such type, both Molecular dynamics and Monte Carlo me