From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ICQ8DGbSt2L12AAAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 05:28:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6EpEC2bSt2IqUAEAG6o9tA (envelope-from ) for ; Sun, 26 Jun 2022 05:28:38 +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 BAAF53B4F2 for ; Sun, 26 Jun 2022 05:28:37 +0200 (CEST) Received: from localhost ([::1]:38434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5Iwu-0007yp-Rw for larch@yhetil.org; Sat, 25 Jun 2022 23:28:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5IwW-0007yh-G4 for emacs-orgmode@gnu.org; Sat, 25 Jun 2022 23:28:12 -0400 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:38691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5IwV-0000cc-08 for emacs-orgmode@gnu.org; Sat, 25 Jun 2022 23:28:12 -0400 Received: by mail-qk1-x72d.google.com with SMTP id c137so4812285qkg.5 for ; Sat, 25 Jun 2022 20:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=yNvPrZO0mHX/sM3xJgUJXGcqoxQGJfStKTsjWt2OswU=; b=C/sUAUz7VTkR5CbiDBvQW1W+qYmqKQP5lfzEhuyXqqcl9EZzSaeS+rw/C1LctiWHV2 ZPfZmfMsZF2Z+y0fTfctYJBgPB7O4NLCT3WVmqpt2tbB9ZtoUxRgUtDZoj8BaactFc8b H314M2NFUNIVaVNLKhRp+3bqaEIIxGnpHZPVzbZmVMqH/IzCHgT8a1HSWildsLHk9SRz yXp0nuZzLOtG66HQSRxriaAR2z2wZdZHqY9vpQdb3WzN9Mp8RyBNNzz6KS83gQY74app sfy06ZayBJnmySRsYeidYBGZLYdksX22Jmhb6SlNPvD9ygDbobdirJeybgU4BQONNFIM 7p4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=yNvPrZO0mHX/sM3xJgUJXGcqoxQGJfStKTsjWt2OswU=; b=urPgCTad53f1vVcojFawHsMBvPBfGB0rlKVkoqF4T3u2pIAVdHuZTM6s38Yj3ByVxj vCP2A3PPZx13f7joQ8F4doTyodXhOHpiOG1Hxpp7lz7YJZqydBfGrvle09YJvDJ5Xzj4 zZhaa/EIKSyDgdYnU7ErudBxf6De3FmY9aG1X3zIKa3PORYhl+RuVNqDkaGHah4OxSW/ iEWNXjJjJ5oXqBNbeS0NUITlTPXS8wtYuOzpFHv96luG2N0XBdKXs3ELFzLASNaBB4TN PNbp8KdWMcXEHt2iGTk8QHyaJi5ftwldULT5eHUI5S2H2NCY/aHEhkpV2sUAuM7/z1d7 XxUg== X-Gm-Message-State: AJIora9Aai2oXeDtOvrqNIi13MQLDAPZc7jQgCkPeXMnVe33sEfKhQDr kEHfeFz9xQFNfX9gsUh2vGc= X-Google-Smtp-Source: AGRyM1sCub8dSKbnhIBvMoNcZumqFJy8rfBn/DUbaMeZ1+XKs8/DE5123BovEbKeapCyLAFcBX93VA== X-Received: by 2002:a05:620a:2a0d:b0:6a7:44f0:c2e0 with SMTP id o13-20020a05620a2a0d00b006a744f0c2e0mr4553705qkp.3.1656214089973; Sat, 25 Jun 2022 20:28:09 -0700 (PDT) Received: from localhost ([208.167.237.62]) by smtp.gmail.com with ESMTPSA id i1-20020a05620a404100b006a6ae636ce0sm6035786qko.131.2022.06.25.20.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 20:28:09 -0700 (PDT) From: Ihor Radchenko To: Ivar Fredholm Cc: "emacs-orgmode@gnu.org" , "bzg@bzg.fr" Subject: Re: We have asynchronous sessions, why have anything else? In-Reply-To: References: Date: Sun, 26 Jun 2022 11:29:23 +0800 Message-ID: <87fsjs3xws.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=yantar92@gmail.com; helo=mail-qk1-x72d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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=1656214117; 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=yNvPrZO0mHX/sM3xJgUJXGcqoxQGJfStKTsjWt2OswU=; b=oImL59CaFpq1RSO9Y7aduAWbSYMUumF+XIwgvFoEc4amSp1qwtGDJng6ASe/dhgYdLEr21 4gLKUkgcXwxvphTAwcLfccbX07l160CBXTFM5ouGaMwtAHg9dKyiSA4stuzvzIWGtyZJ6i S2O9vpAnWHTd5O/k+BmXW6lXWdZenph4p5Zlsupy2zEXU/ZYuJTWX1CTRgalmxuEZ2Kv3q T3/7mF6xlDguU36VVpHwSQ1XvdY86k5fBSi/OU//5XfDDujWF77VmwPXDq98glocmCpb/X tjiRVDJ3pgFVqHsA/x4XgPdbKG7MQ3SVEB2VeA4J0D0tV0zgDzz5YraOf5uhSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656214117; a=rsa-sha256; cv=none; b=BNrqNIyLoQcssxJf/E69S2DgPufF1Z2GycT4x2aKq59R9ietnPTjU5JBUrmVQnunHE6j+f w9JV/Hw3dQnlRktL349k9+0pwPLNebnemg0cZNGOyuOxI1u/dnQk+DVZQ/KANpAnHx8su0 ULPfYBqC3gN0K/eBDBH6/S9jHSBqDON7hiRdEIM1O2VrDnA04QrQlLPBMczGUnZ+REPcbJ pdUNcJCxzdqHQ5Y1j0c1TjGr151E0GUSol+egXuCnjLFRdF3b9e3eYCG6qReE2/+14ztzq xTbvhV7fsFIH98K8ILd404WZY4SyuFtK6mcRJpd4hZvBZn1cg9vHf1NKEuN1mA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="C/sUAUz7"; 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: -0.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="C/sUAUz7"; 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: BAAF53B4F2 X-Spam-Score: -0.96 X-Migadu-Scanner: scn1.migadu.com X-TUID: qLOmUEvb/7HN Ivar Fredholm writes: > A session-less block can be executed by starting a session with a special name (say "*none") which always gets killed after block execution is completed. For interpreter-less languages, we could use the shell as an interpreter (for instance, if we wanted to execute C, we could just start a shell, and send it the gcc command to compile and execute). Would this not cut down the amount of code that needs to be maintained and uniformize the existing code? Feel free to compare ob-eval.el and ob-comint.el. Their functionality is not equivalent. In particular ob-eval.el has a better handling of errors. If you find a way to unify the two without loosing the functionality, it will be welcome. Best, Ihor