From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Sun, 08 Feb 2015 16:34:32 -0800 Organization: UCLA Computer Science Department Message-ID: <54D80098.3020209@cs.ucla.edu> References: <87y4t9m76w.fsf@lifelogs.com> <85k31coixa.fsf@stephe-leake.org> <85oapy5kt6.fsf@stephe-leake.org> <83y4oiiw81.fsf@gnu.org> <838ugdf251.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423442091 17827 80.91.229.3 (9 Feb 2015 00:34:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 00:34:51 +0000 (UTC) Cc: Stephen Leake , Emacs development discussions To: =?UTF-8?B?QXVyw6lsaWVuIEFwdGVs?= , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 09 01:34:50 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YKcJO-0003rJ-0w for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2015 01:34:50 +0100 Original-Received: from localhost ([::1]:58248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKcJM-0004Sk-QF for ged-emacs-devel@m.gmane.org; Sun, 08 Feb 2015 19:34:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKcJJ-0004PO-QM for emacs-devel@gnu.org; Sun, 08 Feb 2015 19:34:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKcJJ-0008Pg-0J for emacs-devel@gnu.org; Sun, 08 Feb 2015 19:34:45 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:39906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKcJF-0008JW-Al; Sun, 08 Feb 2015 19:34:41 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 69183A6006E; Sun, 8 Feb 2015 16:34:33 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wg12DRWMYFGn; Sun, 8 Feb 2015 16:34:33 -0800 (PST) Original-Received: from [192.168.1.9] (pool-173-55-11-52.lsanca.fios.verizon.net [173.55.11.52]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0CC8DA60061; Sun, 8 Feb 2015 16:34:33 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182649 Archived-At: Aur=C3=A9lien Aptel wrote: > I've replaced > DEFSYM calls with: > > MQfoo =3D intern ("foo") > > Are there any drawbacks? It's a bit slower. Symbols like Qabove are compile-time constants; on my= =20 platform, for example, Qabove =3D=3D 8688, and this integer is known at=20 compile-time. This gives C compilers more opportunities for optimization= than=20 variables like MQfoo do. > The fact that > globals are actually macros exanding to a global struct member is not > desirable here as it prevents normal C lexical scoping. That sounds like it might be more trouble than it's worth. These symbols= are=20 globally unique anyway, in Elisp, so it's a bit clearer to keep them glob= ally=20 unique in C as well, rather than attempt to reuse them with C lexical sco= ping.