From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8MDAH+xZw2NrWAEAbAwnHQ (envelope-from ) for ; Sun, 15 Jan 2023 02:42:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aHHKH+xZw2MSMwAA9RJhRA (envelope-from ) for ; Sun, 15 Jan 2023 02:42:04 +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 1F76330D2 for ; Sun, 15 Jan 2023 02:42:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGs1S-0001xk-Od; Sat, 14 Jan 2023 20:41:22 -0500 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 1pGs1R-0001rc-7V for emacs-orgmode@gnu.org; Sat, 14 Jan 2023 20:41:21 -0500 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pGs1O-0004uF-Fn for emacs-orgmode@gnu.org; Sat, 14 Jan 2023 20:41:20 -0500 Received: by mail-pj1-x1031.google.com with SMTP id w4-20020a17090ac98400b002186f5d7a4cso30742496pjt.0 for ; Sat, 14 Jan 2023 17:41:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:date:subject:to:from:user-agent:references :message-id:from:to:cc:subject:date:message-id:reply-to; bh=Al5N3ocsIVQQ4Y2tLCHpPUfxuWOfmVhjhkjvafNwdDk=; b=B3oXmNZqAcjuTwAnQxOOLOwMzvIUmzr0rjXRnCPwtmbNwiWAInCKl/g773e37L3M55 YTrhLIbSgWxWVq8kuL3fGXmNddd8LdAxEC0ZMryyt8sLJjhu9AarHQTFadsd+WELVIx5 8mzKaIzGWlTVwUO3KYoxJsTp91UNh5Nz/P1WG7L2cr1xHNhY59ppgI+Gd3LE+Stg4VF9 GKJxZrOI7u2kp1RZd7Ow8PNxvCtgYy3AmMRWepFLqJYOvzwz8PtkaMFwMleGc/MhaNPz L9PjISGbeyh2dnY0a73XLJ0dw0MtkTuVPGwpE20C+aCyCMFWFnlwVW6/6jK/KCqa0nN2 c7wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:in-reply-to:date:subject:to:from:user-agent:references :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Al5N3ocsIVQQ4Y2tLCHpPUfxuWOfmVhjhkjvafNwdDk=; b=QHbKBFvcEdidKBmuFWVgwzjajsdgJgzbdDj5aX1vQazxSAAx9rgHth/J9wAU6r7ATt e7jKVw1w0WiXsMaKYyHRRnK8cQPCz+MkFOYF77sUViQq1VPcFkQ0vaAmWf7cl5Eud1fj cImH5WfRuAg4ufDrMOG/LVSHmZviYiGJ/W7JbsOkeSS3n6iwIuof8SJLPj7Y/XgiNl9W ziLB19TScbW0FIbPhqDd/E3UPiJ7DJGipWHuusmUVCHYPOSSS2ckPPU1p9T7xl3xbKr1 eMpUj41U2MjiKshk03+hrHevlfoPkz4bp42bUFuVQVjXDM0XCOezG8yGZzusOQKuMXHB zCYw== X-Gm-Message-State: AFqh2kpJIcZkLMoldGonf5RWfdQay2kUmt5SsBi5yF7AX8Sp1LeulwHW 8+tKqlFsxsuDUfDB5aAj8JfQhzSsgr0= X-Google-Smtp-Source: AMrXdXuHd8S3v0sWoaLZ5VenGhDDy/wJc4N9AaOoqwiAFLr2IbRwEddrrVWJxG0omeGQUkzAntFg+g== X-Received: by 2002:a17:902:e54b:b0:191:24d1:8af6 with SMTP id n11-20020a170902e54b00b0019124d18af6mr126436206plf.42.1673746876788; Sat, 14 Jan 2023 17:41:16 -0800 (PST) Received: from dingbat (220-235-140-148.dyn.iinet.net.au. [220.235.140.148]) by smtp.gmail.com with ESMTPSA id bb9-20020a170902bc8900b00192c4055e72sm16503783plb.173.2023.01.14.17.41.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Jan 2023 17:41:16 -0800 (PST) Message-ID: <63c359bc.170a0220.131fc.b279@mx.google.com> X-Google-Original-Message-ID: --text follows this line-- References: User-agent: mu4e 1.9.12; emacs 29.0.60 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Thoughts on this ob language generator Date: Sun, 15 Jan 2023 12:34:14 +1100 In-reply-to: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1031.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.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673746924; a=rsa-sha256; cv=none; b=jwoEGCJTmnxtoULdQ5Uw3okV7szgT/bXD3bxYwIbHPAqkKMcnIhUgbvWfjaNf2DXOaBRYL qi0GLdoOvq4TC6J1SBF0Pecr8j+xYlH975wieR96CNcva9msvRihA6N4vKpVHgBqYRfBg9 s2PBN89jerphg3i9xnzIdUy0w//DfdamGBHuRkDiRTwPKU2u6/O93KBYivOYYvqTAaeGEX vQhii89/q1RYkMA4cAKqK/h7IwfjqcDb1PxPDZ2OjoR7lgilneMAARIlednwAhIPwxq3u1 4SOhhI2k4KnwcyQDgaDf+2VyiKqkqCEwk1AizHlQWjwJr9YqBTZ9xeE2yHuUpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B3oXmNZq; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673746924; 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=Al5N3ocsIVQQ4Y2tLCHpPUfxuWOfmVhjhkjvafNwdDk=; b=F0rC2mjdS0ESlc9/gAVGI1Vw+x4HqzYzn3VqKHIPmnuhQD/mZrwNr/J5yvwYOnpoIa8329 zusEGDW5zlN8pOWtJ/iRcYzlU3ThNhXTsbfTkDyIqon9nhd5nNA+k82MP91uIOUOwTdmCF uTFnbHMljjSTojfaYj6dxRztW82OYwaA2TMrem6gvu/XuJsQXXCT1qqjlwY6TSkrwoCwp/ oAMMbmZwUkgfm3NkUNU2BX1BeZp7QjJO1eJTrsJqh6PqjlDeCV5smPMJKX40tX4PAQ48ti ZUk7f3FJ12XBBtLP6aa79XKAKXYcoOKC7OGNpGM7GbXtp5ejs4etUAU28xWnLg== X-Migadu-Spam-Score: -6.26 X-Spam-Score: -6.26 X-Migadu-Queue-Id: 1F76330D2 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B3oXmNZq; 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"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: 4/HIctcvRBLV George Mauer writes: > I had a need the other day to execute some typescript in an org document. Now I know that there's an > ob-typescript package but that doesn't quite work the way I want and expects typescript to be installed > globally (which runs into a variety of versioning issues). > > There is a better option available with the `npx` program (installed alongside `npm`) which can install a > package along with its dependencies into a temporary sandbox and run its binaries. > > I rewrote the typescript babel plugin to do this and then realized that there was relatively little in it > beyond variable and function names that was typescript-specific. The exact same process can be used for > anything that has an interpreter up on npm. Coffeescript, mermaidjs, all sorts of things. > > So I made a macro. I'm interested what people here think: https://github.com/togakangaroo/create-ob-npx This looks interesting and could have some great potential. As you say, tehre is a growing class of languages which could be supported using this method. I'm interested in trying out the nbb package (Clojurescript on node) using this method, but right now, no time. Really just wanted to give feedbac as I noticed nobody else responded and didn't want to give the impression there was no interest.