From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0NuHMDqD1GV+cwEAqHPOHw:P1 (envelope-from ) for ; Tue, 20 Feb 2024 11:47:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0NuHMDqD1GV+cwEAqHPOHw (envelope-from ) for ; Tue, 20 Feb 2024 11:47:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=ndotruY1; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708426042; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=tg4x/+E1FCgv1psxjqCcAu9B5ImMFN3C40tfBXbFIpg=; b=Tunu8lSGYq3/Xs4Fq7ot9wH2Xn+8W4Zt4KRQLR/Os0ZLO7K23ngtvFAlyUzsZRYuvHG6VP mkIh3goKbKH5EqTS1GkVpus0D4EPcR41xwKanj7rA97LjB+95LnLIsRvK0436POXiwY8sI 0h6UtiCo8EaNPLp2jDlkoq+S1gH3CpqCCIcY2+37ALN+X30yQNh+ta4n0u+6zqPdwD8tP9 YbHg0tDDlVnAF3HrarSdR2V4WrpOf/2dcUyyLnarODtL1oDq4sszznAlV17gnLLK2xCeVi e2a8Hg6znKHmX4UJXw8P2d4l3U4H6h1DQ5Ds0nuBj6aMivd0UL8qWRhbg1iHFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=ndotruY1; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708426042; a=rsa-sha256; cv=none; b=PGeYrXOTM8nuX05PJQC+IcJxCr3J64nwKAw2RnCEOsZm22BvqBdVGDQ0SRox1ikmtIvu/L DMNpn6jDfE2krHAtztmYqw/jXgxn3kHOUKQvqpQE2NTQwf1J+WoQ1oEP08dwrVvSS4mlKJ GBcZApCmADcOtmdoHuVWiP2mnCzVSJNrcBuoJ4OoyHCJ/CnBzbqSgIl+kDUU7YGBLzDis7 al4+pB/RRnw/OCUPjQfZqSTMlIYW0khtwA0RoqUW/uo/3GFkefcuYzd0Jkbz2L9+txzk0V qyi5xOsp8s7oq+N9pxVTHLy/eL5Pscx1NYD/UIn9hjkK8XjEyD0FTeaPx2bCgg== 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 9AEB55CE7C for ; Tue, 20 Feb 2024 11:47:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcNe5-0000Ty-4O; Tue, 20 Feb 2024 05:46:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcNe0-0000TR-Km for emacs-orgmode@gnu.org; Tue, 20 Feb 2024 05:46:36 -0500 Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcNdy-00039U-HW for emacs-orgmode@gnu.org; Tue, 20 Feb 2024 05:46:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tg4x/+E1FCgv1psxjqCcAu9B5ImMFN3C40tfBXbFIpg=; b=ndotruY1Rgmkn0s/BOBTjHc+x0 iU7H91y21wHm8GH+JpumXr+NvDN1abnv5kJtEDCoZ7MF/qLfc6rxI80Uidyb5SGJrnlWTyZ3Ug1l/ iku9FDpUN6jpbgIfYAPDcFvNV2qSLJiC7DvxjRyryrzoGYeOLR6tMUbrQrV5jNT/zAD59+8ZOgGMR eUBH2Oe1kOl+B+OFFGO7Zjw99NcmDGmI0OZIdSKvJNzRXbgaEtvPR8ElEwPpBq7wpr2zLN8j0lvyK MUqBGktSRj4cPXIHWb0RjqpoTCv1t3WjT7v9AozO0SDRRscj++t/kG5D8dB8xKQOQxyQtMrw4N+g7 W+EnV4Ng==; Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1rcNdu-0008FR-7W for emacs-orgmode@gnu.org; Tue, 20 Feb 2024 11:46:30 +0100 Date: Tue, 20 Feb 2024 11:46:30 +0100 To: emacs-orgmode@gnu.org Subject: Re: Asynchronous blocks for everything (was Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/build/org/)]) Message-ID: References: <65bbb108.050a0220.b60fd.6790@mx.google.com> <87jznm8hcu.fsf@gmail.com> <875xz42rp9.fsf@localhost> <874jen8zec.fsf@gmail.com> <87o7cv9e80.fsf@localhost> <65c2875f.050a0220.caf6d.8291@mx.google.com> <18dae5cab1d.bf1c7563863897.4896289306902277373@excalamus.com> <65cfa0d8.050a0220.cb569.ce34@mx.google.com> <18dbe11968a.12c0800a31425096.5114791462107560324@excalamus.com> <87h6i3e8g9.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Tgak81VjO3r4wCZG" Content-Disposition: inline In-Reply-To: <87h6i3e8g9.fsf@localhost> From: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.03 X-Spam-Score: -3.03 X-Migadu-Queue-Id: 9AEB55CE7C X-Migadu-Scanner: mx11.migadu.com X-TUID: FOS5nGGvTqxF --Tgak81VjO3r4wCZG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 20, 2024 at 10:28:06AM +0000, Ihor Radchenko wrote: > Matt writes: >=20 > > The blub implementation has the same shortcomings, at least for shells,= as the current shell implementation. It has a few ideas, such as everythi= ng being asynchronous and completely removing the prompt, that may prove us= eful for improving Babel generally. The blub implementation is also simple= r than related parts of Babel and may be useful for figuring out ways to so= lve the currently known shortcomings. If you run into an error during exec= ution, you will need to call (setq my-org-babel-comint--async-uuid nil). >=20 > Doing everything asynchronously is not always desired. > Consider, for example, >=20 > #+begin_src bash > echo "Contents" > /tmp/tmpfile > #+end_src bash >=20 > #+begin_src bash > cat /tmp/tmpfile # I must run after /tmp/tmpfile is created! > #+end_src You "just" [1] need a way of stating dependencies :-) Cheers [1] In quotes, because this opens a vast space of interesting and strange worlds. The functional folks have their monads, the compiler backend builders have their dependency graphs. Definitely doable, but treading with care will be helpful to not step into a mess :-) Cheers --=20 t --Tgak81VjO3r4wCZG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZdSDBgAKCRAFyCz1etHa RiWuAJwLFWgOOEzD1471cbM6TFTBXjPNUwCdFTFGBHKNUkoQmmqoYC1NZBMXSUE= =2nwp -----END PGP SIGNATURE----- --Tgak81VjO3r4wCZG--