From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CEVKNn19VGHbqwAAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 16:51:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gPDaMX19VGFlAwAAB5/wlQ (envelope-from ) for ; Wed, 29 Sep 2021 14:51:41 +0000 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 43B083476F for ; Wed, 29 Sep 2021 16:51:41 +0200 (CEST) Received: from localhost ([::1]:58134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVavs-0001Ir-0U for larch@yhetil.org; Wed, 29 Sep 2021 10:51:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVavG-0000Eh-RA for guix-patches@gnu.org; Wed, 29 Sep 2021 10:51:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38264) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVavG-0005Bp-3r for guix-patches@gnu.org; Wed, 29 Sep 2021 10:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVavG-0006wf-0o; Wed, 29 Sep 2021 10:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50814] [PATCH 4/5] guix: Prepare the UI for continuable &warning exceptions. Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Sep 2021 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50814 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 50814@debbugs.gnu.org Received: via spool by 50814-submit@debbugs.gnu.org id=B50814.163292705426682 (code B ref 50814); Wed, 29 Sep 2021 14:51:01 +0000 Received: (at 50814) by debbugs.gnu.org; 29 Sep 2021 14:50:54 +0000 Received: from localhost ([127.0.0.1]:49809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVav7-0006wG-M4 for submit@debbugs.gnu.org; Wed, 29 Sep 2021 10:50:53 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:30734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVav2-0006vj-OT for 50814@debbugs.gnu.org; Wed, 29 Sep 2021 10:50:51 -0400 Date: Wed, 29 Sep 2021 14:50:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail2; t=1632927038; bh=ht3REuv6VmcGMLY4mX52yeI26rlq6/P5sLr1HfPS4jA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=pro0HByhPC+bAOSTYG2319hfOFO1n6qNw8JWAqLDq3kfW6RvphzCeOYvrVKk05Pjz QabnJgkV/LKg/J7jchr+3fYzmoothCRKgPsLxU9ZNkrU0XnIBtWywBQBspkF++Rs1H C1y1DlRy04GyxkLnDxCarZ/5A0tByiFAM7Fi01fyYS/oona5gzoUvSh8NCopP05HYg K7hAgaf8c83dAYfkTryRkFiWmJ+y8dQbqXwNDlpeezCR8LDWUg4t+qgevQePDDqPof 3wNEqLvAnFnttr9Fx/zJRZpSbKxwF0dx6puph3QXUXN+E08nCQIFhBtd2w2JNBHtsx SWeBrXTJbU/Yw== From: Attila Lendvai Message-ID: In-Reply-To: <9c093db2d9019ef2fe9b27979a3b51848f179a3b.camel@telenet.be> References: <20210928162406.27205-1-attila@lendvai.name> <20210928162406.27205-4-attila@lendvai.name> <9c093db2d9019ef2fe9b27979a3b51848f179a3b.camel@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-To: Attila Lendvai Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632927101; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=ht3REuv6VmcGMLY4mX52yeI26rlq6/P5sLr1HfPS4jA=; b=ePtz4v0yjaop6wBXS6ghfLqEipei+MdsTUf6mmMUPj65MARh48QbNqG5iPBTLCKCvrxjk2 pOserrKsHLlrPRMlLgyYGndNjedvJyR7EwHuNqagvtV7K4mBX3QQ8K/KDGP34rtqB1AJ3r Rj9tjGP+ZhuQY4l8Ge7lv5/HhHKV2VYOL/WJagGFVUumXPVwZWBcpZS/duu87jtI7vYgJD LKdiyV5dFqZ7B8OWpRliSswrfjmjJ1g46Nmqdx2+Yz/QRapZfMTK1bNdsVHROhNACnpnMR I0uS2xj/msZ9O6kTP6jdrHux9a2bjKtYJdxBhby25bRNuCzDO7YY/Cada9K8Mw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632927101; a=rsa-sha256; cv=none; b=TM0rf6nIHF23IeXwaYG8GQT+9F2qDEBgsRlGd3rcXjGdi1Fb+2+WpKOL6IU+kmTnOWCg+Q xadiVKVduhMevrAL8RzjnJjpQ2e+hVundpaqCPLl5FcogohNQp0Kk9MdtH6W3KxB+A66hF xEsfUaEgXj00HqKOzUEEsVhTyg+LpBonESF/nWhzRmeup6lEuc4xwiG35msyluhbbEZUoM Z8pYUgtZpv/5vZSnxuP8wZ9cNqwrimfW5S82r4G/E4bbUa+FieOG+PxSCdawqb0JBjVVOz Nr0NOPrxwvD5bztxhF+sdZ3/+nXPUpDndCVAdrZax2txM9Y3UOloTjuexWIcbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail2 header.b=pro0HByh; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail2 header.b=pro0HByh; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 43B083476F X-Spam-Score: -1.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: LoSPx4V2klAs > Do we really need to close and open the connection again every time > a continuation is made and resumed? This seems inefficient if a threading > mechanism implemented by continuations is used (such as guile-fibers), > and there are two threads (=E2=80=98fibers=E2=80=99) communicating and wa= iting with/for > each other in a loop, causing many =E2=80=98context switches=E2=80=99 (i.= e., many captured > and resumed continuations). > > Also note that a connection has some state: to the guix-daemon, it acts a= s > a GC root for everything built with the connection, and everything added = to > the store (with add-to-store & friends) with that connection ... Simply > reconnecting isn't sufficient. pardon my ignorance wrt dynamic-wind and call/cc, but does that^ mean that 1) i should simply leave the wind part of the dynamic-wind empty and move back the open-connection call into the let... or that 2) the entire idea of replacing the exception handler with an unwind-protect is flawed? if 2) then i'll try to smarten up the handler to use raise-continuable if the exception is of type &warning. or any better ideas? - attila PGP:=C2=A05D5F 45C7 DFCD 0A39