From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Package List on Web Site Date: Mon, 09 Feb 2015 23:56:30 +0100 Message-ID: <877fvqae3l.fsf@gnu.org> References: <20150208074424.GA5353@jocasta.intra> <87zj8oqxbz.fsf@gnu.org> <87y4o8h2l0.fsf@fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKxFw-0005fc-Oo for guix-devel@gnu.org; Mon, 09 Feb 2015 17:56:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKxFs-0002Df-D5 for guix-devel@gnu.org; Mon, 09 Feb 2015 17:56:40 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKxFs-0002Db-Av for guix-devel@gnu.org; Mon, 09 Feb 2015 17:56:36 -0500 In-Reply-To: <87y4o8h2l0.fsf@fsf.org> (David Thompson's message of "Sun, 08 Feb 2015 09:58:51 -0500") 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.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: David Thompson Cc: guix-devel@gnu.org David Thompson skribis: > Ludovic Court=C3=A8s writes: > >> John Darrington skribis: >> >>> In particular, I have noticed that http://gnu.org/s/guix/package-list.h= tml is now >>> over 1.5 MB in size and is startign to take an unacceptably long time t= o load (at >>> least for me). >> >> I think it=E2=80=99s rendering that takes time, not transfer per se (unl= ess you >> have a very slow connection.) >> >> I would like it to use David=E2=80=99s guix-web JS code to add the searc= h box >> and multiple-page split. I suspect this would address the rendering >> time and usability issues. But of course, that would need help from >> someone knowledgeable... :-) > > We could make a specialized application that did this, since guix-web > will soon enough be concerned with authentication and other things that > aren't needed here. To do things the way guix-web does, it would > require a Guile server component for the JSON API. I was thinking of something simpler: statically generate package-list.html (as we currently do, with list-packages.scm), but instead of spitting out the HTML table directly, produce the JSON data that guix-web=E2=80=99s browser-side code expects. >> It would be ideal if this were done in a =E2=80=9Cprogressive enhancemen= t=E2=80=9D >> fashion, such that it can still be viewed in emacs-w3m. > > Yes, agreed. This would be the hardest part, because guix-web is > designed as a "single-page application", using JavaScript for all > rendering. I would be inclined to write this package list browser in > the same fashion, because it results in much more elegant code than the > jQuery soup we would otherwise be in. > > What should the non-JS fallback viewer look like? Should we just > display the full list as we do now? I think so. Ludo=E2=80=99.