From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eI6cIIeJPGDcYgAA0tVLHw (envelope-from ) for ; Mon, 01 Mar 2021 06:28:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sOJfHIeJPGBGLwAAB5/wlQ (envelope-from ) for ; Mon, 01 Mar 2021 06:28:23 +0000 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 B29FD1B152 for ; Mon, 1 Mar 2021 07:28:22 +0100 (CET) Received: from localhost ([::1]:42726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGc2X-0000WW-3y for larch@yhetil.org; Mon, 01 Mar 2021 01:28:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGc1y-0000WO-0G for emacs-orgmode@gnu.org; Mon, 01 Mar 2021 01:27:46 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:39368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGc1v-0003bB-8A for emacs-orgmode@gnu.org; Mon, 01 Mar 2021 01:27:45 -0500 Received: by mail-pl1-x629.google.com with SMTP id k22so9218278pll.6 for ; Sun, 28 Feb 2021 22:27:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=X8EYY3IXHg4O/+exwvitwaVRr8utQJDNgoFeReLltGM=; b=Y8gHRBOSoXmFQMPJpAQd2lfKfTTsce9IHML/zTM6DGaRwfpk42HTqDzAlwv3sXFstV V6fIYMqF7nyl9a4nj/r+/Rq+HZiQs9FwGaQcZqYQ78201rvfFOoPbWnRsTxXyDRpGRPD oyH2oCWiNZyj7S6WJ2j30te0Ge7a/6NeoDISe6mP0YgPMOCKqvdjDX06GGQ4/IAWMpbk M6XKOSWv51EGRu90fGq0dbKFwM8v7+X9BRT6+/fCQBtVmn2tIw9jxWS+CuOBZFeOHXtH 4QqtgYBjWJvsZgEkoxNubBd5cM6kiSlIKfwQY7sF6ohlj2mpMSHMdAwkJzfcY/afnGhv qlcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=X8EYY3IXHg4O/+exwvitwaVRr8utQJDNgoFeReLltGM=; b=KK4cDiB1TRj5l/swDGMGRzgC9nm9inyk1PvJoLDPDcalmrbGnxTj+m0OFGy2xcg/sH sRNlYhCYhJCH2WxPndiiP4tN5Z9EZss3Ze+ZBj0s+im4bjs9rEz+19MHbWGMdnBaML4G WVPShUXhyW0I0PzOcLRqSapCl6LKdqpWzM6JD3gwlEDp+nnpH0qSqowGBg4gAkRflTYM vNu2pAQf2PWb/ZGizZzZtby27bwo4bm7Kc109Jwv81AoR//NLrDjfgF9YWMGUNTCI4kR uOT1Bc+4J5Kig0uGp8z0sYh9TDZaLhFm4EAg95TapuLMXnWEbXY41+BUpBZI1Aa7rZpF whFQ== X-Gm-Message-State: AOAM5312N1Gm4/SZSwQtDN7zAfwxY14MRNWS1WVSAO6qL6UsnHp4idGD 5V2GorwGFNq/1NmvvtCorTo= X-Google-Smtp-Source: ABdhPJy4PDjJIBmBQ030UuD6dw/AZVgY+lkV6588fCEKcqOdsZfXqKqN6be6gg/ibl98UJLVeKZ+Pg== X-Received: by 2002:a17:90a:e97:: with SMTP id 23mr15876357pjx.136.1614580061092; Sun, 28 Feb 2021 22:27:41 -0800 (PST) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id g8sm15286985pfv.140.2021.02.28.22.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 22:27:40 -0800 (PST) References: <87h7qi2l2m.fsf@gmail.com> <87lfdatkys.fsf@gmail.com> <871rczg7bi.fsf@gmail.com> User-agent: mu4e 1.4.15; emacs 27.1 From: Timothy To: Jack Kamm Subject: Re: [PATCH] Async session eval (2nd attempt) Date: Mon, 01 Mar 2021 14:22:56 +0800 In-reply-to: <871rczg7bi.fsf@gmail.com> Message-ID: <874khvie1y.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x629.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614580103; 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=X8EYY3IXHg4O/+exwvitwaVRr8utQJDNgoFeReLltGM=; b=h4FKtzxpSH7kf9nTxgVa2WVo5FyJfWVtKH309lOtxbo3wPjIXQNv8sFNI6g8eKk/U5sDol Mk4vz3PihjGXubeJYNieDe9YUhQ/wA39fbqfkWgHrqsR5OR6zErUmhgEHHzBbOMj1Mue5R cU/LDWLu8ICcj++g4IDK974A38j+AMVpCE76WrvdUU0/hjK4LPO38f1fh/XxJj2reb4JLz 9xGz5QVHxyO1Ww2mlaJ+w7Uw2iZZsuKIy+guOlhah+anMFfvMvXSVaMszL29d/Tt/rdL2H SOS84BfHh2bTxir//0WinaCLCR+w2sgbNWn2AG0hpvh/YYnQtceSQAtsI4dzYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614580103; a=rsa-sha256; cv=none; b=U4fj07DXFqkg2khs3n3Qz3i5hmLPh7tqjfK0lRcY5L8Q/umCHDeVsma/+Eujb8ZhJeIwSR hHFC2lGziXq+y4QYmEhE85r/swGhb/RJB8e5oqATBdMlMA0W0tKSz/3TieHa4g5Nm31btP fuH5YE6vJjuulh8D7Swb7DhG6Lo+Mc57f/NW73Zk5/B6d3A/3JYOpMQvIGCKdu9uZqGG+h UYREEBLbQVkeHenB0+Ax61sY4WXkkv4CP6olheaeYtWa9tD2ekEyL9XhJPloxQsqKsC6yZ 9cC35QaYV1aNyJ17phBHv5nOGvmd1z3yYIMoJ/GuZwKq0XcbN2uPJ/RbvWx38w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Y8gHRBOS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Y8gHRBOS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B29FD1B152 X-Spam-Score: -3.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: zQ/OBuIL241V Jack Kamm writes: > I'm attaching an updated patch rebased on master. Fantastic. Thanks for doing this. > ob-python session blocks don't use "return", so this should just be: Ah, oops =F0=9F=98=9B > The non-session case is substantially different, and I think it would > probably require a separate implementation. I see, fair enough. I haven't looked at the internals myself. > One possible approach would be to modify ob-eval.el, so that > org-babel--shell-command-on-region uses make-process instead of > process-file. > > I agree it would be nice to have, but it would take a bit of work to > figure it all out, and there is already ob-async.el [1] that implements > non-session async for all languages. (I wish it could be brought into > org-mode, but it probably can't, because it depends on the external > async.el.) Interesting that you use a different async method. >> p.s. After this is merged, it would be great to see support for other >> languages grow :) > > I also have an async implementation for ob-R that's ready after this is > merged :) Brilliant! I can't wait. I know Bastien has found himself unfortunately busy as of late (which I think is why he's looking to have someone else take over as project lead), but please don't be disheartened by the slow progress with getting this merged! I can assure you that quite a few people are watching this with keen interest :) All the best, Timothy.