From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +INvLcfAxmJxawAAbAwnHQ (envelope-from ) for ; Thu, 07 Jul 2022 13:17:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sO9lLMfAxmKhzwAAG6o9tA (envelope-from ) for ; Thu, 07 Jul 2022 13:17:27 +0200 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 2D57A38EAB for ; Thu, 7 Jul 2022 13:17:27 +0200 (CEST) Received: from localhost ([::1]:60600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9PVe-0006f1-9Z for larch@yhetil.org; Thu, 07 Jul 2022 07:17:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9PUd-0006eb-0b for emacs-orgmode@gnu.org; Thu, 07 Jul 2022 07:16:23 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:39469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9PUb-0007PN-I4 for emacs-orgmode@gnu.org; Thu, 07 Jul 2022 07:16:22 -0400 Received: by mail-pf1-x436.google.com with SMTP id j3so6054759pfb.6 for ; Thu, 07 Jul 2022 04:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=A9EChTxxiDSQf2ywtetvIS9AzlSfv/JTUISX9oIRx/0=; b=ooG4XGlXQe8QVowjpuf1sniIN0RXxUDVURk3+0XXUQC8XhRDxO2TzZA/dcr9jlM/H1 +jdLi+Me4+Q4aLEuyHTLRgFxMSBjmRV5Nfxafc44S8PADObyaIKgrxznnYWmhVVjCcpI I3SlvD/w6ZEk020/yhVSXB4K93NY30/72Db71at622jD7UPm3un9xi6SjFNw5fSXr3Uy Fj25q/GqXArwJeQ4leByafBrRvQkb8sEYIi4Wd94x7CUYtTUstGAinzvYbKLlWOgApwY tZLxczFzdbipei5VDIpxi0o0N0fWyM+sYHLKiL864kxVCCRu1dgl/Ex2W1LfEAVKbpB/ D0EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=A9EChTxxiDSQf2ywtetvIS9AzlSfv/JTUISX9oIRx/0=; b=op2ZM4dY0esdIWPmRPQdHA7zGy9Pwap8cnqgMTZyMGaEvV7mlBXHQURjyYewhrLyEZ zb4H0lvYjRgcHLOgw6/HqHiglQRDBmeeOO7SQZpQcamicYRdIubZcRJLeHkssfjk6C2K 7RK+1X2AEEeg/MJurUSdZzAFFqgeTVfmaXUiyxd32wNVoON56+pIDuJl7sFJ1DuPhE8b nb7Nx8UFyrRGHjJbYxg3bLDyjzFDiIMqLRtlgO5FzGOi3kDKcNwa1oBS7REyJDNVYs40 wfz7Mkk2oMMH63JPQZVk3Y3BlKCVo7SXYukQSpOq/x/jorlgkhFLv2AQU2tJP5uvTgms PXWg== X-Gm-Message-State: AJIora82jMoFeBampOVuCn2CCnus7DDjRmJCmeCngZGe1aKFsWXvOHRY OqvDTSfruqi3nL5BN/AKy8M= X-Google-Smtp-Source: AGRyM1tAz5CJyeZJAzKZHsauwolii/lwkzHjg5vatKgXfQDtXX/t9cu5cRFOvFFcWLgTmEiP1fsRFA== X-Received: by 2002:a63:8542:0:b0:415:3194:cc76 with SMTP id u63-20020a638542000000b004153194cc76mr372384pgd.431.1657192580236; Thu, 07 Jul 2022 04:16:20 -0700 (PDT) Received: from localhost ([209.95.60.151]) by smtp.gmail.com with ESMTPSA id i9-20020a170902cf0900b0016beea47800sm6378836plg.41.2022.07.07.04.16.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 04:16:19 -0700 (PDT) From: Ihor Radchenko To: Ivar Fredholm Cc: "emacs-orgmode@gnu.org" , "bzg@bzg.fr" Subject: Re: We have asynchronous sessions, why have anything else? In-Reply-To: References: <87fsjs3xws.fsf@localhost> <87y1xio2cn.fsf@localhost> Date: Thu, 07 Jul 2022 19:17:26 +0800 Message-ID: <87h73tuq7t.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=yantar92@gmail.com; helo=mail-pf1-x436.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657192647; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=A9EChTxxiDSQf2ywtetvIS9AzlSfv/JTUISX9oIRx/0=; b=CZZ1xACKPDpsZqWtamxWjSk+FbVHb4xkJt60gztTbknLOMD4+d2keajZKeJB0FOMadgPwl KKzlVFALB6wtvYo3Oz4GKUUHGmtexSRgKOjt2rvF987sD0sLIFq9P4oJ6FOUA2zerular4 DVh2H2Dse3vMxK8H4MYPZPDdF+0YEGzNOhN6KHOAJStE2FJw5b82qx/FzjW4BcKLh4BntK AxV+mS4pBVQCUQl1gX5pZRZhj9ZDx8Ym7xEcOn39upI0S5nFR7235lQtxTCQ6C7i08TJu8 cmMNndkf8sZRdh5OVUUttMj4qMv1hBVpBFAkSBux2WjGXRp2pJ/O2m9bHgkF1g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657192647; a=rsa-sha256; cv=none; b=Nm5eOoxNyPSp76vuKQxfPgYEE5IIMC6/n/4Ph0I7Qdsvc8+m2D/mw1X4YgnMO7AhQpbCl2 wpOw/oXxyHRPAQuyVTJGTHal4SI9RdwSrq8ALyy8XQQ/nc23dzofgtb60o86rGOUophbKc x8U/Eil/Ssu0zVjYqAHlvnryyum6HbvsqQIIufSW7tufltonOU8/eqb/OslS1WN4cNmFc6 BA1vI13CG+PErpTzdP4uLlQofgxMIGhHuFF8qBuJ7wd7ETEXGDz6Q0sWGJRU51QGoz5W6/ KY1dPnaeeAjRB+AVzZqcc7SXxnwjFQzJi4MsQFlkrIKiJXz+7WxpRGjPaRY9PQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ooG4XGlX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ooG4XGlX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2D57A38EAB X-Spam-Score: -2.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: kQbRdK2y0+4X Ivar Fredholm writes: > Hi Ihor, I have a prototype of what I mentioned earlier, at least for python. This supports asynchronous, synchronous, session, and session-less blocks. It's pretty messy but it helps to illustrate what I had in mind. Let me know what you think. I am not sure how I feel about it. >From cursory look, the idea looks reasonable implementation-wise. However, there is one big important requirement which does not appear to be obeyed by your code: We _must_ be backwards-compatible. All the existing babel backends must not be broken, especially third-party ones. We must not make breaking changes to non-private function definitions. Also, I do not see error handling as it is implemented in our current babel code: Errors should be displayed in a popup buffer. Best, Ihor