[Haskell-cafe] simple servers

Ertugrul Söylemez es at ertes.de
Thu Sep 20 04:58:57 CEST 2012

Kazu Yamamoto (山本和彦) <kazu at iij.ad.jp> wrote:

> > One last question. When writing C code, using epoll apis explicitly
> > can impose some blocking. Is the same to be said for GHC.Event?
> I don't understand your question.
> All system calls issued from the network package use non-blocking.
> You don't have to worry about blocking at all.

Almost.  Especially when interfacing with C code you should include the
"-threaded" option to GHC to link against the multi-threaded run-time
system.  Otherwise your Haskell code will block your C code and
vice-versa.  Also some concurrency features don't work properly in the
single-threaded run-time.


Not to be or to be and (not to be or to be and (not to be or to be and
(not to be or to be and ... that is the list monad.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120920/c41920e4/attachment.pgp>

More information about the Haskell-Cafe mailing list