[racket] choosing channels or async-channels

From: John Clements (clements at brinckerhoff.org)
Date: Thu Nov 17 17:39:16 EST 2011

I always wrestle with whether to use channels or asynchronous channels; specifically, you can model non-blocking 'put' with channels by spawning a thread that calls 'channel-put'.

Moreover, I have more warm fuzzies associated with regular channels, because they're part of the CML model. 

If I'm reading the docs correctly, the principal advantage of the asynchronous buffers is actually their buffered nature, which makes it more likely that the messages will be received in the "right" order.  That, and possibly the fact that the buffer takes less memory than a stalled thread.

Am I reasoning correctly?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20111117/276f8e4e/attachment.p7s>

Posted on the users mailing list.