Re: [Haskell-cafe] Big endian vs little endian in Haskell land?

2009-01-22 Thread Thomas DuBuisson
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 vigalc...@gmail.com:
 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


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Big endian vs little endian in Haskell land?

2009-01-22 Thread Galchin, Vasili
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.dubuis...@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 vigalc...@gmail.com:
  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
 
 

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Big endian vs little endian in Haskell land?

2009-01-21 Thread 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