From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 oAsuMB2ixGP3swAAbAwnHQ (envelope-from ) for ; Mon, 16 Jan 2023 02:02:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ULkvMB2ixGMYQgEA9RJhRA (envelope-from ) for ; Mon, 16 Jan 2023 02:02:21 +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 795D2370E2 for ; Mon, 16 Jan 2023 02:02:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHDsn-0007e8-DD; Sun, 15 Jan 2023 20:01:53 -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 1pHDsM-0007Wn-BY for guix-devel@gnu.org; Sun, 15 Jan 2023 20:01:38 -0500 Received: from mail-4319.protonmail.ch ([185.70.43.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHDsJ-0008T3-Do for guix-devel@gnu.org; Sun, 15 Jan 2023 20:01:26 -0500 Date: Mon, 16 Jan 2023 01:01:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1673830878; x=1674090078; bh=QCTxmJ5Od4zDpI6kD8VPNi9js62RDZq4k2LidUe00ng=; 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=Hs4Dkham2ZwQ2vNHlAX8QonSeR60V3lLLx8c968GDJvA5cMfw/hu9Q55umnEYSVuM 7gvjZkCGvNGGskkUUn9MGboZb5DCiIievMpOLqXDnXTXAZSmnzY1ld7xLxhHjwoTcO mz2G2oBeFF+CxnUNPL0C1y5nw1CiihOIWpfR1rX3RagXZFYvFL3B0hzQo7tngw8Akl aFZHNwdkkkBiVyrcO3x+t7qh5NxsU5UZ1/s/HDAU5MECOIVS/p8V+0SUHN+zgWFz1Q Db+Cd764IodZtQUlkfr5NdjwQrMkPPLmXIMLGK6YdvF7d2vQbQH7KCigc6/J2FYnev F+yDh62wFWsBw== To: john.kehayias@protonmail.com, jgart@dismail.de From: Charles Cc: glv@posteo.net, contact@conses.eu, guix-devel@gnu.org Subject: Re: Should Guix support writing CLI Common Lisp scripts? (Think Roswell) Message-ID: <3OSJwI5MpI8PSw8hNcpP8Ad0l6WOlv9ulGuaPCgNZCZrh2uJz9lyF94g_8rXn9ofrlVgbT1Dv43mGT0EgeamanABYjECPjOhskxBnXbEYCY=@protonmail.com> In-Reply-To: <87r0wkk8kx.fsf@protonmail.com> References: <24871675f2ccdf7f3c46c46832b3f3f9@dismail.de> <87r0wkk8kx.fsf@protonmail.com> Feedback-ID: 891835: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.19; envelope-from=charles.b.jackson@protonmail.com; helo=mail-4319.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, RCVD_IN_MSPIKE_H2=-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-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=Hs4Dkham; 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=1673830941; a=rsa-sha256; cv=none; b=jrOh72uygKdwBq1PQUcdqVhWFPkAbQj99Bsx17mQyVYNobQhU40YpQIt27VK8lbIOLYaCy 1jEy4aj/aM7p78utkLCVxblk6InquAIyEw8uUjBN/5UeFtG8xXIPGSSbPKsPxGN7i4upOL lU0UT6mLGwed+MEz13LwySFzUZxqH3fNCj3hmWQxYMAzc/eHq3k6FtcafdFtxg2tweKf2L D0Yiq/frH0uiYdXAJlTiTcvnS33QiyLbGjGogxWeh5yydGouCGAlPtUkNfZT3yelvfozZ7 nf0+PxHwGltEcsiwWni3bghk7mxh+Fj11G+iPF6SojBCVsYh13/MsCHRDfnZ4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673830941; 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=QCTxmJ5Od4zDpI6kD8VPNi9js62RDZq4k2LidUe00ng=; b=lmNYX6klTpaFMER+Crm5Jg2eiXNW7K+7Ucg+2lYERofh50hwis3JaLkp91GcLSkW21QeiL Q+6NTQD+q5KyV7YxEKpiAEnPbZ67BroagrKMG2supmdUD/wKDHWJJ+nfWqsj5dPfwVlJ93 eeJE3IyPuN7kpnPj/UzgwjdhG4g163lYbarXmAnOy3sjaFzcNQyigvEa59rH8Jh8C8uO+5 BYtP7s6LHY9WiTxhgUYmt9Z2W1zOmdHyxFRNxDcvq86pFBg6o3FYGKjneQgq7LZjuoprG0 qDAT5UYOHv1qaeoJAsr3Yvqsty2Czj9ERGysGczf6Xa0f2Xso5/nYirBm/AHhg== X-Migadu-Queue-Id: 795D2370E2 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=Hs4Dkham; 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-Spam-Score: -6.31 X-Spam-Score: -6.31 X-TUID: QTGUBHWNpqPV Hello. I have done scripts exactly as John describe before. I think this wa= y is fine for making common lisp scripts on guix; that command line you sha= red can be put in a file and run as a shell script, or even put into a pack= age.=20 I think what Jgart is asking for is a program that may or may not be a part= of gnu guix, but certainly depends on it. This program will be able to run= roswell scripts with 100% compatibility using guix instead of roswell for = loading systems. I'm not too sure how roswell knows which system to load or= which common lisp implementation to use for a given script. The purpose of this program would be to use guix's common lisp implementati= ons and systems for roswell scripts. As I understand it, running roswell on= a guix system will result in roswell downloading and installing it's own c= ommon lisp implementation and loading systems from quicklisp.=20 -------- Original Message -------- On Dec 27, 2022, 12:25 PM, John Kehayias < john.kehayias@protonmail.com> wr= ote: >=20 > Hi Guixers/Lispers, On Tue, Dec 27, 2022 at 06:14 PM, jgart wrote: > Hi G= uixers, > > Should Guix support writing CLI Common Lisp scripts? (Think Ros= well) > >> Although Roswell is a unified interface to Common Lisp implement= ations, it also >> encourages writing scripts with it. >> A "Roswell script= " is an implementation-independent script which can be invoked from a >> sh= ell command line, launched by > Roswell and run under standard CL environme= nt. > > Just insert "Guix" wherever you see Roswell mentioned in the above = quote. > >> * A roswell script can be distributed using quicklisp's infrast= ructure > > Just insert "Guix" wherever you see quicklisp is mentioned in t= he above quote. > >> If you're the author of the library, then consider add= ing the ros file to 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 Gui= x. > > WDYT > > I'm not sure what you mean if it is something beyond what w= e can do already with 'guix shell.' Do you mean using a particular hashbang= as well? I haven'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 sbc= l-cl-csv unoconv -- sbcl --load myscript.lisp ~/Downloads/*.xlsx where I ca= n include the compiler/interpreters sbcl, needed library, and an external t= ool that is called by the script for pre-processing. Works great, and of co= urse instantly after the first caching. This could be combined with a manif= est, version/channel pinning, making my script a package in a channel, guix= .scm file, and so on, to make it more reproducible. But for me this is alre= ady super handy and easy, just one line. John