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: Thoughts on replacing macros with static inline functions Date: Fri, 18 Nov 2022 15:29:34 +0800 Message-ID: <87h6ywen4x.fsf@yahoo.com> References: <83r0y4idy8.fsf@gnu.org> <87leo8eq0y.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="18503"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "xenodasein--- viaEmacs development discussions." , Richard Stallman , Eli Zaretskii , pappasbrent@knights.ucf.edu To: xenodasein@tutanota.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 18 08:32:14 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 1ovvrC-0004aj-GI for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Nov 2022 08:32:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovvos-0007Rx-NO; Fri, 18 Nov 2022 02:29:50 -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 1ovvoq-0007Qw-PL for emacs-devel@gnu.org; Fri, 18 Nov 2022 02:29:48 -0500 Original-Received: from sonic312-25.consmr.mail.ne1.yahoo.com ([66.163.191.206]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovvon-0005y3-Tx for emacs-devel@gnu.org; Fri, 18 Nov 2022 02:29:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668756583; bh=lhFEPJ8QynPlbDgcaPZCDT2/MgkL2GovlYjauxkaQ6U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=O5mtOdzNUADeLGGHMDW4Eh73LK6Q0FAUuqLyF1TOiYvg0letLA/ejtJ6pvIiv4BHQeWWFmLBrU8TaOcE/UlpDIhLT/V5KW+Gv3NG5SAnRqWk68UrVzsKfUDAuKsKiKFPkQ1LjBI/ni+VApwfNXhPHZovcuQJSbg2Bp25AyP608Ps8dMmn0EaF+ufyvbjJ5oMcRN9I7jSu2bXPadzSdemPHKYJ8I/YJU7CNEA7YyU2IsU0HjlG9i7J7PvQLKrFIkKtcQa1uQMQDoxqnm38I8i9xHB0KGPDj5i2WDaQ95i3JE/DWKdQ+PBmeXfGngPvBQBfplBNNsFJ4x0wks6eGz2uQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668756583; bh=K1V2DZ7GmtEeDVeGCXDDk65T6BvCL0rjFp37zY6R9vi=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=PE632ZQCQJVrZiRgCyXXyFnO7aLTe3bnu7q+Q9Mh3AJPusfTMingRIGu4zurhVCR9Z0rouKX1+1P/PlsbeQhYk+Hp3L1IjmR35aF1066NjEjm4P/2Y+X0KILN3fOroPObLRbwUleLvQlXKtTF1QnhOrJhiJ7C7GM9KqQl1HbP3+aNPpML5PrMSWu9mcD31X4FaWl5usk9CPPYqGkldt6BVx/cO5RxL631leDfcH9GstdYUY89CG6mv6wh2SnW3kRs+2PVbQuA0sLDhIKHGPxsBP+i73zmaV15h/qvagOm2WwAMUAnkNi5Wg5ijPnysQvxHWbh+OOFuQvoUzDhoQ5sA== X-YMail-OSG: TQ1WsMcVM1mGMEKYWJA1x6W6KVXJS2bMEPBRbDjbH9F.NNangFQPtoBa3E3x.RX FTDcTM3BvQ1Y_JN4XEGRv0P2BxgpuCqgna8MODN1kY3_sIfH2uFO1StsLgwNn6ZJQ.A3ZNRaMysN sXtthGs1dd..ouqjDX_mqfmeGd45hj2xpFUNKwEhFZB_DF2aw3TfulQ4e8sn71o4rnSRzk61ZIKY 5RsNQNYAP4RpZXGlaHCfSpDePTJkKMu9mir4hII4TuYzEAaF6XZ2x0G_WdIeEeXhNEGInw3USz8e 0QqXhd6tiHbV7JRBvHCCd7PZDUr1RXmwyEzs2kefHfIwgHbC2burM_XxKjBu_gaqJdClffOLuV0X vW4YVwKcxoqHmJQoQ9xil9SZPfufrmlWE5n5_n8lHd9ox85hTSPgapDgC9qp2smnB7QJt1BGa0Fa Mhjw0T2VUbwLKMZnwkQd0l6t7VLqzG7W0eo.vluKEl6tXEoMnbFsqoOfkGBzOoCkK1Gzv9OVMeCW 2mjHlvc43fVagS7bBLS6FfBRCZUIwBSet0cxN8t_KrImTcTQLRtHS3IJbo4WTQjS0tpZPoKAErpE vqOPR.1VIF96rWj6vSAfTFN6CI76EeyslSWXLBkFJfJ7NG1bzG1iszvWjM4ZL8gxNQi.0606KcLM oz5CpRx7cYfrhW87.yNq36akIlHt3ZkjtuwbMn1mfFOG.PA_YSBFRfohZDIXxXV_UH_T0NCSCPyp kjsCG_SiTSFUIGORhMQW62Nte4UEk1ON3ek5x.NwTlvKfVpIEk8GP5SrXvZCxmCUXSG17X.T4Fls hfs6cAhq0Uqb_8DNg6M1btIgX2fcE5__ejeBWC5H5Q X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Fri, 18 Nov 2022 07:29:43 +0000 Original-Received: by hermes--production-sg3-6c8895b545-pb7wm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9113a25debeebb3ce43d4e6a66261709; Fri, 18 Nov 2022 07:29:40 +0000 (UTC) In-Reply-To: (xenodasein@tutanota.de's message of "Fri, 18 Nov 2022 07:32:39 +0100 (CET)") X-Mailer: WebService/1.1.20863 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.206; envelope-from=luangruo@yahoo.com; helo=sonic312-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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:300091 Archived-At: xenodasein@tutanota.de writes: > Lookup why functions are considered an improvement over macros. I don't. > As for compiler support, I bet the time spent debugging where there is > support is going to dwarf where isn't, so trade-off is clear. You mean, trading debugging time for runtime? That tradeoff was already made the moment Emacs was written in C, and besides, modern debuginfo formats already support macros.