Le Thu, 05 Nov 2026 17:32:33 +0000,
D Guthrie <xxxxxx@posteo.net> a écrit :
> Hello José,
>
> > On 29 Oct 2026, at 16:24, jobol <xxxxxx@nonadev.net> wrote:
> >
> > Hello Duncan,
> >
> > I haven't gone in details of your very interesting proposal, so my
> > remarks are on surface.
> >
> > - I think that it would be helpful to add serialization procedures.
> >
>
> I'm not sure what you mean. Could you give an example?
Hello Duncan,
I'm thinking about serializastion for saving it and loading it to a
disk or anything like that. It could be translated to procedures like:
(graph-write graph [port] [label-writer])
(graph-read [port] [label-reader])
Or, if you prefer, procedures like:
(graph->object graph [label->object])
(object->graph obj [object->label])
Where object is a scheme object that can serialized using read and
write.
I agree that if your scheme allows to use read and write directly on
graph objects, these routines are useless . But I have doubts that all
scheme allow such native serialization.
In my opinion, storing graph is a feature not to be neglected. Maybe
through sub libraries: (srfi graph-287 io)
> > - I don't understand why you wrote (srfi :287 graph) instead of just
> > (srfi :287). I'm not good at that so maybe you can explain me.
> > However, note that I prefer the latest notation of SRFI 261.
If I interpret correctly SRFI 261, it could be (srfi graph-287). But
I'm not sure that all scheme support it.
Regards
> It's because the library name is just "graph",but it's probably
> redundant.
>
> I had a think about this a bit. I guess that an argument would be
> that different graph implementations might live under the same
> namespace (however I am really only interested in the unbounded
> graphs as proposed). It seems reaonable to allow implememntations to
> provide their own graph presentations under the same namespace, but
> export the same programming interface defined in the SRFI document.
>
> This is quite common, e.g. in the SML and Haskell FGLs, there are both
> bounded and unbounded graph implemenations. So it might be better to
> be conservative at this stage and not specify `(srfi :287 graph)`. I
> suppose see how the conversation on the mailing list unfolds.
>
> Thanks,
> Duncan