From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: d3js chord diagrams Date: Sun, 11 Dec 2016 23:59:41 +0100 Message-ID: <874m2aysv6.fsf@gnu.org> References: <87zilxtkvp.fsf@elephly.net> <87wpf64rxp.fsf@gnu.org> <87mvg2ckh4.fsf@elephly.net> 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]:53188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGD5x-0007oS-Go for guix-devel@gnu.org; Sun, 11 Dec 2016 17:59:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGD5t-0000m2-Ia for guix-devel@gnu.org; Sun, 11 Dec 2016 17:59:49 -0500 In-Reply-To: <87mvg2ckh4.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 11 Dec 2016 20:51:51 +0100") 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" To: Ricardo Wurmus Cc: guix-devel Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: > >> Hey Ricardo, >> >> Ricardo Wurmus skribis: >> >>> I=E2=80=99ve built something: >>> >>> http://elephly.net/graph.html >> >> What happened to this neat hack we discussed in October? :-) > > The current =E2=80=9Cexport-graph=E2=80=9D procedure writes the graph rep= resentation to > a port by calling output procedures provided by the graph backend. With > this interface I cannot generate a complete HTML file using a gexp > unless I add a special case for the d3 backend. > > I=E2=80=99ve tried to accumulate the node representations as a string with > =E2=80=9Cwith-output-to-string=E2=80=9D (to embed it in a gexp for the HT= ML file), but I > couldn=E2=80=99t get this to work. (All output I could capture was what > =E2=80=9Cemit-prologue=E2=80=9D would write to the port. It does this ou= tside of the > monad anyway.) Right, I think the conclusion was that we cannot generate things in the store, or at least that it would be mostly useless since we have to write it to the output port that is passed to the backend: https://lists.gnu.org/archive/html/guix-devel/2016-10/msg01261.html So I think the strategy in the original patch is more appropriate. Sorry for the confusion! Ludo=E2=80=99.