From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: Re: Guix size reduction work group Date: Mon, 10 Feb 2020 07:33:11 -0500 Message-ID: References: <87pneul50i.fsf@ambrevar.xyz> <87blqdnjuv.fsf@gnu.org> <875zghdo7j.fsf@ambrevar.xyz> <87r1z2c17u.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41476) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j18Fm-0007h4-Cj for guix-devel@gnu.org; Mon, 10 Feb 2020 07:33:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j18Fl-0000wH-6G for guix-devel@gnu.org; Mon, 10 Feb 2020 07:33:30 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]:56948) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j18Fk-0000uz-Tl for guix-devel@gnu.org; Mon, 10 Feb 2020 07:33:29 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 4cbb2957 for ; Mon, 10 Feb 2020 12:33:27 +0000 (UTC) Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 70156daa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 10 Feb 2020 12:33:26 +0000 (UTC) In-Reply-To: <87r1z2c17u.fsf@ambrevar.xyz> 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+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Le 10 f=C3=A9vrier 2020 03:09:57 GMT-05:00, Pierre Neidhardt a =C3=A9crit : >zimoun writes: > >>> Say FOO has BAR in its closure, but not in the explicit inputs, how >can >>> I figure out which of the indirect inputs drags BAR in? >> >> I do not understand what you are looking for, but there is already: >> >> guix graph -t reverse-package >> guix graph -t reverse-bag > >Yes, but this produces way too big a graph, which was my point below=2E > >> Maybe something more dynamic using 'd3=2Ejs' or similar to view *big* >> graphs could help=2E > >Indeed! > >> The first step seems to list what operations and filtering is >missing=2E > >I'm not sure what d3=2Ejs can do, but I can think of the following: > >- The ability to "hide" nodes and all their edges by making them > translucent (so that they can be unhidden)=2E > >- Hide/show all nodes inside the mouse rectangular selection=2E > >- Hide/show all nodes matching some text=2E > >- Close the current selection, that is, if some intermediary nodes are > hidden for the currently showing nodes, show them=2E > >> You could propose such feature to the Guix Data Service=2E >> For example, on this webpage [1], the history of all the Git package >> in Guix is shown=2E The closure size could be reported=2E >> >> [1] http://data=2Eguix=2Egnu=2Eorg/repository/1/branch/master/package/g= it > >This is a great idea! Christopher, what do you think? I remember there was a script for graphviz floating around that could do e= xactly that: given two nodes it would only keep those in between them=2E Th= en you could generate a much smaller graph=2E