From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
To: guile-devel <guile-devel@gnu.org>,
"guile-user@gnu.org" <guile-user@gnu.org>
Subject: Streams and gc
Date: Wed, 10 Sep 2014 14:36:36 +0200 [thread overview]
Message-ID: <CAGua6m0w1CZu0ZpkzUaLHta5iiD0ir-3ACog7iwNwB1NFOjJkg@mail.gmail.com> (raw)
[-- 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 --]
reply other threads:[~2014-09-10 12:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGua6m0w1CZu0ZpkzUaLHta5iiD0ir-3ACog7iwNwB1NFOjJkg@mail.gmail.com \
--to=stefan.itampe@gmail.com \
--cc=guile-devel@gnu.org \
--cc=guile-user@gnu.org \
/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.
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).