From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +HPLLCl+1GWRQgEAqHPOHw:P1 (envelope-from ) for ; Tue, 20 Feb 2024 11:25:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +HPLLCl+1GWRQgEAqHPOHw (envelope-from ) for ; Tue, 20 Feb 2024 11:25:45 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TYxGZ56e; 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=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708424745; 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=fht35eGpPRmTRDQiurGRZX9b6gj4WqBLjubsyOn+IdI=; b=CE6S7ZuUY+jo7xJc81cuQX8+n2j9sNDKZuAaUHHF1Vap6f3ILn4jsfpCuR6dN9HIoK8mkx wbh7tpH4vPG1Os+OzKUDhm6EeWUTErXjQ5knxsrPdzK2t0EuSN05Oy8HL70nsVMR+VEYeF Ncg5fYUb8ue0tkKqJnGMPTtFuZYKAjRXyM048n5XFY6kM+22EZNW75l7+YKb4TgCPeKsRH W2jElxNNJzISfs0/BlsrF6ojpIOowetj3fbx5iTiNjo0tXckBaMPhjkgFlEGI0RDMVCOUT HYl9sqO4l7xdbBzVcwAWY2icZZDlgb7jlNG/xi+C0llZUjd1fQ46+Wkzws5m5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TYxGZ56e; 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=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708424745; a=rsa-sha256; cv=none; b=GJKd8MxLG6Qc55RC1rPZxzkASTH0wKuFkKKThmcHh9y/hKSaqHaNJRhvhsUT/gxnlw4hfu LvWXqk4Ps+B2iLN+T0GznpsPXxc3RXoq+LrPZlPW9l36ueSdKHtAfQ5hJQ+wf6LAC8MrE/ d2ACyFR93kZB4VABakEMi84V6uATK3jYt22bbeQfZZMLjfzWgHLXyHtgSg+bwmUF5OVDfF UnTgolOcGt82+i8Ozyp5tMEdSrULMwOpriFWSSI06iPRtBBmVAQUrB6kK/b4koxAa1YoTx 6JBBfEZn+vlDttcuJsl3Ugiba68xcBJsfoHbkWjp63p67IG6BwUCRb++zcHvKA== 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 4665C730CB for ; Tue, 20 Feb 2024 11:25:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcNIu-0005ec-57; Tue, 20 Feb 2024 05:24:48 -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 1rcNIt-0005eN-0Q for emacs-orgmode@gnu.org; Tue, 20 Feb 2024 05:24:47 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcNIg-0007YP-EG for emacs-orgmode@gnu.org; Tue, 20 Feb 2024 05:24:36 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0522A240029 for ; Tue, 20 Feb 2024 11:24:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708424670; bh=n2bkSqpDyHEoUn2qRsOmJWU2a0Vf//bLoafaOGVei1w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=TYxGZ56e+DULeey1ZfFMjZfa+p4vFhjfBxsuCNBYTNOgUP+Kzrv+8jR+2p5we4WhR M/pNKsDn92JiGENZ2/pRjg/u7/8w7xiXklVM39k910C9/Qb2jcN/Ky7Up1DeApnmUb ehYNKcL6/JojzNAigRhCqsRbVkuyqBG5PuK9RT41eMdk/CN8v3Wrb3v4FnFQza0gHW xW9gRfYZADKNywk3WT0dmUFw0NE6kd4b1mhlJPBYeLSZ2KuKjAoybO9wrQjiQzvo3y t3RHO4Dgid9FFR2Zrj2WWGgh6tSpHuPM4tCEjwm/WokvnxKZeCkxxLKYiLVdXb1DKc lKOREcR5u7YBg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TfFrX6Tw0z6tyF; Tue, 20 Feb 2024 11:24:28 +0100 (CET) From: Ihor Radchenko To: Matt Cc: Bruno Barbier , Jack Kamm , emacs-orgmode 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/)]) In-Reply-To: <18dbe11968a.12c0800a31425096.5114791462107560324@excalamus.com> References: <87o7d0mm54.fsf@localhost> <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> Date: Tue, 20 Feb 2024 10:28:06 +0000 Message-ID: <87h6i3e8g9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -2.62 X-Spam-Score: -2.62 X-Migadu-Queue-Id: 4665C730CB X-TUID: uGkGSJPkdHax Matt writes: > The blub implementation has the same shortcomings, at least for shells, as the current shell implementation. It has a few ideas, such as everything being asynchronous and completely removing the prompt, that may prove useful for improving Babel generally. The blub implementation is also simpler than related parts of Babel and may be useful for figuring out ways to solve the currently known shortcomings. If you run into an error during execution, you will need to call (setq my-org-babel-comint--async-uuid nil). Doing everything asynchronously is not always desired. Consider, for example, #+begin_src bash echo "Contents" > /tmp/tmpfile #+end_src bash #+begin_src bash cat /tmp/tmpfile # I must run after /tmp/tmpfile is created! #+end_src Also, using "print" statements to create output delimiters might sometimes be tricky. If I remember correctly Ruby repl is asynchronous and sometimes produces unexpected artefacts when you send multiple commands in quick succession. The commands may be executed in different order than you may expect. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at