unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Chris Lemmer-Webber <cwebber@dustycloud.org>
To: Maxime Devos <maximedevos@telenet.be>
Cc: Andy Wingo <wingo@pobox.com>, guile-devel@gnu.org
Subject: Re: thoughts on targetting the web
Date: Sun, 20 Jun 2021 10:14:55 -0400	[thread overview]
Message-ID: <87lf74ei74.fsf@dustycloud.org> (raw)
In-Reply-To: <a6d5ce2a769982ad52a05948247d3ee2c00d14a4.camel@telenet.be>

Maxime Devos writes:

> Andy Wingo schreef op za 19-06-2021 om 22:20 [+0200]:
>>  5. Garbage collection.  *We should re-use the host GC*.  Although it
>>     would be possible to manage a heap in linear memory, that has
>>     retention problems due to cycles between the Guile heap and the JS
>>     heap.
>
> I could be mistaken (and I haven't written any ECMAScript in a long time),
> but I believe ECMAScript doesn't have guardians, gc hooks, weak vectors and
> (key, value, key-value) weak hash tables. So, if we re-use the host GC,
> that would mean those GC things cannot be used right?
>
> In that case, it may be a good idea to raise an error at compile time
> if some code tries to use these anyways. (I've been using guardians
> and weak vectors lately.)
>
> Greetings,
> Maxime

Weakmaps are a thing these days I think:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap

Weak vectors, not so sure.  (Never used them myself anyway.)



  reply	other threads:[~2021-06-20 14:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-19 20:20 thoughts on targetting the web Andy Wingo
2021-06-19 22:24 ` Chris Lemmer-Webber
2021-10-06 14:53   ` Christine Lemmer-Webber
2021-06-20 10:02 ` Maxime Devos
2021-06-20 14:14   ` Chris Lemmer-Webber [this message]
2021-06-20 20:55     ` Maxime Devos
2021-10-06 23:34 ` Dr. Arne Babenhauserheide
2021-10-07  1:37 ` Nala Ginrut

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=87lf74ei74.fsf@dustycloud.org \
    --to=cwebber@dustycloud.org \
    --cc=guile-devel@gnu.org \
    --cc=maximedevos@telenet.be \
    --cc=wingo@pobox.com \
    /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).