From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SCG0AEO2H2Ks6gAAgWs5BA (envelope-from ) for ; Wed, 02 Mar 2022 19:24:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aAkENUK2H2ItBQEAG6o9tA (envelope-from ) for ; Wed, 02 Mar 2022 19:24:02 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8A76312922 for ; Wed, 2 Mar 2022 19:24:02 +0100 (CET) Received: from localhost ([::1]:50474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPTdo-0007Gb-V9 for larch@yhetil.org; Wed, 02 Mar 2022 13:24:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPTbu-0001Rp-Mh for guix-patches@gnu.org; Wed, 02 Mar 2022 13:22:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nPTbu-0002NK-AR for guix-patches@gnu.org; Wed, 02 Mar 2022 13:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nPTbu-0001xX-0G for guix-patches@gnu.org; Wed, 02 Mar 2022 13:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54205] [PATCH Shepherd] Factor out a public CALL-IN-FORK. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Mar 2022 18:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54205 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 54205@debbugs.gnu.org, Attila Lendvai Received: via spool by 54205-submit@debbugs.gnu.org id=B54205.16462452827476 (code B ref 54205); Wed, 02 Mar 2022 18:22:01 +0000 Received: (at 54205) by debbugs.gnu.org; 2 Mar 2022 18:21:22 +0000 Received: from localhost ([127.0.0.1]:40714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPTbG-0001wV-Jg for submit@debbugs.gnu.org; Wed, 02 Mar 2022 13:21:22 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:46052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPTbF-0001wL-6A for 54205@debbugs.gnu.org; Wed, 02 Mar 2022 13:21:22 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id 1WMK270064UW6Th01WMK5a; Wed, 02 Mar 2022 19:21:19 +0100 Message-ID: From: Maxime Devos Date: Wed, 02 Mar 2022 19:21:14 +0100 In-Reply-To: <87lexs1gs9.fsf_-_@gnu.org> References: <20220301070615.21028-1-attila@lendvai.name> <87lexs1gs9.fsf_-_@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-d37Z+jk2Klojp1UNGtIa" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646245279; bh=0JQJxQJUulFRZapHcY4cwNhf9mqusXrZbp9c8+GevNs=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=XB8L/JeYVx4Wxny6kfzA9s2lgk6oXZoQzKeZEgDYS7CGM3BJfJpJPGwEkv7DjSJ+6 PvLMfbir5aozzugXthWndVYNMe7QSNXKV1vgxisQfmhwO5WyW5nKZjy+07d8iZiZNe AWIfQ9qbUWtTKf4mXig860u0vspotWIpLaM0aW2DDV06v08dfSTyVvpW2Z1XHJSw6o 1bzkf7KcuzrzzL5mSCZB52gHbSEDTAcvRApYHVLW+G6UHLvI0iULaiiE0YUdY14kAa 7+KUG/T8EIiAVIr3yQppYH1sqc2MH2DQfAxSwoA6jn/GHOJ2U1T15bcrliuf43ftaO YtLRMcFy100LA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646245442; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=0JQJxQJUulFRZapHcY4cwNhf9mqusXrZbp9c8+GevNs=; b=GVbrmgk1rUFNIASKdHISzcimwyXvNSnq3Aon4CgmRPuMExHb7yAy7jN3Ikt/XAOIXf+egs TfXUhydHHEyaMjtjuPNK40L7ifkyWn41ZlsXtd7id+GbRt5mij5zlxl55VRuw2vieXxEos 8OwNUzdOw5V3WsebXFsdZ7NnGeeJVGDPEZ+TQ8iaPoh/TyNnFogfH+x+W4V9WFWuYlmQsp /86BQk6uL2pRFmdyItHBRBml6M4CfgFWWcBqL5AaJwCNlXObAVzDoIg/wizZMN7mHysPYa hVWH+wJwWcrpgF/dqUddspe/R0lzA3kpISTuq4YG7r5/DxKsyn4rIY4ZNlWH5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646245442; a=rsa-sha256; cv=none; b=Pzscam4W1l2ZqLUnanUb3XVw3BxW8lmCHoadvA8508WASaTJ5V5aSkHSGE9m4CA6UTFqJQ ZvQDrmpsmsJFZIAeN9CG10N/8fRgJgsp1zoImi0Mx4OI4k96b9HJqPx+QwQChAw7l3eQxR TxtViL24OMPzvQ4oflmlWxxHA16r06lE4kZDD3nwVDryqiNPnvruXZESpG6UNnDlA5NEIa 1d81I/Vq1SBXBFxtOyD7IqiBYhM47yvr7CqB+bDcVgruh0FixDWDRDtdCb27fI+4Y3cjE7 Kz/MQ1UyEf8lgETwGpQySX/Jr764otqENYuQqde/D06h3zpZFojdtlTyjk2Q3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b="XB8L/JeY"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.12 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b="XB8L/JeY"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8A76312922 X-Spam-Score: 3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: zsKcqiagykhB --=-d37Z+jk2Klojp1UNGtIa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op wo 02-03-2022 om 17:05 [+0100]: > I think what we need is concurrency, not POSIX threads.=C2=A0 IOW, we can > achieve the concurrency we need without resorting to POSIX threads, for > example using Fibers on a single POSIX thread. guile-fibers uses threads internally, e.g. in (fibers interrupts). Interrupts can theoretically be avoided, but that has a downside that if a start procedure goes into infinite loop (while forgetting to sleep), the whole shepherd would hang. I'm not saying that we need POSIX threads per-se -- I find 'choice-operation', 'perform-operation', the channel operations and Fibers conditions much more convenient than the (lack of) POSIX equivalents, but I'd prefer avoiding the assumption of single-threading where feasible, to make it ourselves not harder than necessary in the future, in case it turns out we need POSIX threading somewhere (even if only as an implementation detail). Greetings, Maxime. --=-d37Z+jk2Klojp1UNGtIa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYh+1mhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7gmQAQD4VnFmox1iVeL7BooUkGDLkxus jAqzpyn4eRhC25N30AEAn/ljEQuxDDlnauqTSLJUrUu+i3W7Q90JqxSZhYzNjAk= =WTNF -----END PGP SIGNATURE----- --=-d37Z+jk2Klojp1UNGtIa--