From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gJpbEbeUTWFLOwEAgWs5BA (envelope-from ) for ; Fri, 24 Sep 2021 11:04:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sCUdDbeUTWGFdAAAB5/wlQ (envelope-from ) for ; Fri, 24 Sep 2021 09:04:55 +0000 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 63407323D4 for ; Fri, 24 Sep 2021 11:04:54 +0200 (CEST) Received: from localhost ([::1]:57612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTh8W-0002f8-9r for larch@yhetil.org; Fri, 24 Sep 2021 05:04:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTh8O-0002cY-5G; Fri, 24 Sep 2021 05:04:44 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:23370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTh8K-0001zv-J2; Fri, 24 Sep 2021 05:04:43 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AmvI866jPyd2WJ9JYNcaDx6RFkHBQXuUji2hC?= =?us-ascii?q?6mlwRA09TyVXrbHWoB17726NtN91YhsdcL+7Scy9qB/nhPxICMwqTNSftWrd2V?= =?us-ascii?q?dATrsSibcKqgeIc0bDH6xmtZuIGJIOb+EYY2IK6/oSIzPVLz/j+rS6GWyT6ts2?= =?us-ascii?q?Bk0CcT1X?= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="393900203" Received: from unknown (HELO ribbon) ([193.50.110.104]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 11:04:37 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Katherine Cox-Buday Cc: guix-science@gnu.org, guix-devel@gnu.org Subject: Re: =?utf-8?B?4oCcV2hhdOKAmXM=?= in a =?utf-8?Q?package=E2=80=9D?= References: <87wnnbpgnp.fsf@inria.fr> <875yutwuij.fsf@gmail.com> <871r5fg2up.fsf@inria.fr> <87h7ebxqjd.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 =?utf-8?Q?Vend=C3=A9miaire?= an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 24 Sep 2021 11:04:36 +0200 In-Reply-To: <87h7ebxqjd.fsf@gmail.com> (Katherine Cox-Buday's message of "Thu, 23 Sep 2021 10:25:26 -0500") Message-ID: <87czoypcnv.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: "Guix-Science" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632474295; 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; bh=oEW3V2iCrXNk3PD6utbP3nlZKJG2+fxJjboAJt/nuGY=; b=juhGe1XMttRWdIjwt6IGSWGXAPsPPxs9FS3ht5J7jvZWlTNRW2dHa4Dy5tAhVRMXp5RPvC 00OCtHqNYLCYcOkKEVt3gSCChZwt/mOc+gLp/71L6/PhSE/vOnrGzOoTF1yhxzf+4hREjK lxxZwRKKN3j4vlidBXnOIYQklM2F335EbMhNvT2wDKJ2kxhe/M0U2pIZvtrvyRJM8cJRPi t5m1GWy/yZ6lVeMFdFf2jW/3bw1cHa/XTp4ZC2jfjxIHqJUyxFvwpflMOQPijsEdNtRINR SoH4SzVDj4Q3qLlkE5fhxVgYMN213pm+9bjmHm5Nl9TYx2tfkwjoOTKvrs2U5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632474295; a=rsa-sha256; cv=none; b=ClXkwQIwG7FLP3CrtMjroGQlxlFGJWqAab3H2J/6BiNr2pQvfMqsmrAn0jncEC+H8TAHRx ZjrkAPtg/3V/LNSDSMW/R05S3kTyP070/hlp9oR3sKqxi6e47IP2wGQpd3DN31h9eJ8nEd fTvgOQ3HYxgyif3woyL3Le5cAbpiocRlVakvFYVuBx+qGA7/t9FMOFxP6X98FRnqXw7bOv 4QbKCRKyICQV7gs/kHI/6XGSJfNM6qcATHsGs5x/Sx6WnZUM8UpMTM+QmPz29uQywDK+ez MfjkdyAzb+hGAfX0mZiYUM1qR9GgYflVbQgcDnR+bABOMBESaORhY+joz8TJSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-science-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-science-bounces@gnu.org X-Migadu-Spam-Score: -2.39 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-science-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-science-bounces@gnu.org X-Migadu-Queue-Id: 63407323D4 X-Spam-Score: -2.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: y+239m9yKNjF Hello, Katherine Cox-Buday skribis: > That sounds like a great start. I tossed out some other ideas elsewhere i= n the thread. Most of them involve meta-inspection of the package, Guix eco= system, runtime environment and logs. It would be nice in general to have a= kind of "agent" that you could run repeatedly over the course of packaging= that would suggest next steps on ~stderr~ and next logical packaging defin= ition on ~stdout~. Kind of like pair-programming with Guix :) > > It would perform different operations dependent on what stage in the life= -cycle the package is at, i.e. ~import~ when no package definition exists, = build when one does, and possibly running the result in a container when th= e package build succeeds. > > E.g. your PyTorch example, starting from scratch (note: ~guix import~ may= not always feel like the right command to invoke in this example. This may= be some larger concept than import; also, the example always redirects to = package.scm for brevity, but the user would probably want to look at it fir= st): > > #+begin_example > $ guix import upstream pytorch > > stderr: This looks like it might be python package (heuristics.scm:123 = - package name starts with py), try this instead: > stdout: guix import upstream pypi pytorch [...] I like these ideas! > etc., etc. Typing that out, it feels dangerously close to Microsoft's Cli= ppy, but hopefully more helpful :) Heh, Clippy was cute. ;-) > Heuristics, by definition, wouldn't be correct all the time, but this kin= d of thing could help new contributors (or experienced contributors with ba= d memories like me!), and in some cases actually do some of the programming. > > And every time someone comes to the mailing list or IRC with a question, = we can ask ourselves if this is a common question, and maybe create a new h= euristic. Agreed. Let=E2=80=99s see if we can get there=E2=80=A6 Thanks, Ludo=E2=80=99.