[Shootout-list] Haskell killer prodcons implementation - fair?
Einar Karttunen
ekarttun@cs.helsinki.fi
Sun, 3 Oct 2004 11:11:18 +0300
On 03.10 01:49, Raymond Racine wrote:
> BTW I think the latest Haskell version is hand waving the
> consumer/producer count/increment requirement a tad. Though I agree the
> mVar approach itself is fair.
Count is basically a 1-bit flag telling whether the buffer is empty or
full. Now MVars have that builtin. Note also that many implementations
use unbounded buffers, this is imho quite more against the spirit of
the test, but I wouldn't exclude those either.
- Einar Karttunen