From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 eCrREyxkXmPi4QAAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 12:46:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ML35EyxkXmN9hQAA9RJhRA (envelope-from ) for ; Sun, 30 Oct 2022 12:46:52 +0100 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 F3561F75E for ; Sun, 30 Oct 2022 12:46:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1op6lB-0007AK-0I; Sun, 30 Oct 2022 07:45:49 -0400 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 1op6l8-00079g-6V for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 07:45:46 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1op6l5-00068H-Lt; Sun, 30 Oct 2022 07:45:45 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4N0ZGn1Scqz9sVx; Sun, 30 Oct 2022 12:45:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kraus.my; s=MBO0001; t=1667130337; h=from:from: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; bh=H8cQ+qIs8Q0e/KnYXG8MlDLzkeBe9gcEAnHU1ttOgYE=; b=Z5hMXa14wR59POHE6jNv51iC/F0f+ws6G3mifiWccg0yGR1+dpZUZZ9db/WCZGwnokH/ym JwaI7FX9QZLfzSLnfud/If8ATJ9xIzEJVOxeX82Bf0+VoSYvuclZlKS4wkioqfD8KHpp6+ LnGz/PB+K/QDatzw85MFQ8mHcnIx6YS7waFv2PmGBpKuoPPjflg9e2KBzHGKsfcneAqGl+ UCISB13Hpy50YyaSrChkvDlghFmPZxP2kI+nnU03pQ+fK7eT0zQEc/kZYnyai1mYRiDrCU C2xa+lYW+Q2stIMB6eMaKGMEcARJuAv/yXjHhpogtruZ86rerIwoUOo7qVMGSA== References: <87lep3oxcu.fsf@localhost> <878rl1a1e0.fsf@kraus.my> <87a65gmw3f.fsf@localhost> <87sfj88ep7.fsf@kraus.my> <878rkzl49x.fsf@localhost> From: Daniel Kraus To: Ihor Radchenko Cc: Bastien , numbchild@gmail.com, emacs-orgmode@gnu.org Subject: Re: ob-clojure session support (was: ob-clojure eval error when has comment at end of code line) Date: Sun, 30 Oct 2022 12:33:52 +0100 In-reply-to: <878rkzl49x.fsf@localhost> Message-ID: <877d0hmt5y.fsf@kraus.my> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=80.241.56.151; envelope-from=daniel@kraus.my; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667130412; 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=H8cQ+qIs8Q0e/KnYXG8MlDLzkeBe9gcEAnHU1ttOgYE=; b=Ad1cYdwS6hieg/vPzaOqOGeBMh2gyBX797jDI2Sj7gQTi/gUPimGtBKO/MPFUgIAHktpFC lPYHHq/OEJMCmkHLKqxPa4cGEEdxiItfcvgZSpP1t5/7EecdweFo048A7N5R3yLeqmlBY/ 6JqDM31P3NjNJIEWongyG0SBZlNhdoeLjC561sree1E3FeEwSOinh89FCIHh47bk9Not0H Fl6mlGh5HyKhVfhhF6eI25//kvuk1HoZcpN2ot9XwRX8+8FNNpr4ZPgyEtU1hkWqGVDucV xvNSJiFwrUL09qSVIHRxJjcHOFOaJPqd5MK/iAJ20LZsEhwB8r3I2vNfIEIjkw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667130412; a=rsa-sha256; cv=none; b=O9npssBWtAtO7fOvTcE8Od/PmlkUeo88/9WvVuO4UT+5i0GG5JIAI0b0hgpFIpPQpz83ws 3FArQfwQ0PyytFlBAXD71W13g1lNBij+k+Y6V0ddvubdKbP8SW4B3JBgGvEHoDU3EYBGpb bPItW0RblpddP79SVEaY9SAvNWbaWNWWVTAxRUC7C0AsfWBExKf42sCs4u3F0pgkscCz/y fU8qhRUZs22f+k8YEt58NJkscAdAIa9IMh8cXDL+A0qzMagGHIJ+kBGA24ZtAuyKgJKgkL 5bIVe+KRT71FLLPJhIkGlE028r2o01zK9yylzkR94MZ46eDHVrK7fepcR2V7FA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kraus.my header.s=MBO0001 header.b=Z5hMXa14; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kraus.my header.s=MBO0001 header.b=Z5hMXa14; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: F3561F75E X-Spam-Score: -3.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: Dm/8pth8ireJ Ihor Radchenko writes: > > If Bastien removed session support, and you do not see any justification, > it was most likely an oversight. We generally avoid feature regressions: > https://bzg.fr/en/the-software-maintainers-pledge/ > > So, if sessions are currently not supported, it should be considered a > bug and fixed. Let me know if you need any help with the fix. I agree that session support would be nice. The cider backend (and maybe slime and inf-clojure, which I haven't installed/tried) opens a connection and then all source blocks are evaled in this one session, but you can't specify multiple. For babashka, nbb, it's simply running the cli with the code from the source block. > Let me know if you need any help with the fix. I feel adding session support for babashka and nbb (and maybe a future clojure-cli backend) makes most sense. Relying on `inf-clojure` would make this task simpler but this is also the package the least amount of people will have installed, as cider is much more popular. Is there a good (and simple) example of another babel package that implements session support but doesn't depend on an external inf-xxx package? Then I could use code from there. Thanks, Daniel