From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: Opportunistic GC Date: Tue, 9 Mar 2021 08:11:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32703"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, emacs-devel@gnu.org, Stefan Monnier , Andrea Corallo To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 09 09:12:57 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJXU8-0008Qb-HO for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Mar 2021 09:12:56 +0100 Original-Received: from localhost ([::1]:44050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJXU7-0002vP-J2 for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Mar 2021 03:12:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJXTS-0002Ul-Oy for emacs-devel@gnu.org; Tue, 09 Mar 2021 03:12:14 -0500 Original-Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]:44887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJXTR-0000AW-3r; Tue, 09 Mar 2021 03:12:14 -0500 Original-Received: by mail-ot1-x32e.google.com with SMTP id f33so11974754otf.11; Tue, 09 Mar 2021 00:12:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RKAREBthE08XjAWfm6RN/R0nJZRcVNTjeIKKjLXwOdE=; b=OyGlzvclYuqyJT3ztmm158mQ9BZQMEBnZYAsLBC3vtcNViclf62dNznmbZcZirp976 kkmOB+uWieRkWtjvV/WqkI3h6SKa20bGaOT0goEbkhHKWSMype6kzmMEPpNFSBl6Rl6l JBUmre3WLbLnisAwOUC+QViBhf61wxfeql7RXWOLksYSP0Z/F/MbsiN8DY9p0kNzYGVU 9ZrDaOuDOZsbDg5uQFO3oljFbUBfaXAqn6jk7mPvkj4U009tx+IJAfR9qQeE/bz/5yYn ahAjsVKQ2bYfjonZpU/dl8oaYI/Sbdra2YpX0YYRiIfT+e3oenD9CalVg2ePa8aVHDST 89jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RKAREBthE08XjAWfm6RN/R0nJZRcVNTjeIKKjLXwOdE=; b=GTyWqQhlRcL2guOCQ1XctAbEpHVeDqPw60mvmCLZCxhss38YaynHjaoPSouqhy9UrI 7Re68oeRatQNsPxgrnMarTHObR0ZY9n+/WTlHu1nY30uNKGqyyZ4bOxJbpntbxkgdmM/ 2gc6PPvHQxToaYcwM3jLGLVE2Nva6Va6t8Bcz7elr3etRuTYcY/ilrT1/r0z4EPU8Y7G HbWw0DTrPlMSokMBbQVlJnYaxI8otB3PPk7A6B8gQ3H3LsjnIh9cPR5bJ+jjJ4IXdiWU DMB6M9y5PT7v+JNLOKuVXPYtV43+KkzaWwLKFdaiGCyCbxpK95jJ1OTTbrndRGzEBj1v pr7Q== X-Gm-Message-State: AOAM530YpZxTAb9xsu3jCZBf9j1ygiMgSwae5CZRxjTaZ2i3CpIwpdjK DG0S72LmxxjzA0LRjZ30glty8UBrP6x9H119AC/w9UmCbGE= X-Google-Smtp-Source: ABdhPJw6QOpDl4D3XtFbIqZ3B3a+RfG3XWj22cmN1F7eFdk/nC0LEXgZT02mlRkcuoY3+Ty3vpGkY5SYk6QS+gJJzkU= X-Received: by 2002:a9d:6e8d:: with SMTP id a13mr7843999otr.287.1615277530967; Tue, 09 Mar 2021 00:12:10 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::32e; envelope-from=pipcet@gmail.com; helo=mail-ot1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266232 Archived-At: On Tue, Mar 9, 2021 at 6:22 AM Richard Stallman wrote: > > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > I suspect we wouldn't want to use `fork` literally, but rather something > > like Linux's `clone` so as to have more control about what is > > really shared. > > I see a potential problem: maybe not all current or future supported > platforms have this feature. Do you mean `fork' or `clone'? If it's the latter, we can just use `fork' and miss out on a very slight optimization. If you think there are platforms which don't support an efficient `fork' (WebAssembly doesn't; you have to make a full eager copy of the heap yourself) but where we want to do the `fork' trick anyway, I don't see how. I think those platforms will just have to continue using synchronous GC. Which, of course, is not going away: this feature is useful in some situations, I hope, but it should by no means be mandatory. Pip