From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 aExDOsPgXmOZ0gAAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 21:38:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2K9gOsPgXmMWswAAauVa8A (envelope-from ) for ; Sun, 30 Oct 2022 21:38:27 +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 6B89820D9B for ; Sun, 30 Oct 2022 21:38:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opF3l-00025y-ET; Sun, 30 Oct 2022 16:37:33 -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 1opF3j-00025n-A6 for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 16:37:31 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1opF3h-0000FS-7h for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 16:37:30 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (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-102.mailbox.org (Postfix) with ESMTPS id 4N0p4L0Twzz9sNR for ; Sun, 30 Oct 2022 21:37:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kraus.my; s=MBO0001; t=1667162242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=J7VaacH5wiTdlenDVzddI8YFLIFeSz2hApTxkz+g6Xs=; b=xuqHJvw5oCJ6bqrzPiTVxTmA9hTudjxbhBOxESWF/83NzqqsXzbhimsD8OijpmX2RUQd/2 p6xt2dGZ6COaY81xYKxlbUB8PSB8nGCyPWfj+3ngIHv5uFm5R+MOsCZipuKBvOSZYCMyRd GIkWpyiHU8H11uj7nnaMb2AcvDwWsDvTaLwnMhzgXC9Q7BYVyZtEo1tfFBqvkaWx6LDW9t 5diHtcKahwhH4m20Y0WBA07a79xlhiChxUsqVSGmtZe0eDeLgcTZTi/uIrwtD9W+Ox0gNm 48RHfg73BSzhGEXqyVqUbeNbxFpezUEwQluvGHVpkOgCMjXKi6ApsBc7cglbMg== References: <62520bbc.1c69fb81.d855b.549fSMTPIN_ADDED_BROKEN@mx.google.com> <87r0yvoycr.fsf@localhost> <874jvp9wsg.fsf@kraus.my> <87r0yss54r.fsf@bzg.fr> <87zgdg8g2e.fsf@kraus.my> <87o7twqmc4.fsf@gnu.org> <87fsf78xeb.fsf@kraus.my> <87k04j6oic.fsf@gnu.org> <87bkptmu5v.fsf@kraus.my> <87bkpto6yb.fsf@localhost> <8735b5mpxc.fsf@kraus.my> <86a65dcbjx.fsf@gmail.com> From: Daniel Kraus To: emacs-orgmode@gnu.org Subject: Re: Auto detect ob-clojure backend (was: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list) Date: Sun, 30 Oct 2022 21:26:09 +0100 In-reply-to: <86a65dcbjx.fsf@gmail.com> Message-ID: <87a65dkpzc.fsf@kraus.my> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4N0p4L0Twzz9sNR Received-SPF: none client-ip=80.241.56.152; envelope-from=daniel@kraus.my; helo=mout-p-102.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@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=1667162307; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=J7VaacH5wiTdlenDVzddI8YFLIFeSz2hApTxkz+g6Xs=; b=rBPCNmkofKWIBpsbk/pcen1cV7OVHERwsgW1aeP5piML2o8oXvw5xk3BcUFRXUa1GeIn7Z eU6R/Durqt29YsTvgZgCZV0EequXjfvPJi++XGs1Wxf5FpaoEkznN1JKk2n2XMESGZX7yC 83DGuPvsRYHsWN/c1iy0ufUz1GKr72RNaVniK6Zz1u2M8AFQEtGC6DtRA/Fv7UjPjLzR08 ohK8XbO/A/0+6WSQJFLU/82U2r/qrgm38HpWIYYAmWPZPNS5g1fG+oseC4ydS2zMQk4TAf ZpDVWHXUcClJ7AiZp4jMczA6hMzpPF/zSnF9jjn28/8Ng/EDOo4AYrTy5MsVHg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667162307; a=rsa-sha256; cv=none; b=ox5JOG2w8wyDvBYZIfFGxj5tWrf2EK9Wl+hQ4EvepA3rnM0mcoeU24elCam/SgXP/UaqdR d4iF7XZ92TYw43WT8P2f8KVLw3JYKOm1jBcGbF3P0QpV0buDEqjTPWhG1bWj8ChIKnN1op 8S1OE6yz3uOm8UfI4KvyMPULZiaMClnE1ot8/VnPY5MNWxyqXPB3/nt6na4eJLVtCGXxNG rHDTJjqthnxLZ6sWkYgLJColgvuV+RcFJzfVgDkn7vXuWqb46sjJsyu28pyZtOXR0xwy/j t6EzlmscdvreyqTXuX63kr2wmsHvlBaR69g6eY0eWNMWDqJnO810Ro/p0BRGRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kraus.my header.s=MBO0001 header.b=xuqHJvw5; 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" X-Migadu-Spam-Score: -3.65 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kraus.my header.s=MBO0001 header.b=xuqHJvw5; 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" X-Migadu-Queue-Id: 6B89820D9B X-Spam-Score: -3.65 X-Migadu-Scanner: scn1.migadu.com X-TUID: dlkBu25TODFR Tim Cross writes: > I think bb is a much better solution from a babel perspective and would > love to see it as the default, even when you have both bb and cider > installed. I just installed the patch. So if you have `bb` in your path, ob-clojure should use babashka as default and only fall back to cider when it's not. Currently it looks for bb, and then next `nbb` before cider. Now I realise that nbb shouldn't even be in that list at all but instead should be the default for `org-babel-execute:clojurescript`. > I stopped using clojure in org because it was way too fragile - > depending heavily on cider features which often changed. However, now we > have babashka and nbb, I'm thinking about using org again with > clojure. Happy to hear feedback if you have any :) > I recall looking at the babel code for clojure some time back to see if > it could be made simpler and more reliable. However, there wasn't much > that could be improved on given the design of cider and its focus on > interactive clojure development. I agree, cider is a pretty heavy library. And I feel that if you have already "jacked in" in cider, you simply eval straight from you clj(s) code instead of using org babel. (Maybe in combination with clerk or something if you want it more literal) > I then thought using something like the > Clojure CLI tools might be the way to go. I think I'll add a backend for the Clojure CLI tools. Should be similar simple as bb and nbb with slower startup time, but you would get a JVM Clojure for it. > Now I feel that babashka for clojure and nbb for clojurescript > might be the right answer. Agree. bb default for Clojure and nbb for ClojureScript. Thanks, Daniel