[Haskell-cafe] Re: How efficient is read?

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sun May 9 08:25:07 EDT 2010


On May 9, 2010, at 06:53 , Ivan Lazar Miljenovic wrote:
> Stephen Tetley <stephen.tetley at gmail.com> writes:
>> On 9 May 2010 11:42, Ivan Lazar Miljenovic  
>> <ivan.miljenovic at gmail.com> wrote:
>>>> If you want to parse a stream, you don't want Parsec ___ as it
>>>> isn't an online parser - online meaning 'streaming' i.e. it can
>>>> produce some results during the 'work' rather than a single  
>>>> result at
>>>> the end.
>>>
>>> I thought this was one of the new features in Parsec-3...
>>
>> Possibly?
>>
>> If so, maybe the authors ought to mention it in the cabal.file /
>> package description. I know it can use bytestrings which have
>> efficiency advantages over String, but that doesn't make it online.
>
> Well, RWH talks about Parsecs' "input stream", so maybe I'm just
> confusing the terms: http://book.realworldhaskell.org/read/using-parsec.html

Hm.  I'd understand that as referring to the fact that Parsec 3 can  
use arbitrary input types instead of [Char], not to streams as in  
stream fusion or lazy processing.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100509/7cf8507a/PGP.bin


More information about the Haskell-Cafe mailing list