[Haskell-cafe] Iteratees again (Was: How on Earth Do You Reason about Space?)

2011-06-02 Thread Ketil Malde
By the way, what is the advantage of using iteratees here? For my testing, I just used: main = printit . freqs . B.words = B.readFile words (where 'printit' writes some data to stdout just to make sure stuff is evaluated, and you've already seen some 'freqs' examples) I have a bunch of old

Re: [Haskell-cafe] Iteratees again (Was: How on Earth Do You Reason about Space?)

2011-06-02 Thread Aleksandar Dimitrov
Hi Ketil, By the way, what is the advantage of using iteratees here? For my testing, I just used: My initial move to iteratees was more a clutch call I made when I was still using bytestring-trie, and was having immense memory consumption problems. bytestring-trie uses strict byte strings as

Re: [Haskell-cafe] Iteratees again (Was: How on Earth Do You Reason about Space?)

2011-06-02 Thread dm-list-haskell-cafe
At Thu, 02 Jun 2011 13:52:52 +0200, Ketil Malde wrote: I have a bunch of old code, parsers etc, which are based on the 'readFile' paradigm: type Str = Data.ByteString.Lazy.Char8.ByteString -- usually decodeFoo :: Str - Foo encodeFoo :: Foo - Str readFoo = decodeFoo . readFile

Re: [Haskell-cafe] Iteratees again (Was: How on Earth Do You Reason about Space?)

2011-06-02 Thread wren ng thornton
On 6/2/11 8:59 AM, Aleksandar Dimitrov wrote: Hi Ketil, By the way, what is the advantage of using iteratees here? For my testing, I just used: My initial move to iteratees was more a clutch call I made when I was still using bytestring-trie, and was having immense memory consumption