From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs design and architecture. How about copy-on-write? Date: Thu, 21 Sep 2023 12:59:14 +0300 Message-ID: <83h6nnalu5.fsf@gnu.org> 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> <87msxf2abp.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32786"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 21 12:00:11 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 1qjGTj-0008LR-Fq for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Sep 2023 12:00:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjGSv-0001bd-C7; Thu, 21 Sep 2023 05:59:21 -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 1qjGSr-0001bQ-3U for emacs-devel@gnu.org; Thu, 21 Sep 2023 05:59:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjGSo-0001Il-GO; Thu, 21 Sep 2023 05:59:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/odfJMIS5znwCN0J0KYgxI7HMnnDPEFMAeqI8deum84=; b=ZIz+/T3p+QKa LEEDLEJJcY+1pQm/TBkMv6t5zC9vfRj7PwAJ/pKLYOU84QgMYd/S+WhAEmpfW6Gl3KbjndDSY2zZK ctWPGhT6a7tL7Wkv+dixdLF0egUbHeBRIgQ8u9fzsjcjfIhiW3yfpdOZo+F2mypLokn2aXeXsnETD Ry7Kv/z8y4hUihmj40ATHhX9GuLnFpGunGct1Yf0fIKBGP7kxaL6w65PrUNTxhXcunxnG6sOZ2bVU I/0eOt4kJOO6K2jY82gz12yqejd+7EudDQTJni8BNmk/CIExMD186ZCN07Nh1OR+PZ7IrQKiK8kf4 ZJRlSSRN5tsSkrcjtpRIlA==; In-Reply-To: <87msxf2abp.fsf@localhost> (message from Ihor Radchenko on Thu, 21 Sep 2023 08:35:06 +0000) 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:310877 Archived-At: > From: Ihor Radchenko > Cc: Po Lu , emacs-devel@gnu.org > Date: Thu, 21 Sep 2023 08:35:06 +0000 > > In contrast, global Elisp variables defined in Elisp for not store > Lisp_Objfwd and instead contain their symbol value directly in their > Elisp symbol objects. Setting and reading these symbol values involves > the common API: Fsymbol_value and Fset, which are much easier to change > to work with async threads compared to the having to handle all the > > Vname = val; > > that are expected to work in C level. Thank you for the (unnecessary) lecture, but I was actually asking what needs to be changed and how to handle the global variables, both those defined in C and those defined in Lisp.