
20 Sep
2012
20 Sep
'12
1:05 a.m.
Hi,
Is it true that writing a simple server using forkIO now integrates native event loops implicitly?
Yes. IO manager handles event driven stuff. Thanks to this, we can enjoy (light) thread programming using forkIO.
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. P.S. This article would help: http://www.iij.ad.jp/en/company/development/tech/mighttpd/ --Kazu