From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id AD/3HsKw02WdgQEAe85BDQ:P1 (envelope-from ) for ; Mon, 19 Feb 2024 20:49:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id AD/3HsKw02WdgQEAe85BDQ (envelope-from ) for ; Mon, 19 Feb 2024 20:49:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b="ZLK/Hv/C"; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; 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" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708372162; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=nWid+xF3wvElg40MUqJP28/tP4yHTtM8eqYkwhJLZfs=; b=FdlYYwZrZv9/BYc2Xt8876rHMwg7ZkQL2q54Xgp4+FO5ULh9hPmwgUt5ovqSnKlEAWhVsU oHC5H2tgJA9960W1QwBmay1V7V4Nhck6ksjhlCrmT1/Nt7P/2p8mix2zcUA1E5jpQPIfQs vKL++QQJgM6EF8X9OoCx7xMd5oMZgxOznGqamCUWKKS5zYIik3bUl5Ezt3eL0YS2sXsT3n sz8dhDb/YJviDjlhl0//FKuPYLHNtoD+RYcXDNspZIXp+x7g87q0sIvuLsy9BKiDtUUTDS r990X5yQAGYlY/7/eZPAKuCwkCJLEj2jW1254BPz6+s9ozMhGVQjtMA7fyy7oA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b="ZLK/Hv/C"; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; 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" ARC-Seal: i=2; s=key1; d=yhetil.org; t=1708372162; a=rsa-sha256; cv=pass; b=tXxovvDuMi/90iRbuyX2b8snTM4uXHLZZVG5rKB/SSkQYWBgTwoFdGivowmsFhWzWm7KmS AhhChj6x7yOaX/mOJH+VxPm+Evwevl2lcdYt3nQ+olY2Wr1YfmIqqtur7GeJNKfTGcZ2gg fLEkZTyQIeUWoF3KrpxkOjoUOWR3HJFKsEQ0s/BchJz25L9/VZWGW/cwlrB799+30h3XrB OYjr/q1MMz+CxMV0HesII1M79aq069TPkz4N40XcPJyhL8RxUK4TBf3OSDEoHqup/r5jIV 6yyS+8R2EfJ3ubATJ2xmSEsCZ3DgQrJ9O3PMKFz5tb0Y5JvxXGkDj4i66AooKA== 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 24D8763410 for ; Mon, 19 Feb 2024 20:49:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc9cV-0001T3-Bx; Mon, 19 Feb 2024 14:48:07 -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 1rc9cT-0001SV-1e for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 14:48:05 -0500 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rc9cR-0006iz-3c for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 14:48:04 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1708372077; cv=none; d=zohomail.com; s=zohoarc; b=X4kUd9P3NW+A6DC6zddes+zzbM0W7g5wfKpGaiflfu+FQ7g0+prmRbi92bG+V5t/ghEOz5bbBaKYwij8xLMUeLezud8KsrfWvU1l3MppAmtDmpzk6Nl/hjlwJWO9yzYYLZjomP4v1kH/6q+43pfyaDPCO0Dw9ddUV6qYofTmrxk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1708372077; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=nWid+xF3wvElg40MUqJP28/tP4yHTtM8eqYkwhJLZfs=; b=mw9YEV1xf6qWl7p9nYbxBHpZqkW0UiQNoB/161817L7q8chyR9Q3aPL6rc1YNZdfjhvUjbwps8iFdc4xVJkZLFLuH1K1l8vYDT5d8Gu8DNLqoPcmXGUxGAzpsHv07v4ZEuMElIyOn6FfOxxDJQpxFN7dZk2nvxoWYCBUr9rRUZY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1708372077; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=nWid+xF3wvElg40MUqJP28/tP4yHTtM8eqYkwhJLZfs=; b=ZLK/Hv/CmmI7jjR/sYCwt5PhDSyFZhk68hE98O5EscSaCNQyOPxF95UpVrVC4Ng2 h0IgbdfLAriToIhn2mmnd5223knVyJ2md3is+Ms4IQlw9k00UX2sUfTWuwZrFbx66F+ TNlbEoW30gjbCF58uMOMOEdu5nVniK3Ee8+7imvE= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1708372073973857.0784747239754; Mon, 19 Feb 2024 11:47:53 -0800 (PST) Date: Mon, 19 Feb 2024 20:47:53 +0100 From: Matt To: "Ihor Radchenko" Cc: "Bruno Barbier" , "Jack Kamm" , "emacs-orgmode" Message-ID: <18dc2e91dd8.10f3215bc1755701.202604539690134807@excalamus.com> In-Reply-To: <87frxohlgo.fsf@localhost> 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> 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/)]) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.112; envelope-from=matt@excalamus.com; helo=sender4-pp-f112.zoho.com 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, RCVD_IN_DNSWL_NONE=-0.0001, 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-Spam-Score: -5.56 X-Spam-Score: -5.56 X-Migadu-Queue-Id: 24D8763410 X-Migadu-Scanner: mx13.migadu.com X-TUID: vzSOdwY8wfii ---- On Mon, 19 Feb 2024 01:31:42 +0100 Jack Kamm wrote ---=20 > I don't remember the details, but my past self [1] thought it would be > good to find a way to replace `process-file' with `make-process' in > `org-babel--shell-command-on-region' or `org-babel-eval', and it seems > you are thinking along those lines with `my-org-babel-eval-async'. Hope > you're able to make progress on this and get the improvements into > ob-eval.el eventually. >=20 > [1] https://list.orgmode.org/871rczg7bi.fsf@gmail.com/#t AFAIK, aside from appending "&", =3Dmake-process=3D is the only way. It wo= uld probably make sense to continue using =3Dshell=3D though. If I underst= and correctly, you (and others) jump between the Org buffer block and the c= omint buffer? ---- On Mon, 19 Feb 2024 10:03:36 +0100 Ihor Radchenko wrote ---=20 > 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#L= 377 > If possible, we should reuse it. :O - What's the status?=20 - Anything I could help with? =20 - Are there any notes or supplements that go along with it? > I have several general questions: > > - what if append/prepend to result asynchronously? > - what if we replace the result, call async evaluation two times, and the= y 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 si= multaneously arriving error notifications? > Example: try running > #+begin_src bash > idontexist > #+end_src Are these open questions for the `org-async-call' implementation? -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at=C2=A0https://liberapay.com/org-mode