Re: Random Access Files in Haskell
Fergus Henderson wrote: On 08-Jul-1999, I stupidly typed: P.S.: The only response was from Ferguson, Who's this "Ferguson" dude? ;-) I hoped that this would be obvious, it's echo "Fergus Henderson" | sed 's/ ...//' = Ferguson It even works well with other people's names: echo "Simon Peyton-Jones" | sed 's/ ...//' = SimonJones or echo "Keith Wansbrough" | sed 's/ ...//' = Keithugh It's a sophisticated form of name compression for low-bandwidth connections, everybody on the Haskell mailing list can easily reconstruct the original name. Patent pending... "Everything counts in large amounts" (Depeche Mode) :-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http://www.informatik.uni-muenchen.de/~Sven.Panne
Re: Random Access Files in Haskell
Damir Medak wrote: Any experiences or hints how to implement Random Access Files in Haskell? Nhc's Binary lib is a little overkill for random access (though it's quite nice for other stuff :-). In vanilla Haskell you can simply use hSeek/hGetPosn/hSetPosn, see http://haskell.org/onlinelibrary/io.html But my main point is the the non-reaction to my mail from Wed, 16 Jun 1999 (Repositioning Handles). Does nobody care about this stuff? Not even the slightest objection? If this is a case, my suggestion should find its way into Haskell2000 quite easily... :-) Cheers, Sven P.S.: The only response was from Ferguson, pointing out possible problems with CR/LF vs LF, but I take Java's point of view: "A newline is a newline is a newline." -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http://www.informatik.uni-muenchen.de/~Sven.Panne
re: Random Access Files in Haskell
A little while ago Damir Medak asked: | Any experiences or hints how to implement Random Access Files | in Haskell? The Binary library distributed with nhc13 and nhc98 supports random access. It can be used to implement indexed file structures of various kinds. See http://www.cs.york.ac.uk/fp/nhc98/libs/Binary.html which includes a pointer to our ISMM'98 paper `The Bits between The Lambdas'. Colin R