Re: [Haskell-cafe] Packed String parameters

Thanks, Bulat. Taking a look at Hal's FastIO library now... Hal, it looks like your library could be helpful, especially if there is a way to construct a FastIO.Handle from stdin. Can this be done, or do I need to start with an actual file? Thanks, Chad -------------------------------------------------------- Hello Chad, Thursday, January 19, 2006, 1:09:38 AM, you wrote: SC> parameter. The input file is over 1 million lines long. Any ideas? see at the BlockIO and FastIO libraries http://cryp.to/blockio/blockio-2004-10-10.tar.gz http://www.isi.edu/~hdaume/haskell/FastIO.tar.gz -- Best regards, Bulat mailto:bulatz at HotPOP.com

Hello Chad, Thursday, January 19, 2006, 9:52:59 PM, you wrote: SC> Thanks, Bulat. Taking a look at Hal's FastIO library now... SC> Hal, it looks like your library could be helpful, especially if there is SC> a way to construct a FastIO.Handle from stdin. Can this be done, or do I SC> need to start with an actual file? add the following to fastio.c: void* openStdin() { return stdin; } and this to FastIO.hs: openStdin :: IO Handle openStdin = do h <- c__openStdin return (H h) foreign import ccall "openStdin" c__openStdin :: IO (Ptr ()) btw, id this is a test for shootout - is using C code acceptable? this way you can rewrite the whole program :) -- Best regards, Bulat mailto:bulatz@HotPOP.com
participants (2)
-
Bulat Ziganshin
-
Scherrer, Chad