Big endian vs little endian in Haskell land?

Hello, Are there applications that have to deal with both(!!!) big endian and little endian on persistent store?? I.e. when marshalling out and unmarshalling in "endian-ness" has to be considered?? Regards, Vasili

Sure, I've had to deal with this frequently. Luckily, Data.Binary has
functions like getWord32be, putWord64le, etc. I've never had any
problems and typically don't worry about the wire format after making
the Binary instances.
Or, if your question was what types of programs might be concerned you
can include any program that writes data to a file where the file
might be read on a different system and networking programs,
obviously.
Tom
2009/1/22 Galchin, Vasili
Hello,
Are there applications that have to deal with both(!!!) big endian and little endian on persistent store?? I.e. when marshalling out and unmarshalling in "endian-ness" has to be considered??
Regards, Vasili
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hi Tom, What is an example of some software in Hackage that reads/writes things like integers to persistent store ... i.e. where endian-ness is an issue? Regards, Vasili On Thu, Jan 22, 2009 at 7:24 AM, Thomas DuBuisson < thomas.dubuisson@gmail.com> wrote:
Sure, I've had to deal with this frequently. Luckily, Data.Binary has functions like getWord32be, putWord64le, etc. I've never had any problems and typically don't worry about the wire format after making the Binary instances.
Or, if your question was what types of programs might be concerned you can include any program that writes data to a file where the file might be read on a different system and networking programs, obviously.
Tom
2009/1/22 Galchin, Vasili
: Hello,
Are there applications that have to deal with both(!!!) big endian and little endian on persistent store?? I.e. when marshalling out and unmarshalling in "endian-ness" has to be considered??
Regards, Vasili
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (2)
-
Galchin, Vasili
-
Thomas DuBuisson