* Streams and gc
@ 2014-09-10 12:36 Stefan Israelsson Tampe
0 siblings, 0 replies; only message in thread
From: Stefan Israelsson Tampe @ 2014-09-10 12:36 UTC (permalink / raw
To: guile-devel, guile-user@gnu.org
[-- Attachment #1: Type: text/plain, Size: 737 bytes --]
Consider getting a stream of data and that we store it through consing,
this has the drawback that the list will grow indefinitely. What you want
is to make sure that any data that you need for computation a pointer to
the start and end of the data would mean that by modding the mark procedure
will tell the special cons cell that a part has a start reference or an end
referense. Then in a custom sweep procedure you would be able to tell if
these markings increments/decrements counters when you can discard data for
gc. You would not need any magic at all but custom mark procedures and a
custom sweep procedure. I find this tool pretty interesting.
Maybe a little project that implements this would be cool to have WDYT?
Cheers!
[-- Attachment #2: Type: text/html, Size: 834 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-10 12:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-10 12:36 Streams and gc Stefan Israelsson Tampe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).