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 cM7LItU4q2NdgwEAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 19:26:29 +0100 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 SAEXItU4q2NVvgAAG6o9tA (envelope-from ) for ; Tue, 27 Dec 2022 19:26:29 +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 47CBC3E2C1 for ; Tue, 27 Dec 2022 19:26:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAEeB-0001Z1-0f; Tue, 27 Dec 2022 13:25:55 -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 1pAEe8-0001XR-ID for guix-devel@gnu.org; Tue, 27 Dec 2022 13:25:52 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAEe5-0000I2-It for guix-devel@gnu.org; Tue, 27 Dec 2022 13:25:52 -0500 Date: Tue, 27 Dec 2022 18:25:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1672165534; x=1672424734; bh=QdlVVUipy4YCBzCeO52Aw53R8UcaA7Jqndl3tqf4tvI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Xcjlq8vCCq4cYgllqmde64WsmCCtgaeTx5gS/VPYHNF762cYFOfvwua0Tzabm8Y4A pEvjp93L5jxGeL/XB3QNe7V2O86u83EAudOHterRW1QeY/YaR8SSOjQ/gLBjMj61Nv ats/gx1OwG5vjjy9CmZatVyS0uiF6qAiRJJP6IUOLXGQu2m6o6kAXDt7MpgLAp2YOW wl9TYlpna2/hAXvNdo5i1n7euipLzHCtdaNabFxYY74sCB7VIcBaRAK4ggRPoJMU7g 1Dg7HskH+4ULKTjFGM46zncPjXk4c8LFKkOZT49XySpIJZV6T0Xq5wUFNWkqctOZyI qDiHOxY2jSqJw== To: jgart From: John Kehayias Cc: glv@posteo.net, Charles , contact@conses.eu, guix-devel@gnu.org Subject: Re: Should Guix support writing CLI Common Lisp scripts? (Think Roswell) Message-ID: <87r0wkk8kx.fsf@protonmail.com> In-Reply-To: <24871675f2ccdf7f3c46c46832b3f3f9@dismail.de> References: <24871675f2ccdf7f3c46c46832b3f3f9@dismail.de> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.16; envelope-from=john.kehayias@protonmail.com; helo=mail-4316.protonmail.ch 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672165589; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QdlVVUipy4YCBzCeO52Aw53R8UcaA7Jqndl3tqf4tvI=; b=iwAMaYZX/n3P4PK7daMSdVw6UkZgVEFEwFqA8X6SxQRxsY3AajkHXKRMhPS6AXxj/33idp T8vDcT+fDNzZpUDX+DNxE8nQ7zjPggqPKSsskVvRMNPwizCa0Ez07zmjTvdoRSwPZmP4Jr N+Fcrn3WfqMkNqu/7v6s2sSOVNE+w14yugXAIBm/RMbSvLqRDRxR3JVjoGURLWcPRmyfW1 4fwjZJgtXxlzboNcE4UTxPHVV1U0NcgBc+GdTzrGW9RtdE6Gj6/+DUjohYSPyg23ikO6CQ L2O8iVbTgA8fGoxkgAVHA45F3XitkqlG2QSVt7R1FRLBzbokFwzozyCODzxYVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=Xcjlq8vC; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=protonmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672165589; a=rsa-sha256; cv=none; b=tH/XGtZYCkqKQa4ch7dMAfRlmA7uLDX19AAmFgXtGkVD4hdoycgJPPqUCCnoOXXm1ksJhx ubUaQJveichObrtNZBjzj7deJjIGv12mNtIswPtlv0mTp6VuzvXneILJkk+Y8STFi6R3ph FTal5tkABxATv8iozCJ3RzLzVbpTjZVxOIf7PI2ZzUAYLa4gLNEj+2pVUPubfRq7OnjYRL Mpsnn09H44DQKB1BxaYmgQOZ9rjMsvxCEFUaaLR4ozGd2B/mCD3DvwYtWZ1GnyxGw6O73h RzrGvWMrNxxuSFUEMd27BaDO9dFD+fNY1ml+cSqBlrEcmIkXvs5KoKEuwa0lGA== X-Spam-Score: -4.67 X-Migadu-Queue-Id: 47CBC3E2C1 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=Xcjlq8vC; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=protonmail.com X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.67 X-TUID: +vC9nmrLtMPu Hi Guixers/Lispers, On Tue, Dec 27, 2022 at 06:14 PM, jgart wrote: > Hi Guixers, > > Should Guix support writing CLI Common Lisp scripts? (Think Roswell) > >> Although Roswell is a unified interface to Common Lisp implementations, = it also >> encourages writing scripts with it. >> A "Roswell script" is an implementation-independent script which can be = invoked from a >> shell command line, launched by > Roswell and run under standard CL envi= ronment. > > Just insert "Guix" wherever you see Roswell mentioned in the above quote. > >> * A roswell script can be distributed using quicklisp's infrastructure > > Just insert "Guix" wherever you see quicklisp is mentioned in the above q= uote. > >> If you're the author of the library, then consider adding the ros file t= o the repository >> and automatically providing a roswell-installable command-line interface= to it. > > Same above, insert Guix. > > I think we should make it easier for Lispers to write CLI scripts with Gu= ix. > > WDYT > > I'm not sure what you mean if it is something beyond what we can do already= with 'guix shell.' Do you mean using a particular hashbang as well? I have= n't done that but my simplistic usage is quick and easy for me. For example, I like to have some CL scripts I use for file processing that = lives as a single .lisp file. To run it I just do: guix shell sbcl sbcl-cl-csv unoconv -- sbcl --load myscript.lisp ~/Download= s/*.xlsx where I can include the compiler/interpreters sbcl, needed library, and an = external tool that is called by the script for pre-processing. Works great,= and of course instantly after the first caching. This could be combined wi= th a manifest, version/channel pinning, making my script a package in a cha= nnel, guix.scm file, and so on, to make it more reproducible. But for me th= is is already super handy and easy, just one line. John