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 10:27:06 +0300 Message-ID: <83msxg9eb9.fsf@gnu.org> References: <83ttrsg9nx.fsf@gnu.org> <83h6nrg4eg.fsf@gnu.org> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25303"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 21 09:27:29 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 1qjE5w-0006PI-Ux for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Sep 2023 09:27:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjE5U-0002VL-M7; Thu, 21 Sep 2023 03:27:00 -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 1qjE5T-0002VA-QJ for emacs-devel@gnu.org; Thu, 21 Sep 2023 03:26:59 -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 1qjE5T-0004QB-HY; Thu, 21 Sep 2023 03:26:59 -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=6IjDtFlyjJcxJQ8nkkL+U68Ur8QcrfxINegqeKbdINE=; b=n6zGwVnZMwTl U3plnxAzuB4B+jj8jUNb8ktenHNXLWjb00K1uVFUReodnz+EhShQqCd/RXydP7/g5ZQWyuyRO6biL gP2+yo0gwH7NXO+jTZpr23TMQHle5BMjLErGNuRU2kIhSL9MM3d/UzLGHncCREwL3KLBKumMWXr2u S9Mda3yDLORc3bEOQbPOvxZ6G2sj2YMAWiICFUYOmtOkC+Ky8bDLU3PEQWdjCeerLze0C1uoFe9lq AB8cs3GFFNLPivJcW/JYo+bMxkNTTfDj0nR1B0A8au5sZ24zR1km9iOEBLD9JukNfPncpSYPjh3xb qXGDED0liIT4Eqg3tTg9kA==; In-Reply-To: <87zg1gqr8q.fsf@yahoo.com> (message from Po Lu on Thu, 21 Sep 2023 08:55:49 +0800) 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:310867 Archived-At: > From: Po Lu > Cc: yantar92@posteo.net, emacs-devel@gnu.org > Date: Thu, 21 Sep 2023 08:55:49 +0800 > > Eli Zaretskii writes: > > > And don't forget that the globals defined in globals.h are just those > > we define in C. There are many globals defined in Lisp. > > Those don't contribute to the size of struct thread_state; an alist > between threads and its local value is dynamically allocated when a > symbol is bound locally. I'm not sure I understand: what is the difference between a global variable defined in C and a global variable defined, say, in simple.el?