From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IFQ4Ne0pumLW3gAAbAwnHQ (envelope-from ) for ; Tue, 28 Jun 2022 00:06:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SKBMNO0pumJ0JAAAG6o9tA (envelope-from ) for ; Tue, 28 Jun 2022 00:06:37 +0200 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 7B7011B79D for ; Tue, 28 Jun 2022 00:06:37 +0200 (CEST) Received: from localhost ([::1]:55528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5wsO-0000v4-7N for larch@yhetil.org; Mon, 27 Jun 2022 18:06:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5wqV-0000uv-6a for emacs-orgmode@gnu.org; Mon, 27 Jun 2022 18:04:39 -0400 Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]:46693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5wqT-0002VG-DS for emacs-orgmode@gnu.org; Mon, 27 Jun 2022 18:04:38 -0400 Received: by mail-io1-xd32.google.com with SMTP id l24so11038167ion.13 for ; Mon, 27 Jun 2022 15:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LAktbepylZtMb9jvTzlCJGTWa2HtiR1aASsPkepsjMM=; b=byo1UOb8r1NRKo1uCaoPaWaTJA1K0NC9A7K76kMlypwgcVCZPU8I+DIlQYuVHkR5gq tCMKAMeJsPweBu5wm8G30DyFYSUfTVLw3ecZZSKNJp43CJQE+BIWWSwJ+UhymNCtSZO8 fTc/yM7cSG6+t2X09K5BTwQu3HLvJbeWdEsXiJu2NIeBJr6k7XjP9Vq6k7RpWGP/Jpow dP1A3QuUQW7aYmn0dL/3p4dv7i/otkG2xKc2ljxjL+kD2nT/KWyzL4p/uOHLBW0WPg5+ rRmp6z3y9wxjTQCdy/FEk4WwU2g4q7e7d/Xwa9TzjSti2TIN06qGk0dtafwzfed5wZWG cc+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LAktbepylZtMb9jvTzlCJGTWa2HtiR1aASsPkepsjMM=; b=MN8c+nNQCBNg1xBU9vC4L48kYcgl9FIqwx323K/lSbcQZ0g50YaljsfCRCsrrbVZbP VB0UUnZ2Lb8dKH+kMfYlYd4lU/OO5jOAcd0T2YvvKur7HiepV4ta2xBIg9f8Yr22j6gT 4prsM2tx4RkcXZT26cWYpQg4AToynvcsRCuVONktylLtnXQDnEcchSBwTpZ3dEWRANOU dZFMsA6GUsqq5+9uBiOzE64o0TtmCaN38qEi5s4XDhZZ3hQrLQ7bfgr+trAODbhdCHRK ySZerY2DwOz3VyNUCCfOlGLz0QkwtsCqeBwCSbtnCsTTW8ADfWShm6LLytKwICpERDWI EAHQ== X-Gm-Message-State: AJIora+Trwu74y99sgeUlyyFdhm1QLFDyN33LPBeqCq1D/FOX9sLVYqY hgYwIh8IAMxYc1dxqMewELXI7cAAzqj3MWx9xdQ= X-Google-Smtp-Source: AGRyM1t/cVCFK7erCBOnbHkw+8dC1Ndfu0cJc/TMjHRkq8CsMCyPSH37wgtczPdnfNGYBeUW7xgqhV4e6K+ZmFRDPbA= X-Received: by 2002:a5d:914b:0:b0:672:6629:bfa2 with SMTP id y11-20020a5d914b000000b006726629bfa2mr7812541ioq.159.1656367475887; Mon, 27 Jun 2022 15:04:35 -0700 (PDT) MIME-Version: 1.0 References: <87fsjs3xws.fsf@localhost> <87y1xio2cn.fsf@localhost> In-Reply-To: <87y1xio2cn.fsf@localhost> From: Tom Gillespie Date: Mon, 27 Jun 2022 15:04:24 -0700 Message-ID: Subject: Re: We have asynchronous sessions, why have anything else? To: Ihor Radchenko Cc: Ivar Fredholm , "emacs-orgmode@gnu.org" , ian martins Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d32; envelope-from=tgbugs@gmail.com; helo=mail-io1-xd32.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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656367597; 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=LAktbepylZtMb9jvTzlCJGTWa2HtiR1aASsPkepsjMM=; b=L3KbgN7GtFKcaC8L2Brut6jVa/aK8/XMq8EtNV7g7FyJQ5JGWthH73GPHpK7AKGdzv3xvA Ae6+hQRMp5MwI9EoOV3vKRMVqIhUBRKUvLYWgIuhtrhKhOPaLeMleKNv6ADquMd7sK97Zz YsfTmnlk5KtHTJrQHFmLh6Qqrym2BLulelfOBJegJ571dzUcuZlW+sn1yfUaw3dR2tJQVh fG6gaAB2yM6Wf+0aLi5C4FbH9icgBO/um+hmnBnBf4Ru2QudgNkWuR7ebvs+cWTt8dNwk+ gPx4qE6DMTUXGFR2iL+g5YDGrmymo/Zzb91oWkH5iSBYVESC0ZRPaN1d83PghA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656367597; a=rsa-sha256; cv=none; b=IQz+2nYYSuSPkh5zBTKPvoX+wCJ8jKun9dmmJaI52YG81nWgkmFDrnwaHrY8YCJMoUdC3s ZCTMGMm9TPTWm+JG2Y9+MaHvMcF5m9jUcoecda9QCP6OKvWRj8Fq+DFLuj33qz/tvjl5Jg rZAmKNP15Uza1FnrS92vXE5WUXgd/OJtu+8FBZnMTkl+YWVGiZgZxpefGHZuYGkTfBy6Ta psDKmyDX2YxWj9x9jTEa24wO5vhRNrAnVeO2GUc831OyICo6Uj/tzQ2ytr4BO3UM2qHBUB 12CN/QQ6HzFBoPhTcGuEWCX9OJIxYwe8xdIfug7+hmYxG316Eb48VeqfqBBQrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=byo1UOb8; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -4.75 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=byo1UOb8; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 7B7011B79D X-Spam-Score: -4.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: eSRFxO6fnFDb > I am not even sure if all the babel backends support try-except. > Think about ob-gnuplot or, say, ob-latex. Indeed many do not. Defining some standard "features" for org babel language implementations is something that is definitely of interest so that we can provide clear interfaces for things like stdio, error handling, return values, async, file output, remote execution, sessions, return value caching, module discovery/tangling, execution from file vs stdin, execution without a file system path, runtime environment specification, and much more. However, at the moment there is only a preliminary survey of a subset of these that was put together by Ian Martins. https://orgmode.org/worg/org-contrib/babel/languages/lang-compat.html > the two could be unified if we expand the functionality of the async filter While this might be possible, I would definitely hold off on this because the changes in semantics absolutely will break many users' blocks. We barely knew what the impact of changing the default return value for shell blocks would be. I absolutely look forward to the day when this can be done safely and with confidence, but I think we need a much stronger handle on babel interfaces in general before such a change could even be considered. At the moment each ob lang impl pretty much has to be considered to be completely unique, even if the text looks like bash for e.g. shell, comint, and screen. Users are known to rely on undocumented quirks of the ob lang impls that can differ wildly in their semantics. Best! Tom