Block-I/O in Haskell

David Menendez zednenem at psualum.com
Fri Oct 15 01:15:16 EDT 2004


Tomasz Zielonka writes:

> On Thu, Oct 14, 2004 at 09:09:04PM +0100, Jon Fairbairn wrote:
> > > If you are going to wait four months, you don't care about
> > > nanoseconds.
> > 
> > No? Are you sure? To wait forty months expecting two things
> > to happen ten nanoseconds apart and then have them happen
> > simultaneously would be annoying.
> 
> Hmmm, that's right. Perhaps it would be best to use some fixed-point
> type with unbounded integral part, like those used for representing
> currency, but not necessarily decimal.

I'd go with ratios. Haskell has a built-in type, and they can give you
as many digits of precision as you need--unless you're dealing with an
irrational timeout value.
-- 
David Menendez <zednenem at psualum.com> | "In this house, we obey the laws
<http://www.eyrie.org/~zednenem>      |        of thermodynamics!"


More information about the Libraries mailing list