Re: [Haskell-cafe] Confused about ByteString, UTF8, Data.Text and sockets, still.

2010-09-03 Thread John Millikin
On Fri, Sep 3, 2010 at 05:04, JP Moresmau wrote: > I have replaced JSon by AttoJson (there was also JSONb, which seems quite > similar), which allows me to work solely with ByteStrings, bypassing the > calls to utf8-string completely. Performance has improved noticeably. I'm > worried that I've lo

Re: [Haskell-cafe] Confused about ByteString, UTF8, Data.Text and sockets, still.

2010-09-03 Thread Daniel Fischer
On Friday 03 September 2010 14:04:26, JP Moresmau wrote: > Hello all > > After reading the modules docs and some other discussions, I'm still not > sure what's the best choice of tools for my problem. I'm looking at the > scion server code base. At the moment, it's reading and writing on > sockets

[Haskell-cafe] Confused about ByteString, UTF8, Data.Text and sockets, still.

2010-09-03 Thread JP Moresmau
Hello all After reading the modules docs and some other discussions, I'm still not sure what's the best choice of tools for my problem. I'm looking at the scion server code base. At the moment, it's reading and writing on sockets using Lazy ByteStrings, then converting them to Haskell Strings usin