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 11:35:47 +0800 Message-ID: <87r0msqju4.fsf@yahoo.com> References: <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7745"; 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 05:37:26 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 1qjAVJ-0001mt-Dh for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Sep 2023 05:37:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjATx-0004Cs-SV; Wed, 20 Sep 2023 23:36: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 1qjATw-0004Ck-L4 for emacs-devel@gnu.org; Wed, 20 Sep 2023 23:36:00 -0400 Original-Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjATu-0006Yn-Mn for emacs-devel@gnu.org; Wed, 20 Sep 2023 23:36:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695267356; bh=gRvWVvItBmLsp6KaJs3H8GEwAnPJXk+rveAhL4S1ADM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=dBmgflXbIRi6LJULAB8rRnj/g2d1Vd04ud0FywOJctXuk8vZCjjcVS0GnfFO61OOn9FPfB/nNWzn7VrWJkkRroji7281vYBsxQ3Ch/jRn8S/dwvlBReRXr4XPXb5kPjikF3cerICaUk20ZCaCwagkSsQMnbe+JnylCcW6MbgDWZXVDHcVikPIKbBTlafHOKMfCgw8DccKZXQNNMLHOETGEpXoZSGLXSfHBMN2TKXSzYE0cL1iFj87sMes2LuwmYlNcFf7a493Melf/JONz8PoENTls5P6afOEdNwnTVKu7WhSa7z8JmMx6t2+kIdh69crUhdxx0FagRtCnNJVFOqQg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695267356; bh=l5h5JKr4NuX9X5cwmB/D4hZvcxazLy7cd0BD9p4pJbh=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=EI4d6cdD0TMAs0fEY0v2A1WEsJLKk+OjEJu69sgElmWhx8HCG3XMc4bJFkyfS8av1Yyce1kCHItxnc48Jks45SQVhNr9DU6pxDpDDxosKlgIIx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wYqd5vEQrgh4CLlTJBol0y X-Sonic-MF: X-Sonic-ID: 8b7c579a-97e5-4c95-b02b-655b4e4c2b0e Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Thu, 21 Sep 2023 03:35:56 +0000 Original-Received: by hermes--production-sg3-55c667b499-gg78d (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fb00b305ea2e69af0387f25ab464a73e; Thu, 21 Sep 2023 03:35:52 +0000 (UTC) In-Reply-To: <87zg1gqr8q.fsf@yahoo.com> (Po Lu's message of "Thu, 21 Sep 2023 08:55:49 +0800") 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.206; envelope-from=luangruo@yahoo.com; helo=sonic311-25.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=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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310860 Archived-At: Po Lu writes: > 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 ^^^^^^^^^^^^^^^ I intended to write ``and their local values.''