[Nix-dev] Avoiding threads in the daemon

Luca Bruno lethalman88 at gmail.com
Fri Dec 19 22:36:41 CET 2014


On Fri, Dec 19, 2014 at 10:31 PM, Ludovic Courtès <ludo at gnu.org> wrote:

>
> Hmm, I’m not convinced about the whole threads-for-convenience approach
> à la Java.  (I think the ideal is a single-threaded event loop; of
> course we want to avoid IoC, and this is where FRP or monads come in.)
>

It is instead for this case. It's not that you have to handle thousands of
connections. Threads simplify a lot compared to an event loop in C/C++.
Don't be fooled by the trends, it doesn't apply here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141219/d9469c10/attachment.html 


More information about the nix-dev mailing list