Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 52147) by debbugs.gnu.org; 20 Jan 2022 09:50:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 20 04:50:54 2022 Received: from localhost ([127.0.0.1]:56381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nAU5l-0002kH-Rw for submit <at> debbugs.gnu.org; Thu, 20 Jan 2022 04:50:54 -0500 Received: from quimby.gnus.org ([95.216.78.240]:47448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1nAU5k-0002k0-1e for 52147 <at> debbugs.gnu.org; Thu, 20 Jan 2022 04:50:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=f6sBxkqbcvKkLcNiWuoZirjuIsT3vcr6R4Zdu0pfdkE=; b=YK1oj3I9nNWkShgxpk8auIFi8A vFJTDBQwrYfyel6U75VEq5EHpyXnhgqlOHpCb6ce2MbOF0QcWWvP/tTGSyHAdzucFuoxO7JuZwDI+ 7VIoUTm7WjMWV+kf9SPL6dfx6kWoJgj0P2S/ksUNX75f/GSQJwwdv+90mhrvC0sMR4D0=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1nAU5Z-00045K-LU; Thu, 20 Jan 2022 10:50:44 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Stefan Monnier <monnier@HIDDEN> Subject: Re: bug#52147: Eager macro-expansion is not performed in `eval-and-compile' functions References: <CAG7BpaqS9BZJ2BQO=0bx1FLQBvyJa9uQAZftg+q1ZzO3-Eydgg@HIDDEN> <87czmk7etf.fsf@HIDDEN> <CAG7Bpao6RvRpY07KW8wg49Ha0Z_GvVtaF=r_XY_ptq7SL0wdqw@HIDDEN> <87zgpnuft8.fsf@HIDDEN> <8735nen590.fsf@HIDDEN> <87pmotta9j.fsf@HIDDEN> <jwv35lpkq0k.fsf-monnier+emacs@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEVgXV2gnZ3S0ND7 +/u7ZUcZFxj///8mNaidAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YBFAkeAUJFj4EAAAGzSURBVDjL ddNLkuMgDAZgQYo9wsPewHhvo5oD9FRmj1Oj+1+lBfiVTsImLr6gH4QNCgBTjNQHAgRoT3Bv49ff DqO2o9IUMFX4ir+/OixWW6VulGMEBY6OsaAD6BP7bx9Zx9UrlKcACl06xWVtQRPNDAjq2JPUShbM QORZSikx3FbNQyhlTGQqGGZWqq+KLpu1pIUZLMg8l4h1DxmBTNESIRm+AuvcxbqakU0BtA14oCaj BRj6rpB3CTKzABQiCREwHUqqEgQGSpkhxmlbokQiKrO6TAIpLxuwZFgL0twUpFQm2mpxcZSVkg3c vBxQDvaHz2JZNmDTxAWkF3kHtqm1GLxvpc4lXDtOgwPJaN3bU2oM0QM1bXBsjMtNLmUcAvdXgvwp GF2o97HdKV/Gg5LZgcITyMF3oPEELZnrAWdMQYHHCYcIzKwvsEkRGFe8wn5OSFOxT1DPKQh6Xp+B Yi+mpst2tzWtWuEfGbUFVYqR+/gBRz9fYG/BK9BHwPbWvgEiedPgLZgPkD9k0FI+wPwC+dL+dysM /7//g3cR5l5hlA/oOWL1DTzltd1FXPofpmLkG/8GlCrpGDPPkmsAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjItMDEtMjBUMDk6MzA6MDArMDA6MDA/ZdMEAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAx LTIwVDA5OjMwOjAwKzAwOjAwTjhruAAAAABJRU5ErkJggg== X-Now-Playing: Led Zeppelin's _Led Zeppelin_: "Your Time Is Gonna Come" Date: Thu, 20 Jan 2022 10:50:41 +0100 In-Reply-To: <jwv35lpkq0k.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message of "Sat, 15 Jan 2022 10:09:36 -0500") Message-ID: <87a6fq4txq.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier <monnier@HIDDEN> writes: > Both `eval-when-compile` and `eval-and-compile` currently defer to > `eval`, but they should arguably do the macro-expansion eagerly, indeed. OK; I'll leave this bug report open as a wishlist item. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52147 Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 52147 <at> debbugs.gnu.org, Paul Pogonyshev <pogonyshev@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Stefan Monnier <monnier@HIDDEN> writes: > Both `eval-when-compile` and `eval-and-compile` currently defer to > `eval`, but they should arguably do the macro-expansion eagerly, indeed. OK; I'll leave this bug report open as a wishlist item. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#52147
; Package emacs
.
Full text available.Received: (at 52147) by debbugs.gnu.org; 15 Jan 2022 15:09:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 10:09:47 2022 Received: from localhost ([127.0.0.1]:41495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1n8kgd-0004Uc-37 for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 10:09:47 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1n8kga-0004UM-QU for 52147 <at> debbugs.gnu.org; Sat, 15 Jan 2022 10:09:45 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B27DE1001AC; Sat, 15 Jan 2022 10:09:38 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 40B50100120; Sat, 15 Jan 2022 10:09:37 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1642259377; bh=m4bUx8stIyef7RMgRtknlYoNSETbf6NX4Hwm6ryZm/0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=EJDnsxj7P4eIO+pM1mylHSB33ZTfEqYavzaEeB/5dlCEFGvz9//130aoU/CKBOBWy DnQMbDTOeEpUWgpFb+QP2FUDFFJzoUCGK/K/Bz2txwNxHX3PtMZowk4xn0XNaxkxJc fUUtwuwJGJl0l5RSS11UWwRbmH3cWiObp7veRu/w/9R0wHRcnL5ZrNh6o3YiLOMekX 6lhY3elt/fyvd+XxemUa+iL8DklQHn+y7i7W1MVm9sq9Os0TB8cSMys7mTdNw7Tekr VMpCDiO+dXS0flwZU0gKzlHIzYoPS+VdvhfYEWzezjYUJhplvOxcIC97W/niQvYbE/ NEFCJB3uX0bfw== Received: from pastel (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 050A8120783; Sat, 15 Jan 2022 10:09:36 -0500 (EST) From: Stefan Monnier <monnier@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#52147: Eager macro-expansion is not performed in `eval-and-compile' functions Message-ID: <jwv35lpkq0k.fsf-monnier+emacs@HIDDEN> References: <CAG7BpaqS9BZJ2BQO=0bx1FLQBvyJa9uQAZftg+q1ZzO3-Eydgg@HIDDEN> <87czmk7etf.fsf@HIDDEN> <CAG7Bpao6RvRpY07KW8wg49Ha0Z_GvVtaF=r_XY_ptq7SL0wdqw@HIDDEN> <87zgpnuft8.fsf@HIDDEN> <8735nen590.fsf@HIDDEN> <87pmotta9j.fsf@HIDDEN> Date: Sat, 15 Jan 2022 10:09:36 -0500 In-Reply-To: <87pmotta9j.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sat, 15 Jan 2022 14:10:32 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.115 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52147 Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 52147 <at> debbugs.gnu.org, Paul Pogonyshev <pogonyshev@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) >>> We usually don't stress a lot about the performance of interpreted >>> (i.e., uncompiled) code. Indeed. >> Well we do, a bit, >> >> (info "(elisp) How Programs Do Loading") >> >> says that loading a file performs eager macro expansion and that does >> speed up the resulting code. `eval', `eval-when-compile' and >> `eval-and-compile' don't perform eager macro expansion. I don't know to >> what degree this is on purpose. But if a macro is defined later in the >> file or in another file that has not yet been loaded this may not be >> possible anyway. > > It sounds to me like things are basically working as designed. > > Perhaps Stefan has some comments; added to the CCs. AFAIK the exact time of macro expansion is left underspecified on purpose. Whether eager-macroexpansion is used or not should be an implementation detail. A piece of code which relies on macro-expansion being done lazily is a bug, AFAIC. Usually those bugs become apparent when byte-compiling the file (where macro-expansion is necessarily eager), except for those cases that occur during bootstrap. Both `eval-when-compile` and `eval-and-compile` currently defer to `eval`, but they should arguably do the macro-expansion eagerly, indeed. `eval` currently doesn't use eager macro-expansion because I haven't done the work needed to check/ensure that the resulting potential slowdown is negligible. But I think `eval` should also eagerly macro-expand its argument. Stefan
bug-gnu-emacs@HIDDEN
:bug#52147
; Package emacs
.
Full text available.Received: (at 52147) by debbugs.gnu.org; 15 Jan 2022 13:10:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 08:10:47 2022 Received: from localhost ([127.0.0.1]:39402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1n8ipT-0004eT-I9 for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 08:10:47 -0500 Received: from quimby.gnus.org ([95.216.78.240]:49262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1n8ipP-0004eA-8p for 52147 <at> debbugs.gnu.org; Sat, 15 Jan 2022 08:10:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uHZpC1AYiKQBl0JhbICKfnoyNTJXBOfYPaWAaG4wRs0=; b=YnMNekon5z6yVqqSRGRO+fmmVE 5420V5Vj02wYudRzGStszeQf+t7zpNGWdxgN+Z34XY2EMvePoFT2KOcIZlr55rRxunc9p4TP539mN krQl5kfrlFUq806BFYbY0Waow3HO6XiKhsXaIkjmySovphPT10/08T52mWrZ2lxim+vA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1n8ipF-0004Vl-4r; Sat, 15 Jan 2022 14:10:35 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Michael Heerdegen <michael_heerdegen@HIDDEN> Subject: Re: bug#52147: Eager macro-expansion is not performed in `eval-and-compile' functions References: <CAG7BpaqS9BZJ2BQO=0bx1FLQBvyJa9uQAZftg+q1ZzO3-Eydgg@HIDDEN> <87czmk7etf.fsf@HIDDEN> <CAG7Bpao6RvRpY07KW8wg49Ha0Z_GvVtaF=r_XY_ptq7SL0wdqw@HIDDEN> <87zgpnuft8.fsf@HIDDEN> <8735nen590.fsf@HIDDEN> X-Now-Playing: Arto Lindsay's _Prize_: "O Nome Dela" Date: Sat, 15 Jan 2022 14:10:32 +0100 In-Reply-To: <8735nen590.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 29 Nov 2021 20:14:51 +0100") Message-ID: <87pmotta9j.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > Well we do, a bit, > > (info "(elisp) How Programs Do Loading") > > says that loading a file performs eager macro expansion and that does > speed up the resulting code. `eval', `eval-when-compile' a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52147 Cc: 52147 <at> debbugs.gnu.org, Paul Pogonyshev <pogonyshev@HIDDEN>, Stefan Monnier <monnier@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > Well we do, a bit, > > (info "(elisp) How Programs Do Loading") > > says that loading a file performs eager macro expansion and that does > speed up the resulting code. `eval', `eval-when-compile' and > `eval-and-compile' don't perform eager macro expansion. I don't know to > what degree this is on purpose. But if a macro is defined later in the > file or in another file that has not yet been loaded this may not be > possible anyway. It sounds to me like things are basically working as designed. Perhaps Stefan has some comments; added to the CCs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#52147
; Package emacs
.
Full text available.Received: (at 52147) by debbugs.gnu.org; 29 Nov 2021 19:15:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 29 14:15:02 2021 Received: from localhost ([127.0.0.1]:39412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mrm7C-0000f5-5I for submit <at> debbugs.gnu.org; Mon, 29 Nov 2021 14:15:02 -0500 Received: from mout.web.de ([212.227.15.4]:39395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1mrm79-0000eI-VF for 52147 <at> debbugs.gnu.org; Mon, 29 Nov 2021 14:15:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1638213293; bh=JzsCyjYN0T7BbcCN8Sf4CkqcN0eRXpsQ4aKPn4w6VIY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=A/X/JkeTciJ6poQopFrLWXeUJ0lIdc/1ttft8DLTWqofMX8jMwIgwaB948IIUmevd /Ql0hdP+9W7yH7lxY2JLs9iXz5oH/T9de97cEfW0vVkkvrcy25XIWSHc0lqCwYKvMS uIuIr8X3zikvDofnOLRQS52J3STQrtC7zPRPuh8w= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([92.208.225.87]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M5Qm1-1mqOfQ17av-001Gb8; Mon, 29 Nov 2021 20:14:53 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#52147: Eager macro-expansion is not performed in `eval-and-compile' functions References: <CAG7BpaqS9BZJ2BQO=0bx1FLQBvyJa9uQAZftg+q1ZzO3-Eydgg@HIDDEN> <87czmk7etf.fsf@HIDDEN> <CAG7Bpao6RvRpY07KW8wg49Ha0Z_GvVtaF=r_XY_ptq7SL0wdqw@HIDDEN> <87zgpnuft8.fsf@HIDDEN> Date: Mon, 29 Nov 2021 20:14:51 +0100 In-Reply-To: <87zgpnuft8.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon, 29 Nov 2021 16:44:51 +0100") Message-ID: <8735nen590.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:yNqEKRwcxFZGNfN9RxKiLEge5OP1lWIjxOoTLQgsFZP3veB5iHo 79/YTq9ofYVhJECjm72cboRY+L3/Uc1vXE72/fmUPypDcq8N73v+pfbXeXo9HsXeeuh4fhu DrdUZaf7NkRRCCWzVGdjs/nCHh5FcWF6BUA90XTPmuL1LIDS06zuvMZL5Yb8r6jZppC4m9j pwHMi6BF3l2iNMBJie3wQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:JoxyuMkBrwM=:sEw1Ep59+pBk6SN2LwNOFR b3sGUoKMu5/7JeEzqY72CSvrTj0aLdRja9p8gGNgjFWQ6G0gXgqGDvNVtNtClyNlM4nqlb+Bm xccCcgqeF0fUGa7OJnvtGaBLuu5DYqhFan+YcwnmkNRE4FtRvQA96K7ypFMxIk2vtnaYU8y+d LWJi8XOeKy8gY0UfJiciUOe6WZjbZ1aanHlYjiSjAKGm2pje2iZH6qKdjdmitZOdU06iJxuwb pHVGlKATtJ5JcQ+22JK2VfFPqdlizuHofhdt0sSSDigJPuP52X4jRJInJ2aZtVSNj/aC+fkaD FHg/jrl6DSL/WyU4nlpj+1A/dNAVselkQDVr6qBonIy4FFOAFPkGO0kVbz8OkcbtcP86AjaVm geHS56ALB4WpoWZOc4iOwq2vRAHelCBjE/2PvOL9dXmK/DsIiQkqL76KpdSbrkZ/CmKWoHLV8 nWkNlPBxy0NK4NuhYnQmGRKTJIb9Gde5+eaxxHcE4/jshV/7SgY4pyU5qmBymliTnZnjw7MZ+ jvTiuJgVkVZXjF3WLaKu36DvKJARSSePjUFbDE+/tlXOhdVhwJ+9AhXU46YjTmbxhUqGwp4Ri XYIUzPmwuUhEsHKk0Jg5ce3ipi3etmPujBsklipn9Bq6YXpsV83aNYpVcOZrfah0IUzVRd/x5 MkRr0k7JEG8LBvUshORh39GRVX0BrdMWHC4+VhuS2KOOFVo+hH0g+0t67E9Q+qLoKz7dEWtEq ZZftyHbzVR6YLH3/K6PzqiIOhY8ofWKVd9wBMh3Pfx9Kxew4fiNG6iADxqslUMOT8ndfxqPKs AX2BhDu4VTh/xUdEUIO7CvMNsloGD/Ztwknc9mlFtu4O0o5edi8Y6petmfWEXIMhiufc7b/RV vK0Bv0nzgBwxU1Ytip0xdxeo4L3kli94uvx8FjpKecTa3qKVftwgWAc3TTAxuagJIlHqttYlP fp7LiA2eelD19QFNIxsKVu1b4Ha55cmXOq//2XVQtfqT6uV1Mpd7QxWApdG5aCpSMEkDY5fNT 2TFCRT+DIC3bnyBEwN1tcD/mFP04hdl/RKG1dLNfOcDh3iMBb7ywYwK4KCllntfwNkjByL1eT 9sH+W4wr430FKI= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52147 Cc: 52147 <at> debbugs.gnu.org, Paul Pogonyshev <pogonyshev@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Lars Ingebrigtsen <larsi@HIDDEN> writes: > We usually don't stress a lot about the performance of interpreted > (i.e., uncompiled) code. Well we do, a bit, (info "(elisp) How Programs Do Loading") says that loading a file performs eager macro expansion and that does speed up the resulting code. `eval', `eval-when-compile' and `eval-and-compile' don't perform eager macro expansion. I don't know to what degree this is on purpose. But if a macro is defined later in the file or in another file that has not yet been loaded this may not be possible anyway. Michael.
bug-gnu-emacs@HIDDEN
:bug#52147
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 52147) by debbugs.gnu.org; 29 Nov 2021 15:45:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 29 10:45:06 2021 Received: from localhost ([127.0.0.1]:38978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mriq2-0000o2-5V for submit <at> debbugs.gnu.org; Mon, 29 Nov 2021 10:45:06 -0500 Received: from quimby.gnus.org ([95.216.78.240]:59416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1mriq0-0000ja-62 for 52147 <at> debbugs.gnu.org; Mon, 29 Nov 2021 10:45:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MS7VtRORf4/P+zsVtkQbAU9+KOePuut/ZYOs+ggvDYc=; b=f9EH8Hg4NXMOdmhmG3pjKBYXjN iwakoEP8P/CypfRVOzNENmououclzTp25UqN99FfHAh+QuY1Xu0M/vYrmXYLBZ1KJGkvPnKVg38kv JicM2b4HSyYABqcH08T7DYXQPq2hxxMCTBAN1w55GGXHIraeGK8CZ9lY/uo35kaVSdOs=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mripr-0005lm-1y; Mon, 29 Nov 2021 16:44:58 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Paul Pogonyshev <pogonyshev@HIDDEN> Subject: Re: bug#52147: Eager macro-expansion is not performed in `eval-and-compile' functions References: <CAG7BpaqS9BZJ2BQO=0bx1FLQBvyJa9uQAZftg+q1ZzO3-Eydgg@HIDDEN> <87czmk7etf.fsf@HIDDEN> <CAG7Bpao6RvRpY07KW8wg49Ha0Z_GvVtaF=r_XY_ptq7SL0wdqw@HIDDEN> X-Now-Playing: Mia Doi Todd's _Music Life_: "Little Bird (feat. Fabiano do Nascimento & Miguel Atwood-Ferguson)" Date: Mon, 29 Nov 2021 16:44:51 +0100 In-Reply-To: <CAG7Bpao6RvRpY07KW8wg49Ha0Z_GvVtaF=r_XY_ptq7SL0wdqw@HIDDEN> (Paul Pogonyshev's message of "Sun, 28 Nov 2021 22:53:52 +0100") Message-ID: <87zgpnuft8.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Paul Pogonyshev <pogonyshev@HIDDEN> writes: > Is the issue you want to draw attention to that an interpreted > `eval-and-compile' form doesn't macroexpand its body? > That's what the subject says. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52147 Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 52147 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Paul Pogonyshev <pogonyshev@HIDDEN> writes: > Is the issue you want to draw attention to that an interpreted > `eval-and-compile' form doesn't macroexpand its body? > That's what the subject says. Well, not exactly -- it doesn't say anything about the code being interpreted. > I know that it works regardless, but the > performance suffers, especially if the used macros are complex. We usually don't stress a lot about the performance of interpreted (i.e., uncompiled) code. Does this have a performance impact on byte-compiled code? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#52147
; Package emacs
.
Full text available.Received: (at 52147) by debbugs.gnu.org; 28 Nov 2021 21:54:10 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 28 16:54:10 2021 Received: from localhost ([127.0.0.1]:36484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mrS7e-0005Xa-7e for submit <at> debbugs.gnu.org; Sun, 28 Nov 2021 16:54:10 -0500 Received: from mail-ed1-f54.google.com ([209.85.208.54]:40628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pogonyshev@HIDDEN>) id 1mrS7c-0005XO-UI for 52147 <at> debbugs.gnu.org; Sun, 28 Nov 2021 16:54:09 -0500 Received: by mail-ed1-f54.google.com with SMTP id r25so63444138edq.7 for <52147 <at> debbugs.gnu.org>; Sun, 28 Nov 2021 13:54:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XEviDth6bTomFGQReKp21zcZQ4XsWwnkto1xiKlf53Q=; b=ADyqeqbvbIwk1sVyIRAr8z/+KrMOf6vcEq+FcBHe5PCr5mYFaEsDClDIy8cE9A9sIj C9vbYRjbGMXgHuXAGyK9EbbET9bQxdogmJjbZOowDg+LiKAEvaLw7EpwXciC77PtU/hF hECXPVW/l/4S92HzEyMUgRi7+pTIPC2mtfy+USuU1r8BPoGykEvrRuUjOAds0zS2Uz2H ZmsKHfqL2NtfAOCDzy1n5B2U8PYL/cRm8aP4rD7S0l1JSh8ix2FAsDUERNIA0u+HI3s+ jQyOfrjL49okNL5N2yxCdh/6faxAI7Ujq9AmyVWh5CU4yqSG++w3rMyn4sww6kvi1D7f rIFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XEviDth6bTomFGQReKp21zcZQ4XsWwnkto1xiKlf53Q=; b=m7YJZ5Hykg/jwiLrbOhntP7ENNCAFwukEwE+bZI/jwXIZBJd5Iso3FfQ5ts4R33Rmu zrLJWev17XBg5jrCYAXa2cwCF+D/8vUttAPAS3bVydgkbPCAR0TowiOSFVD4ONUJpc+S luhv4M0m9Egf7ZoO66x0HKkRZTJKqCQwZE+s2L6INGdm7JEpBvDb3K8MsixBWRqCeZoW epFFoa/gIj36Okpa5RCPYwcseO209lZCkb/OB/gHdQpvRYEvmpxti4B1aE8t9uCFEY2V cbXZoViIQD0V3o+jCcv7M+pnwQTaxb9YLWQ+doKPHWvW39k6rCDqdGtNQQ5yQFuYz7pQ 4nbA== X-Gm-Message-State: AOAM530EnsQPeNuYdL2FrlNp77X5cIB1A2CpU4RwwwZ2I7vXcQrhP0n+ sOw0Kqi0NFrGbnhVtUHj1QLaYhYO5EBfVCMFMA== X-Google-Smtp-Source: ABdhPJxkYmqkgNxmmoYRDmlX1WBt7ZCpVvqJ6dBIK3utINPfDbsC72d5rMoyD01tOmEFm8PCy4MFS1cU+k93Yfwbi0k= X-Received: by 2002:a05:6402:3488:: with SMTP id v8mr68201777edc.398.1638136442847; Sun, 28 Nov 2021 13:54:02 -0800 (PST) MIME-Version: 1.0 References: <CAG7BpaqS9BZJ2BQO=0bx1FLQBvyJa9uQAZftg+q1ZzO3-Eydgg@HIDDEN> <87czmk7etf.fsf@HIDDEN> In-Reply-To: <87czmk7etf.fsf@HIDDEN> From: Paul Pogonyshev <pogonyshev@HIDDEN> Date: Sun, 28 Nov 2021 22:53:52 +0100 Message-ID: <CAG7Bpao6RvRpY07KW8wg49Ha0Z_GvVtaF=r_XY_ptq7SL0wdqw@HIDDEN> Subject: Re: bug#52147: Eager macro-expansion is not performed in `eval-and-compile' functions To: Michael Heerdegen <michael_heerdegen@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000c5088d05d1e05c29" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52147 Cc: 52147 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --000000000000c5088d05d1e05c29 Content-Type: text/plain; charset="UTF-8" That's what the subject says. I know that it works regardless, but the performance suffers, especially if the used macros are complex. Paul On Sun, 28 Nov 2021 at 11:30, Michael Heerdegen <michael_heerdegen@HIDDEN> wrote: > Hello Paul, > > > (eval-and-compile > > (defun my-func-eac (what) > > (my-macro what))) > > > > (defun my-func-normal (what) > > (my-macro what)) > > > > (print (symbol-function 'my-func-eac)) > > (print (symbol-function 'my-func-normal)) > > > > `eval-and-compile' is advertised in Elisp manual to make > > byte-compilation of certain macros without prior loading > > possible. Looks strange that at the same time it can worsen > > performance of non-byte-compiled code. > > Is the issue you want to draw attention to that an interpreted > `eval-and-compile' form doesn't macroexpand its body? > > Michael. > --000000000000c5088d05d1e05c29 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">That's what the subject says. I know that it works reg= ardless, but the performance suffers, especially if the used macros are com= plex.<div><br></div><div>Paul</div></div><br><div class=3D"gmail_quote"><di= v dir=3D"ltr" class=3D"gmail_attr">On Sun, 28 Nov 2021 at 11:30, Michael He= erdegen <<a href=3D"mailto:michael_heerdegen@HIDDEN" target=3D"_blank">m= ichael_heerdegen@HIDDEN</a>> wrote:<br></div><blockquote class=3D"gmail_= quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,= 204);padding-left:1ex">Hello Paul,<br> <br> > (eval-and-compile<br> >=C2=A0 =C2=A0(defun my-func-eac (what)<br> >=C2=A0 =C2=A0 =C2=A0(my-macro what)))<br> ><br> > (defun my-func-normal (what)<br> >=C2=A0 =C2=A0(my-macro what))<br> ><br> > (print (symbol-function 'my-func-eac))<br> > (print (symbol-function 'my-func-normal))<br> ><br> > `eval-and-compile' is advertised in Elisp manual to make<br> > byte-compilation of certain macros without prior loading<br> > possible. Looks strange that at the same time it can worsen<br> > performance of non-byte-compiled code.<br> <br> Is the issue you want to draw attention to that an interpreted<br> `eval-and-compile' form doesn't macroexpand its body?<br> <br> Michael.<br> </blockquote></div> --000000000000c5088d05d1e05c29--
bug-gnu-emacs@HIDDEN
:bug#52147
; Package emacs
.
Full text available.Received: (at 52147) by debbugs.gnu.org; 28 Nov 2021 10:30:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 28 05:30:34 2021 Received: from localhost ([127.0.0.1]:35013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mrHS6-00043Q-K1 for submit <at> debbugs.gnu.org; Sun, 28 Nov 2021 05:30:34 -0500 Received: from mout.web.de ([212.227.17.11]:34105) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1mrHS0-000438-Hr for 52147 <at> debbugs.gnu.org; Sun, 28 Nov 2021 05:30:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1638095421; bh=W+x9JqA9SBhcE6gcW6BcJQAYfXnHq+DlcGFH0B4WXRg=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ZdCGQDyDZmA5MSJ43EgPMM9Mep7p9FnLhbX4WvXlg8UxXThtNwXU1NkZn6vTeFS3D LJgL5Sic/zWsF8f/sejkJvvDQ4bbAPiM2c3fmeMzWlOLR/yiaJRZIiw47rrUqX9iOA ZejeD6flZmrrZ680rXLS0DAE4/wCyr13MHL4s7jo= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([92.208.225.87]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1Mdf8F-1mHwlQ3Ksr-00ZCoH; Sun, 28 Nov 2021 11:30:21 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> To: Paul Pogonyshev <pogonyshev@HIDDEN> Subject: Re: bug#52147: Eager macro-expansion is not performed in `eval-and-compile' functions References: <CAG7BpaqS9BZJ2BQO=0bx1FLQBvyJa9uQAZftg+q1ZzO3-Eydgg@HIDDEN> Date: Sun, 28 Nov 2021 11:30:20 +0100 In-Reply-To: <CAG7BpaqS9BZJ2BQO=0bx1FLQBvyJa9uQAZftg+q1ZzO3-Eydgg@HIDDEN> (Paul Pogonyshev's message of "Sat, 27 Nov 2021 20:37:01 +0100") Message-ID: <87czmk7etf.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:sQiD7cMYnK3clXoY7bbLNlH0FiI373QkwJhtcWMKkBwaXTrD7ty jh890kKo9tWRnrgYf4Mb8B8EjbQWMRwzy9P+0v4IBWQY38WWw4BmQE1swj/Nqn2ODbfsnJg TTLMzmIrVxEeN4uf4IKZtObPyb9Hy6X8BKMgK3AE3xlqtaKYfLuqTrYeM2jg+Y7hmvLkQcI mfcTd4HcoiI3z5Uv+lzSA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:xg9PByccIc4=:HhMxAdh5qzGzrhhmcWUPhr jqunEzASwoyHeqAwXmdXOy1O43MRXOUE7KPbZGU4FsSfXafxx8wRtXg+wqV2ezUM2DRWXOrfS ShmtMEe/SkYzRVQ0X0VI39DFiZVh3jwdBXEh2klr4IzttApzIU+4f72Dj9QVJl38+OBn66UR8 ViPmUjqm2clOxjysISc9rpdEmfciU1Yd8aNQRWQzwax6bDWyR9145rkWME9QlVN+Ex58oDrWn SRMTeBa30uiDq0yfjTH/wb+4EARACDiSIoWHAnudqpWoBnYeHRJqBThGo4/DnKfEh90zdQpu+ rpAoQDvBIqqZdYaXBVddtNZI6or6O9Dh2h1eRr6NZ+dQ71HZmafCzTMf7AY2xLL6c83sZUftu RKeCwNwFp4EovYyqNvN412nE8NytQC3pwpc5CkjxDJT5DAFvh5oHQBI5Xd2neT0nGjrG4Wqy5 KQQrTqSM46zGljPFOGpBOMKV8M0Yx23W5fFdgFCQoKtSBJdDaklLisMCKbCD1lZsgXr+rnEEl CKUU5zCVb4Z3XkxFPoQ274vAxpCUQwFREiR4kW6QDpwegDHLOar5oOt+1sxhYdjnzMGlqc6lO +spONi/AJ7H3QhePDgjTw/Be4XXvcVyXcDU1KnW2qAPa8fw1pKjYd7dICnxdQ6NOZQ5b5vF6d NLwUJrrs/khXy/M3WZFnGZVUmmL9SZodfzPsdKb1bKQEo7VkCbcNXQ32QnOQCFtzovFTvBoPX UEaMPxi3iiVtBV4yGXUawoyc0Io7v6IIlJ2qcE9ZMbRjnepq94SiSqr25NxZBoHhHZZvsodO4 5GDtI5Ff4Oy992O4rje5CFszMHGUQQdqvATIJ1NwYlRZD0NIVkpkhmLn77dPuZ7uxtYF+O+5E FpR1vdFI8Pzbpl2Xs6pah6UWQJKF3UjhPD/KmxOgx5QsVQZMEvQSI516CFkHlAgeRhT8ToDIB 1+qJZ9qkwTgh1Wtljgw2UxvBuwnDjxtw1059QLx64k0k0DZiseItq2cY13RDJO9f9vd3zxQYQ z18iv7h8jPRMbGQliLY5a9JiWFHZkxKVYhYjYXRT+zqhndP4Guwtf4SCr8/d3MoGVPOJtpCja vO+WOtFZY4CAsA= X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52147 Cc: 52147 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hello Paul, > (eval-and-compile > (defun my-func-eac (what) > (my-macro what))) > > (defun my-func-normal (what) > (my-macro what)) > > (print (symbol-function 'my-func-eac)) > (print (symbol-function 'my-func-normal)) > > `eval-and-compile' is advertised in Elisp manual to make > byte-compilation of certain macros without prior loading > possible. Looks strange that at the same time it can worsen > performance of non-byte-compiled code. Is the issue you want to draw attention to that an interpreted `eval-and-compile' form doesn't macroexpand its body? Michael.
bug-gnu-emacs@HIDDEN
:bug#52147
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 27 Nov 2021 19:37:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 27 14:37:19 2021 Received: from localhost ([127.0.0.1]:34552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mr3Vf-0005jE-2b for submit <at> debbugs.gnu.org; Sat, 27 Nov 2021 14:37:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:60560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pogonyshev@HIDDEN>) id 1mr3Vd-0005j7-Qj for submit <at> debbugs.gnu.org; Sat, 27 Nov 2021 14:37:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <pogonyshev@HIDDEN>) id 1mr3Vd-0007Ra-GS for bug-gnu-emacs@HIDDEN; Sat, 27 Nov 2021 14:37:17 -0500 Received: from [2a00:1450:4864:20::529] (port=34365 helo=mail-ed1-x529.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <pogonyshev@HIDDEN>) id 1mr3Vb-0000Cu-Pc for bug-gnu-emacs@HIDDEN; Sat, 27 Nov 2021 14:37:17 -0500 Received: by mail-ed1-x529.google.com with SMTP id x15so53357542edv.1 for <bug-gnu-emacs@HIDDEN>; Sat, 27 Nov 2021 11:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=K4IjxPxIjn+GPCOExKC78RjmkM5OfXZTBh7NKwlAsZo=; b=jnOeQsWOnDs8zVETjIuCL3mveIOUBsn11MAkGzsSKR3JF4JoATZkVlocncUFJz8Hwh lg4gYD3Yxt7ruhQxeLKNJg/T3/1uggYK7EgrYpS7lXqXW9q5evk9IeN+A3gsj1/UsoqU diZQUxaRHMAiX7Pkdy1DJd09RkXouGxPDqzp9k8+6QTyFkUgqUD5FZ6ZRvFfFvkSsgHn Li1+qyS76YnzOogDOdghBqteoI4cVcI/svt2UCuuUyZkCadt58QQaQoZo8L+OOct61nj G6hTPKK4+cOA5pDhcyA70GQ76vWHi7yD8Bbevm2gLfoHLlcDOvYdzTwdbvpW8tCl6jVc ip+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=K4IjxPxIjn+GPCOExKC78RjmkM5OfXZTBh7NKwlAsZo=; b=Fd/EzdHNiqDq3QbKxMjvbhpI6+ig4x6onC5oWlTQzM9Cesck1NPrx5ra44tyRaK3ED uN1DTv0jlm9mqKi1sTkV4YZI2xYoBGz6RFrlLlRtrdh4M1VcdRp00DVha/jfMZWulqno V8feJkB1FdVYyn6HVFm2zuGhheN5P4NxWDPUhg+C+mm+XOWlavJtIlLCdZZTUli5l9II fdvpH/gfnW6S4Fhz7FiZy6Zyrj0TsL/jHFLp4Ea1HLVE+7C1FHQErbmsmK1sbYkIcYFM paDGwUZwEH4tW8cJGF/Zr7eyILOhwUuDCQceqT3F/tHp+P41Y+kt8q4nEngLpdL4VtM3 ccpQ== X-Gm-Message-State: AOAM533/ojAx5u27t5J814MRPlUtQzycOAP1mPuvhkcwMIxXgRzmFQz7 Ngwsmq2ybr+uuPJraSIN9sg0WPBJFkZWH43mNwfIA3Vkkw== X-Google-Smtp-Source: ABdhPJxlN134+I6brGEThXRAHI0VNomDIj1UNOGIDBO+ruwenfZd+X8vHknsbz1lV7LLzpzE1lPwdu4BGomGeR43Fcc= X-Received: by 2002:a17:907:96aa:: with SMTP id hd42mr50663510ejc.385.1638041832865; Sat, 27 Nov 2021 11:37:12 -0800 (PST) MIME-Version: 1.0 From: Paul Pogonyshev <pogonyshev@HIDDEN> Date: Sat, 27 Nov 2021 20:37:01 +0100 Message-ID: <CAG7BpaqS9BZJ2BQO=0bx1FLQBvyJa9uQAZftg+q1ZzO3-Eydgg@HIDDEN> Subject: Eager macro-expansion is not performed in `eval-and-compile' functions To: bug-gnu-emacs@HIDDEN Content-Type: multipart/alternative; boundary="00000000000093419605d1ca55af" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::529 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=pogonyshev@HIDDEN; helo=mail-ed1-x529.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) --00000000000093419605d1ca55af Content-Type: text/plain; charset="UTF-8" Simple code to demonstrate this: ;; -*- lexical-binding: t -*- (defmacro my-macro (x) `,x) (eval-and-compile (defun my-func-eac (what) (my-macro what))) (defun my-func-normal (what) (my-macro what)) (print (symbol-function 'my-func-eac)) (print (symbol-function 'my-func-normal)) `eval-and-compile' is advertised in Elisp manual to make byte-compilation of certain macros without prior loading possible. Looks strange that at the same time it can worsen performance of non-byte-compiled code. Paul --00000000000093419605d1ca55af Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Simple code to demonstrate this:</div><div><br></div>= ;; -*- lexical-binding: t -*-<br><br>(defmacro my-macro (x)<br>=C2=A0 `,x)<= br><br>(eval-and-compile<br>=C2=A0 (defun my-func-eac (what)<br>=C2=A0 =C2= =A0 (my-macro what)))<br><br>(defun my-func-normal (what)<br>=C2=A0 (my-mac= ro what))<br><br>(print (symbol-function 'my-func-eac))<br>(print (symb= ol-function 'my-func-normal))<br><div><br></div><div>`eval-and-compile&= #39; is advertised in Elisp manual to make byte-compilation of certain macr= os without prior loading possible. Looks strange that at the same time it c= an worsen performance of non-byte-compiled code.</div><div><br></div><div>P= aul</div></div> --00000000000093419605d1ca55af--
Paul Pogonyshev <pogonyshev@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#52147
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.