[Haskell-cafe] Big endian vs little endian in Haskell land?
Galchin, Vasili
vigalchin at gmail.com
Thu Jan 22 18:31:30 EST 2009
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 at 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 <vigalchin at 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 at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090122/7c6d36d7/attachment.htm
More information about the Haskell-Cafe
mailing list