[Haskell-cafe] Web application interface

Alberto G. Corona agocorona at gmail.com
Thu Jan 14 05:50:25 EST 2010


2010/1/14 Jinjing Wang <nfjinjing at gmail.com>

>
>
> Hyena is especially tuned for streaming and that's exactly what hack
> can't do (in practice).
>

Isn't possible to stream an (almost) infinite bytestring trough hack?. I
ever trough that the laziness of haskell is a great advantage in Web
applications. This is very important because the size of the block
transferred vary widely. In my applications I don´t care whether I have to
stream a hello world page or a video.  The first block of my application
goes trough the internet as soon as my  procedure start without concern
about if the processing is composed of a complicated chain of steps or not.
And with no especial coding; Neither my web server interface nor my user
responsiveness requirements force me to code iterations everywhere in my
code.  I know the chuncked mode in web server but I think that just this
mode of web streaming is the right mode for serving lazy haskell
applications.

 My question is why whatever performance advantage the iteratee may have,
can not be coded under the clean interface of a lazy bytestring or whatever
lazy stream.

>
> http://github.com/nfjinjing/hack-handler-hyena
>
>
> --
> jinjing
> _______________________________________________
> 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/20100114/2e647465/attachment.html


More information about the Haskell-Cafe mailing list