[Shootout-list] Re: ghc accerman (same speed, smaller loc) and procinst update

Bengt Kleberg bengt.kleberg@ericsson.com
Mon, 04 Oct 2004 12:53:36 +0200


Einar Karttunen wrote:
...deleted
> anything. There is no real way of sending messages to threads in
> haskell, it is done instead with MVars (or Chans which are implemented
> with MVars). 
> 
> Writing to the MVars does not create significant costs, but I didn't
> include it since the erlang test does not have it either.

the reason for the ''wait on/for an event'' is that i think it is 
interesting to keep the process around. it should not just exit after 
having been created. at the same time it seems ununterestingt to have it 
activly looping, or some such. therefore i suggest a waiting for 
something, although something does not happened.
it must be possible for it to happen, though. i would be unhappy if a 
good compiler said:

'there is no way to contact that process and it is going to wait 
forever. i can kill it.'


bengt