From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Emacs design and architecture. How about copy-on-write? Date: Thu, 21 Sep 2023 17:14:43 +0800 Message-ID: <87edirripo.fsf@yahoo.com> References: <83v8c7elan.fsf@gnu.org> <877conk5ny.fsf@localhost> <83ttrreeu0.fsf@gnu.org> <87bkdzeas1.fsf@localhost> <83cyyfe5l8.fsf@gnu.org> <8734zbyu6o.fsf@dataswamp.org> <835y46e8o9.fsf@gnu.org> <87zg1ixvnc.fsf@dataswamp.org> <87il86nxts.fsf@localhost> <87o7hyx8h2.fsf@dataswamp.org> <87o7hx88ry.fsf@localhost> <87a5thta90.fsf@yahoo.com> <87led1865h.fsf@localhost> <875y45t7yo.fsf@yahoo.com> <874jjprmq2.fsf@yahoo.com> <83a5tgc03s.fsf@gnu.org> <87zg1gqr8q.fsf@yahoo.com> <83msxg9eb9.fsf@gnu.org> <87msxgq8rn.fsf@yahoo.com> <83jzsk9c5l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6407"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: yantar92@posteo.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 21 11:15:57 2023 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 1qjFmu-0001Rq-Rd for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Sep 2023 11:15:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjFm1-0000mI-Pv; Thu, 21 Sep 2023 05:15:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjFlz-0000ln-UR for emacs-devel@gnu.org; Thu, 21 Sep 2023 05:14:59 -0400 Original-Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjFlx-0000tC-Se for emacs-devel@gnu.org; Thu, 21 Sep 2023 05:14:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695287695; bh=dkygILtkP8KQm0SJlNkn4pM9sKl9T5J2bfTGX1lly2M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=oFIcaNKFJCipi9qqjqJHAXeOJjDZnDmngCWfTlhgVTlZ4fe7ZIX1CZ6fKfS/zY6dTdx+En/7r/f83plymuRkzZuCEWvaft6cIJwwC1Dw0PTFt03U7fvlEUMubpKzR26QsQvWGHoIO3xLWBlm5im+ZcvcjfMiAyONyMU8fiThOmJa3RrisTMS+A4d08jnyL3Pey2VMwYH9v+AM1wE5fo40NGtPEV1tI3R/i0lGbStkWcyP+NAY2HH3Gg9ExXJKXLbFAvfYM88t5Kv/+g2LBmNJbGO8yhzP+NkI0LgCjXvK8iHWeDEn4Mu7mbpsgvmGIzFMwWlUh4vdXRGSOXB8ocv3Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695287695; bh=ALExNzs4qAv3/5ON5cswvwDwZT0xqBBduuayGhHfUyR=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ey/ipCNusRFGXIsDlQKAfCooP3a++qywiYPVwKh+Gb4O64gYd0X3+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MhIRFqk8Vu4iTsRLcccuZicRsPokIW yqs_2NlZQhtLCfk8j27_t8mHcPJSg8nDsWEK1MJIUA X-Sonic-MF: X-Sonic-ID: c451f020-24d5-4436-a0ed-9e2c7ad8c06f Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Thu, 21 Sep 2023 09:14:55 +0000 Original-Received: by hermes--production-sg3-55c667b499-tw4nx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9882d1bf89513ec761b5f2476bb5b198; Thu, 21 Sep 2023 09:14:50 +0000 (UTC) In-Reply-To: <83jzsk9c5l.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 21 Sep 2023 11:13:42 +0300") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.146; envelope-from=luangruo@yahoo.com; helo=sonic303-20.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310874 Archived-At: Eli Zaretskii writes: > How is this different from > > (setq name-of-variable SOMETHING) > > done by some thread to a global variable? That's orthogonal to the subject at hand. If name-of-variable is forwarded, then SOMETHING must be recorded within either thread_state or globals. If not, it becomes the new value held by one of name-of-variable's value cells.