From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Eder Newsgroups: gmane.emacs.help Subject: Re: Emacs 30.0 warning from `cl-pushnew' and `memql' Date: Sun, 08 Jan 2023 19:54:31 +0100 Message-ID: <87wn5wuaag.fsf@eder.anydns.info> References: <878ritgaty.fsf@dataswamp.org> <87o7rprvia.fsf@web.de> <87zgb913fg.fsf@dataswamp.org> <87ilhveo2s.fsf@web.de> <87358zlgsy.fsf@dataswamp.org> <878ridacb8.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29975"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 08 19:55:13 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1pEap7-0007ZZ-Gj for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Jan 2023 19:55:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEaoY-00070f-Lz; Sun, 08 Jan 2023 13:54:38 -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 1pEaoX-00070Q-4v for help-gnu-emacs@gnu.org; Sun, 08 Jan 2023 13:54:37 -0500 Original-Received: from mout.web.de ([212.227.15.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEaoU-0003Tr-Le for help-gnu-emacs@gnu.org; Sun, 08 Jan 2023 13:54:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1673204072; bh=kUT2Pj0aad/kzhyJuRl8lhI/OIs0XoePVQIlQbDKN+0=; h=X-UI-Sender-Class:From:To:Subject:References:Date:In-Reply-To; b=agYEUlYsLBk5aC/H+kZjXQ3zXZUEbhNHeLx2x4wAAtlT2+n255CL731yZNAJROpNl UBW7b1UeuJNBOYAiJaGSNi+t3ViAFmEM87nQBugkcxKxsiq86cn+sQ9eGO0g/oGrZi UfcOTI7ADZv74TLMtXbCl5KLKG65SQ9KxmjqgjI1seMYQ3SVHXrBhnstr9cPBAe/3z zMYjTPGXaUPEa0HIegYEm3k0QeQsaVZ/kWS2lCgt/Jzw8L1avkkzqb1JVxoSWozf1G W7xRHwP8f01iR9ZTSQDD0xYp3jErlPQKn4o9zPiHcICdpMN++xahcIFAfxrqdebnUc o6kAPBdb71UyQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from localhost ([80.133.125.57]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Mt8kX-1oujVu46O1-00tVri for ; Sun, 08 Jan 2023 19:54:32 +0100 In-Reply-To: <878ridacb8.fsf@dataswamp.org> (Emanuel Berg's message of "Sun, 08 Jan 2023 05:18:51 +0100") X-Provags-ID: V03:K1:YwM0QKNBcxS5XaeoafXP2M7J87df1fflB30+W2pAOqBtEJNaiho IC7TnfVXpfZQsVSCG6PP3uPq47Zqa4fcaMFOBI3aijb7jlF7ZGzQI22Pu3NqGBUAgfWSUdm c56X1M3SaWou9WITxRq8ygRmE3BvR1hy+7FtCEk/pEe+6prBD3xb2aK/Kxnnv/uQhbb8UKw yn3UPWZaDI3CwU9SVnQQw== UI-OutboundReport: notjunk:1;M01:P0:gfK+oLv1b98=;EJyTMCQi8wsC/6lgKrNFmScRJhl RPC+7sDNdhEY2lm8IZiYxdWk5U12wo7mwP3Ezcaop3mGVEF/0x4yKyWVbeUD+xAamniTY+b9k TqrVLTgOFsW1GvCkcD+giNHayOpoxo6x3sAP7v5CGZCEh1HfX14TFFsLMGiLd4TOgTSYhhRta OYYfE/QdhSHN1rc1/3QFbwPzBRns10D9bpcURb2UJUGBGhZCMPHDMYOuyVqlF11wid/Yp/Xgm WOmytLtVFLiiJFvbjqfSo01m1I83UCdWQlSMOvLu0tct/7d3TlXbpB1DEb8qKRuq215BeMuPd GekS/WCUQe9uYpUuqyIakYhgkMxKhm71JIhwHu7EwNBeAaTE+dC0IKgGcSCx0n6ylMUkzFb2f dgW+dg4URkUquGIifdKkxWeQ1n9rtj0jDxrqamdYSBeNkhiMsfz71PSCpdqHgPRO/fqwniRb/ sf3zNL4beAYHUCc47bZuqN/7BanEAo5UuiovQnKCMwmS4amq+AG9xuV3GpKvY1si+7cYMqg4F bhLUn59PyaoFbjVTutOe+z+Sbqsgc1PG+Amdb4XSkxoIHugHrx5tAvPUidEwl7ABolSjJUyQK H9q3LgLpr7jPL2iG1bicGLnY+abMwjnd58tBKrINVkC0oKy+B4iJjdpke9no7w+6CPRaDSVhT sHrQBaiZhXejchPzCzRyTBS5udYjV/gP6CjE2LNNDU7FnQknz7yPWCadG+QjdPpwBCWw0r5H7 RjMEtTOOEKqYHQLP9dK+3zCoBNV6i4lTNm10tvQw046F9i92OL90Bg9wbiL4gJiJsDLdPryc Received-SPF: pass client-ip=212.227.15.3; envelope-from=a_eder_muc@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142161 Archived-At: On So 08 Jan 2023 at 05:18, Emanuel Berg wrote: > Stefan Monnier via Users list for the GNU Emacs text editor wrote: > >>> (let ((lst '())) >>> (cl-pushnew "a" lst) >>> (cl-pushnew "a" lst) >>> lst) ; ("a" "a") >> >> It may sometimes return ("a" "a") but it may also return >> ("a"). Case in point, I think it will do the first when >> interpreted and the second when compiled. > > What's the deal with all that, can it be explained easily? > > Why is it different? > > That's not a good thing, right? I always thought of compiled > as just faster in execution, but computes faster ... > > The compiler has some optimization scheme with recurring data > in space and time so the same data ends up at the same place > so is just pushed once? I'm nit sure how it is specified to work in elisp. But for common lisp you are in undefined territory. Since '() is a constant, then after modifying lst y are generating undefined behaviour. 'Andreas