From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vibhav Pant Newsgroups: gmane.emacs.devel Subject: Re: scratch/comp-static-data 5aa3db2f11: comp: Add support for compiling elisp constants into static data. Date: Thu, 17 Nov 2022 14:16:19 +0530 Message-ID: <9c27dd84e3298e2ed979415016f2db75d1cef882.camel@gmail.com> References: <166844679660.19180.3470364122428955894@vcs2.savannah.gnu.org> <20221114172637.78215C0E4C7@vcs2.savannah.gnu.org> <871qq5hxf9.fsf@yahoo.com> Reply-To: vibhavp@gmail.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-8DtN/jG7IqDucHeFQYTs" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3584"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.46.1 Cc: luangruo@yahoo.com, emacs-devel@gnu.org To: rms@gnu.org, Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 17 09:47:00 2022 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 1ovaXz-0000im-I5 for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Nov 2022 09:46:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovaXY-0005Eq-4j; Thu, 17 Nov 2022 03:46:32 -0500 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 1ovaXT-0005Dd-KC for emacs-devel@gnu.org; Thu, 17 Nov 2022 03:46:28 -0500 Original-Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovaXS-00056C-2N; Thu, 17 Nov 2022 03:46:27 -0500 Original-Received: by mail-pl1-x630.google.com with SMTP id p21so994043plr.7; Thu, 17 Nov 2022 00:46:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:references:in-reply-to:date:cc:to:reply-to :from:subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=6orp7zpd6gy6HwQVByhZxm8nBP3L+w29fL+hFWARMR4=; b=PSK9uytn0n+o9rc79QzIUBZjs+gMN07EZ3LErcO0lgl9GINmKV36fegctC1yzNaLbB jNNbO1RvMItqlCtrqzqxxzrwtSpXJzPUVmk3C62fB2PyyfDWKuVLpsJeUxR2WqWmaW6A QMnN7z5VFXa/Jjq4RLYXsEmieq7DBbnO7800UpXr4zAQg+pBxDrec4PoN/CZ4/Pjxd4/ Ui+QprGLWOfOLrjJ2lWCQNRLB+1wx6eJxZjeN/3D44lo0+vKD9Y3K3q5TpRc7OYmdUdV gO1Ju+FXKFHAGBb2Q6+a+B/3U7DQlp7aLN810HvpxLZEfom5szA/zH3ZtPZzbIL15VnH yoFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:references:in-reply-to:date:cc:to:reply-to :from:subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6orp7zpd6gy6HwQVByhZxm8nBP3L+w29fL+hFWARMR4=; b=PgzkQhMKUn63Cjw7JHJ7fCjyfJqQKu6ZpvGEEJ+tdVznUXXVHJJIHM1c3aPcF4xPM9 seLN8wXJjifTjKAYeYHHoPIK50pyNKPqjelRG6Wa9hyDn9j3Q7wH1Lpn1DytZ+bh2vM7 soHzH61NiE0aqjUDVx+eImuEbh74jyTGecXZY7ErpOt8oH9Lk8dxs+7gYGX1AuF+ar+z c88ZotP39Sn1cf5vIkA2Krvxs9dTwKI4hmdT4ykCgPGP8Vbr4sfh/jHHJ96HP0Dn9ZAI /NwZsY29vn7JagqRftzaoicHJRJXYGCTrOijV5YAYobWpRxm6yyeUExGggSzWlGmHn76 vTnQ== X-Gm-Message-State: ANoB5pkddTkCJPmq8uhLhOt2gZmQluUVxCyoMh+g1F6EZq8nqmyFVjCj 19BcaYUkk9Qb3KP7/QitK02vqXmyTqvYS30b X-Google-Smtp-Source: AA0mqf5OapvpRAH+5VnA77qPIdzgwlfITsbaolLsvaKyv42TYKlgJkzboYADhIuWYUdZwCz8GNlFoA== X-Received: by 2002:a17:90a:ca87:b0:20a:aa74:175f with SMTP id y7-20020a17090aca8700b0020aaa74175fmr7686234pjt.194.1668674783887; Thu, 17 Nov 2022 00:46:23 -0800 (PST) Original-Received: from [192.168.1.3] ([182.69.183.47]) by smtp.gmail.com with ESMTPSA id jh19-20020a170903329300b0016cf3f124e1sm612963plb.234.2022.11.17.00.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 00:46:23 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=vibhavp@gmail.com; helo=mail-pl1-x630.google.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, 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:300027 Archived-At: --=-8DtN/jG7IqDucHeFQYTs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2022-11-16 at 23:32 -0500, Richard Stallman wrote: > [[[ To any NSA and FBI agents reading my email: please consider=C2=A0=C2= =A0=C2=A0 > ]]] > [[[ whether defending the US Constitution against all enemies,=C2=A0=C2= =A0=C2=A0=C2=A0 > ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. > ]]] >=20 > I can't find previous discussion of this, but if the idea is to make > Emacs crash if you try to set a "constant" symbol, I think it is a > bad > idea.=C2=A0 The chance of breaking something is very high, and there is > little to gain. >=20 Hi Richard, Perhaps "constant" is a misnomer here. If you are refering to defconst- defined variables, that is not what the patch is about. I'm refering to self-evaluating forms/objects referenced by elisp code, i.e. the ones that the constant vector in a bytecode object contains. The elisp reference manual states that mutating self-evaluating forms results in undefined behaviour, so marking them as const should be safe IMO. Best, Vibhav --=20 Vibhav Pant vibhavp@gmail.com GPG: 7ED1 D48C 513C A024 BE3A 785F E3FB 28CB 6AB5 9598 --=-8DtN/jG7IqDucHeFQYTs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEftHUjFE8oCS+Onhf4/soy2q1lZgFAmN19NsACgkQ4/soy2q1 lZgjRwgAulio0T4Er7tIlAg36DAUnF5rPqA87dE4CEmojTiqsONYKeYMM6DHQHP9 xMSz5ERH7t0diFdhUGpXKirxCHBNPZZZox0rBTabXap7uH0MQ8lW1Zqe8LSTPTOS +saC7VvVw79ygkT2kzlV4L9ngjNu26EISgVA5PnNQiBiH9U+7sjm7M+CD8oSknaF 4MLbIBvG9KhW6whsjdikp2E4PwTjzIuSYseaUt0WJW44pnh3gtmGFNG8n3ktDesA sGs7AQXGw3foeTy1ippmEC/YYC/b9lIaNcDrtjkBGCBykjZX+pwiMongQTj9cD83 bJg1MjEejcRlOGtgFiU6qJm+2Da6Gw== =s5+L -----END PGP SIGNATURE----- --=-8DtN/jG7IqDucHeFQYTs--