Re: Fast I/O with sockets

2003-09-17 Thread Peter Simons
Simon Marlow writes: > hGetLine should work fine, indeed that's what I used in the Haskell > Web Server. Well, another -- and more important -- problem with hGetLine is that it will read an arbitrarily long line. An attacker might use this to implement an denial-of-service attack simply by send

Re: Improvement on this function

2003-09-17 Thread Jon Fairbairn
On 2003-09-17 at 10:31EDT Gordon James Miller wrote: Something I think is more café than language: > Hello all. > > I'd be interested in getting some feedback on how to do this linear > interpolation function a little more cleanly. The normal way that this > is taught is to find the set of indi