Re[3]: [Haskell-cafe] Emulating bash pipe/ process lib

2006-02-10 Thread Donn Cave
On Fri, 10 Feb 2006, Bulat Ziganshin wrote: ... > when i think how to implementat LineBuffering, i decided that it is > the only possible way - read byte a time and see for a '\n'. i don't > know how System.IO implemented but i think that it should do the same Don't know - I see that Simon M follo

Re[3]: [Haskell-cafe] Emulating bash pipe/ process lib

2006-02-10 Thread Bulat Ziganshin
Hello Donn, Friday, February 10, 2006, 12:47:42 AM, you wrote: >> DC> "Slow" devices like pipes, sockets etc. get along fine with Handles >> DC> or whatever buffered I/O - as long as you have only one going at a time. >> DC> Multiple input sources - like, say you want to read a process' output >>

Re[2]: [Haskell-cafe] Emulating bash pipe/ process lib

2006-02-09 Thread Donn Cave
On Thu, 9 Feb 2006, Bulat Ziganshin wrote: > Thursday, February 09, 2006, 8:58:27 PM, you wrote: > DC> "Slow" devices like pipes, sockets etc. get along fine with Handles > DC> or whatever buffered I/O - as long as you have only one going at a time. > DC> Multiple input sources - like, say you want

Re[2]: [Haskell-cafe] Emulating bash pipe/ process lib

2006-02-09 Thread Bulat Ziganshin
Hello Donn, Thursday, February 09, 2006, 8:58:27 PM, you wrote: DC> "Slow" devices like pipes, sockets etc. get along fine with Handles DC> or whatever buffered I/O - as long as you have only one going at a time. DC> Multiple input sources - like, say you want to read a process' output DC> (unit

Re: [Haskell-cafe] Emulating bash pipe/ process lib

2006-02-09 Thread Donn Cave
On Thu, 9 Feb 2006, Marc Weber Marc Weber wrote: ... > So my simple test looks like this: > > > module Main where > import System.IO > import System.Posix.IO > > main = do > (fdIn,fdOut) <- createPipe > let (iohIn, iohOut) = (fdToHandle fdIn, fdToHandle fdOut) > hIn <- iohIn > hOut <- io

Re: [Haskell-cafe] Emulating bash pipe/ process lib

2006-02-09 Thread Kurt Hutchinson
On 2/9/06, Marc Weber Marc Weber <[EMAIL PROTECTED]> wrote: > Hi. I want to write a little haskell program executing about 4 programs > passing data via pipes. As my python script seems to be slower than a > bash script I want to try a ghc executable now. > It should invoke different parts of a tex

[Haskell-cafe] Emulating bash pipe/ process lib

2006-02-08 Thread Marc Weber Marc Weber
Hi. I want to write a little haskell program executing about 4 programs passing data via pipes. As my python script seems to be slower than a bash script I want to try a ghc executable now. It should invoke different parts of a text to speech chain. This way I have one interface then. Talar und #h