From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Bruno Subject: Re: Avoiding threads in the daemon Date: Fri, 19 Dec 2014 22:36:41 +0100 Message-ID: References: <87mw6lym95.fsf@gnu.org> <54946C7A.9020804@logicblox.com> <87ioh7tjg7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1719914534==" Return-path: In-Reply-To: <87ioh7tjg7.fsf@gnu.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nix-dev-bounces@lists.science.uu.nl Errors-To: nix-dev-bounces@lists.science.uu.nl To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel , Eelco Dolstra , nix-dev List-Id: guix-devel.gnu.org --===============1719914534== Content-Type: multipart/alternative; boundary=047d7b674146270b56050a988185 --047d7b674146270b56050a988185 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Dec 19, 2014 at 10:31 PM, Ludovic Court=C3=A8s wrote= : > > Hmm, I=E2=80=99m not convinced about the whole threads-for-convenience ap= proach > =C3=A0 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. --047d7b674146270b56050a988185 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Fri, Dec 19, 2014 at 10:31 PM, Ludovic Court=C3=A8= s <l= udo@gnu.org> wrote:

Hmm, I=E2=80=99m not convinced about the whole threads-for-convenience appr= oach
=C3=A0 la Java.=C2=A0 (I think the ideal is a single-threaded event loop; o= f
course we want to avoid IoC, and this is where FRP or monads come in.)
<= /blockquote>

It is instead for this case. It's not t= hat you have to handle thousands of connections. Threads simplify a lot com= pared to an event loop in C/C++. Don't be fooled by the trends, it does= n't apply here.
--047d7b674146270b56050a988185-- --===============1719914534== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev --===============1719914534==--