From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2OkFECK102WriAAA62LTzQ:P1 (envelope-from ) for ; Mon, 19 Feb 2024 21:08:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2OkFECK102WriAAA62LTzQ (envelope-from ) for ; Mon, 19 Feb 2024 21:08:02 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="B/Dusq5k"; 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=1708373282; 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=LbtfSMdM5zjpNHbMoPT6xgtdwlypVMzig3h8jfuT3ew=; b=mH80XkBQj/Q65gCcYYhjbRsu6g+LgS702ZopO+sPxVsqj708xQnBrfobNsy3BPEGwz4x+R dGtPUrhubakS84jZ89h8Z95kMOLOSCeFbY2DCe3Kajp3VVgV1RwfzmavLLzMSVXT3iwXOm hlCgvWEuyWiAGMmGfJsJxdr/N8UcGmx4yosaqkMUP7vzBC5CWGMgxwuUmJudWgkL1Gk0HQ MGQNHSLI3Lq1tA+jhWTb3TitOKQhiucsSCA1g/HJNu5MsOq4ZPdKmobTKi/7dtNHOT/9Sa lVnH4s4jDb4dZRWvM7yeu95s4z3BCWgQDXEXF+SGXkkKRy4vFI2raIzeE5gBjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="B/Dusq5k"; 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=1708373282; a=rsa-sha256; cv=none; b=Qwv+ub0ieIeXkm4eGQpyGuo6Faf3mLkUUjN0pamjudUD4Sd9NFzJHn2bLbEi3Pjerfmr1b qPiMRhSGNn8lmcPXPYKPGbcBYAtTOmRpMLRZrcoNMcQ5U9GZgHmpfntRcjHqubprJ5SyyR tL7hDoZfafbvlh/AQIEZePGPrX87nsDmyAtL+p8Vr8ylDLEoCe7cW64NM/G2Z71V4H9bDG N2Ccx5BXg1exz1yL/IEJhKnryMy23vlLhNdZ5AzXLd3EVKuAICiV+M5HV25uX+qMY09IIT AQQQt1S5HZ0Jnq7pz/o+kiE0ureHFW3pbIV+zA/d8DvvKJ0tk3R9Mn4hgEIQiQ== 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 17C1467C32 for ; Mon, 19 Feb 2024 21:08:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc9uq-0000yd-8g; Mon, 19 Feb 2024 15:07:04 -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 1rc9uo-0000yH-6f for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 15:07:02 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rc9um-0003FE-Cp for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 15:07:01 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C98AB240105 for ; Mon, 19 Feb 2024 21:06:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708373218; bh=pwQq8TcECKdVrW91hPAwK29Yw0H8zgHQNo+p0qPNMjs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=B/Dusq5kWltiNldNnXXNVLauahq18Jb60Tth1bdKnrdFaAo0yOisgjGso8wYuer/W RAFebg7EDXXKqz68BwlXt4mXH4F5icH+fSRhzD3xQBEn1KdHGE9FfxeOMwS4IsxHcR 9J7pO9zLkA3sw6Fx/ZKpMV0xGzKOnUrffIuYs14wSRaKqT7MMfpM9DWrG8LGaxp0Zd B5cYQl9lFkofkJhsFSKCp9GTHQTaLmmmHXHQUh4fnCDD0wEIOVNoer80YgYExUFP9C eNjQgw1BDE5LSCiosJp09cTeo0myYcOHvJiY87CFTqIZAyvwnMiuX09suhQVnj3VaG 9KSljE/C4CmPg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tdtq62BPyz6tx1; Mon, 19 Feb 2024 21:06:58 +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: <18dc2e91dd8.10f3215bc1755701.202604539690134807@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> <87frxohlgo.fsf@localhost> <18dc2e91dd8.10f3215bc1755701.202604539690134807@excalamus.com> Date: Mon, 19 Feb 2024 20:10:38 +0000 Message-ID: <87o7cc6wqp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.66 X-Spam-Score: -4.66 X-Migadu-Queue-Id: 17C1467C32 X-TUID: ldrHMZ6p5F8g Matt writes: > > Note that we already have a WIP an asynchronous API in the works. > > Check out `org-async-call' in > > https://code.tecosaur.net/tec/org-mode/src/branch/dev/lisp/org-macs.el#L377 > > If possible, we should reuse it. > > :O > > - What's the status? Finalizing. > - Anything I could help with? Check https://github.com/tecosaur/org-latex-preview-todos/issues/ > - Are there any notes or supplements that go along with it? Docstring should detail the API. >> I have several general questions: >> >> - what if append/prepend to result asynchronously? >> - what if we replace the result, call async evaluation two times, and they arrive in opposite order (first called is calculated after the second)? >> - on failure, Org babel sometimes uses ~org-babel-eval-error-notify~. How will it interact with asynchronous evaluation? What if we have multiple simultaneously arriving error notifications? >> Example: try running >> #+begin_src bash >> idontexist >> #+end_src > > Are these open questions for the `org-async-call' implementation? No. These are about the patch. And have nothing to do with `org-async-call', which is just a way to call and queue async processes. `org-async-call' was written for async latex preview, but its interface should be generic enough to be reused for babel. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at