From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: recursion to iteration macro Date: Sat, 23 Mar 2024 11:30:20 +0100 Message-ID: References: <871q813mgg.fsf@dataswamp.org> <87le69e812.fsf@posteo.net> <87h6gx1cdb.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OBy5e/LJlSjZXiWE" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38982"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 23 11:31:12 2024 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 1rnyee-0009yz-S9 for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Mar 2024 11:31:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnydy-0005v1-Fy; Sat, 23 Mar 2024 06:30:31 -0400 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 1rnydv-0005sn-0J for emacs-devel@gnu.org; Sat, 23 Mar 2024 06:30:28 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnydt-0007HK-24 for emacs-devel@gnu.org; Sat, 23 Mar 2024 06:30:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc: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=JMpkLsZ1AnYCT6j8Sv3a97YzUA6rLFNkI2dGK1WcBOM=; b=lIvMeN93Bd5Q1PzF1d/6s+7ZQ9 af9Lr4stLrFSCGYjsfKeSyLlORZKTXOWDrBslLf/TLXtajiJAe70e/NDdzfR/Xn53otVHEAYMMJdA RXSm8GwfqzZlzTLcnAJIVrbHjd1iTxHiNPaG5Vo5K0WgB+As1t5wmqNHBn9it/ks4rHvJLzJJZFlG 5rIl7Dml4wWhlt66Fh4iPJN/CpH1puJSECThuPMuYU3+xZ6uZztGumRchtil0T+Bgjt6UP4AaKkit FyO/XuqA2czpw6C8vOKtGld3xpVxz4LPpUgznDzMnI6F4TFHJFhJtPJD7+CcEpWFDetSET98GAuBd WsmDvxcQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1rnydo-000212-7I for emacs-devel@gnu.org; Sat, 23 Mar 2024 11:30:20 +0100 Content-Disposition: inline In-Reply-To: <87h6gx1cdb.fsf@dataswamp.org> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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:317246 Archived-At: --OBy5e/LJlSjZXiWE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 23, 2024 at 11:17:04AM +0100, Emanuel Berg wrote: > Philip Kaludercic wrote: >=20 > > At least for tail-call recursion, named-let will turn > > recursive code into iterative code. > > > > But generally speaking, if you need to accumulate data on > > the stack, then it becomes a lot more difficult. >=20 > Why is that so difficult, isn't a stack just a list with > `push' and `pop'? Only usually *much* more efficient. Cheers --=20 t --OBy5e/LJlSjZXiWE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZf6vNQAKCRAFyCz1etHa RlveAJ0ajt1oM52vRPp/KU58JbhnnB6E5ACcCv2VtnSRXaSy2NPG2Hh/wM4i7Q0= =wvty -----END PGP SIGNATURE----- --OBy5e/LJlSjZXiWE--