all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: d3js chord diagrams
Date: Sun, 11 Dec 2016 23:59:41 +0100	[thread overview]
Message-ID: <874m2aysv6.fsf@gnu.org> (raw)
In-Reply-To: <87mvg2ckh4.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 11 Dec 2016 20:51:51 +0100")

Ricardo Wurmus <rekado@elephly.net> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Hey Ricardo,
>>
>> Ricardo Wurmus <rekado@elephly.net> skribis:
>>
>>> I’ve built something:
>>>
>>>     http://elephly.net/graph.html
>>
>> What happened to this neat hack we discussed in October?  :-)
>
> The current “export-graph” procedure writes the graph representation 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’ve tried to accumulate the node representations as a string with
> “with-output-to-string” (to embed it in a gexp for the HTML file), but I
> couldn’t get this to work.  (All output I could capture was what
> “emit-prologue” would write to the port.  It does this outside 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’.

      reply	other threads:[~2016-12-11 22:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-21 22:09 d3js chord diagrams Ricardo Wurmus
2016-10-22 10:37 ` Alex Sassmannshausen
2016-10-22 17:42 ` Pjotr Prins
2016-10-25  9:01 ` Ludovic Courtès
2016-10-25 10:46   ` Ricardo Wurmus
2016-10-25 12:52     ` Ludovic Courtès
2016-10-25 13:37       ` Ricardo Wurmus
2016-10-25 16:29         ` Ludovic Courtès
2016-12-11 11:37 ` Ludovic Courtès
2016-12-11 15:24   ` Ricardo Wurmus
2016-12-11 19:51   ` Ricardo Wurmus
2016-12-11 22:59     ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874m2aysv6.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.