From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Mutating existing persistent data Date: Tue, 07 Dec 2021 08:00:17 +0100 Message-ID: <87sfv4hpby.fsf@gnus.org> References: <87tufmjyai.fsf@gnus.org> <875ys2lyt0.fsf@yahoo.com> <87wnkhlxb9.fsf@yahoo.com> <2FD7D920-D92C-480B-B2AC-91A17F0397C4@mit.edu> <87zgpdi0rk.fsf@gnus.org> <878rwxje1x.fsf@yahoo.com> <87v901huhw.fsf@gnus.org> <73923481-114C-408C-989D-6DFC72008340@mit.edu> <87wnkghpio.fsf@gnus.org> <3F742A1C-C7FC-4495-B32E-A60011EE0522@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29932"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Po Lu , John Yates , Stefan Monnier , Arthur Miller , "emacs-devel@gnu.org" To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 07 08:01:34 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 1muUTm-0007eK-91 for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 08:01:34 +0100 Original-Received: from localhost ([::1]:42728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muUTl-0006l6-16 for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 02:01:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muUSr-00060W-Vl for emacs-devel@gnu.org; Tue, 07 Dec 2021 02:00:38 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=35450 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muUSq-0006sw-2V for emacs-devel@gnu.org; Tue, 07 Dec 2021 02:00:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4p7At4KVymz6RFx/6WjBdY6guhN3ZnNjTOwwok0rt/A=; b=sIhAvnUoiKPNhpC3FHAIIY3cBM dXvVYk5+0EfaEhIaByV/5du/+CEKPXhJHn7s/oNAWY8mGtFNfSsxQ90ccVCee4CNRjWpOIb4pbenG uL/Xo0w60r45KXNhh2rZT6a4ziTN+Vr9VgmgCvpYiDAHh9VTC7uZJaHGtpyxpReFOZUU=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muUSf-0004NW-QL; Tue, 07 Dec 2021 08:00:28 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEWoyNuz1e294vnB 5vuTrc1hcZZ9ksFGUI82O3U9RIWFnLF2iqNUX23///98aRmmAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+UMBwY1OSvDwyUAAAGZSURBVDjLlZQ/T8JAGMavxEHj0msgrrahDOCiiSwygIY4wKLyBiL9AA4O SkKaxpk0Jq6GsDnIQhnQpAy2g8Z06d2HsvSPcKUl+g7X3v3uued9765FCHF4Jfiwy6+Oo9UZiOmt Au7fIGFMTANCGsCbQWAuiOESwhGryF94Te4U4/2WyIDyvTd5+wxj+TGzDnYWQBcSFN5SYlVMBljC KSCWbrknSZ655AULCncIofMaWh5PBHR1NBpqmqZqGQbk6zCZ38ADAcIqjqlLP1sKBeKwQKZf9O3b plPiiAwo1d3JS6cLBGDdXFP9YM1L1w3HbY5fTdPiGFAxnRNzrCBKlZhiShukab5bthWA6EYWAXRi K3O4BXap4jBwVocx82LWcD5gtksaCpvuAXUrFBRKniy2QNnoGpOxZZOucchmBe0BdPptfVl58Cg8 A6jQ7oPaj9VxtTw71qOHY/FnIEjBhqyB7GxRB0LRXsmXIdjTAwUfV+QGPuB+b0ktBHzVb9kPx4/o Je1z5tP+DDxKlnjj/j3muSg9f1fRhtj6AW4SoWhCnV2tAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIx LTEyLTA3VDA2OjUzOjU3KzAwOjAwQFw/hgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMi0wN1Qw Njo1Mzo1NyswMDowMDEBhzoAAAAASUVORK5CYII= X-Now-Playing: New Order's _Movement_: "Denial" In-Reply-To: <3F742A1C-C7FC-4495-B32E-A60011EE0522@mit.edu> (Qiantan Hong's message of "Tue, 7 Dec 2021 06:59:11 +0000") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 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, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, 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.29 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:281217 Archived-At: Qiantan Hong writes: > That=E2=80=99s interesting. If you declare a variable persistent > and the modified a cons deeply nested inside what the > variable points to, are you able to store the mutation > as a single (log operation)? No, I store the whole value. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no