From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.devel Subject: Re: Add internal definitions to derived forms Date: Wed, 9 Nov 2022 16:46:41 +0100 Message-ID: References: <2f38c5ea-0cb6-494e-b680-70b39c3291fb@app.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bf5d5305ed0b9011" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2459"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel@gnu.org To: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Nov 09 16:48:04 2022 Return-path: Envelope-to: guile-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 1osnJ6-0000P4-8S for guile-devel@m.gmane-mx.org; Wed, 09 Nov 2022 16:48:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osnIl-0006bA-SR; Wed, 09 Nov 2022 10:47:44 -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 1osnIN-0006WV-1H for guile-devel@gnu.org; Wed, 09 Nov 2022 10:47:33 -0500 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osnIJ-0004gJ-DC for guile-devel@gnu.org; Wed, 09 Nov 2022 10:47:16 -0500 Original-Received: by mail-ej1-x62a.google.com with SMTP id m22so10583720eji.10 for ; Wed, 09 Nov 2022 07:46:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AO7DeLZCBzGMtfMIZGawmllIkZa8Q81ubHL+Q3bpEN8=; b=fa3tgblJBqdpUOmOQ4SqHl9Kt01uZ7yVkzwYCSwu8vpZ5A4DznME4jegAodzKNMZ+Q W4F7ylS8P9Lfo0zHsvFAuB1q3zV8INB+zpj+eYiQA3/N5z1c8EOXXEPAUBmzHMIKRmyP 8VGZhpqSW0wT4bWpnnYsKi31JL0Y+agft18ydAcQpQM4nCupLML67O7nWk9k6KdWS8LO qDRwcjfgKEr16cyn1vBfVwOgTxjoAtqbJrpF/juiY0kzZxI0u6mW9J93fAZFyJdz4V58 LhbLUs6QHN7OsaYkY6c7pwJt9VkvF9rVZSFX5LxklgecwovzZ51WDk6kNZd/7gqDcXMa r2Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AO7DeLZCBzGMtfMIZGawmllIkZa8Q81ubHL+Q3bpEN8=; b=m+CnGXvH1YOKuOOiy6z03u3tk7/vBcd3rj0d6gSEmAyTMQ9t7IOo820EyeoTwVkAYO Tqw99ebWYQAAqieakXpgNHfq+uIEx0xvCNkKrVcApqdH+ReWk27CEnuUh4h4Hp6BKV4Z NS6vv/g7rAODxczejaW2a8n9KirQioPwcZcoMArbCLYMe45l5wT01w+HrJImg1099WCS nmFItTRnIH3N+Cl0MfuJ1DflBsGt3GsYSNAv6GZ8yGdoE+btnD3rGV73Z2eDiqFBpXHZ 4fe3E9r9OhIge2L3Mh18WQscM9NGdPODVHZ8ZEsrTpn3X0oCh9Qmt3CfOU4hXYh1aaPd rjrQ== X-Gm-Message-State: ACrzQf1GNaQ3+F3jkA8iuO1s7kZu0JHjNiEb4aUQV50zy2adlK1qgzIQ Z06ODqMi+srD/Wm9UnRrL53cLxNNEKblgH2XbBXCViQz X-Google-Smtp-Source: AMsMyM4pkvYiSfPnV4ZtkWo3tj6rOIGJ4cLi5SPE8Zlxgd3H8P/tBUVNyd+H5QiwTE1v9GhpFWedBqEFSr4ZaP+vBxE= X-Received: by 2002:a17:906:11d6:b0:7ad:fd3e:2a01 with SMTP id o22-20020a17090611d600b007adfd3e2a01mr38091464eja.545.1668008812435; Wed, 09 Nov 2022 07:46:52 -0800 (PST) In-Reply-To: <2f38c5ea-0cb6-494e-b680-70b39c3291fb@app.fastmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=damien.mattei@gmail.com; helo=mail-ej1-x62a.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, HTML_MESSAGE=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: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21469 Archived-At: --000000000000bf5d5305ed0b9011 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable thanks,hope it will be in a next stable release of Guile regards, damien On Wed, Nov 9, 2022 at 4:34 PM Linus Bj=C3=B6rnstam wrote: > Hi there! > > This commit adds internal definitions to derived conditional forms, > with-fluids and and-let*. This means the bodies of when, unless and > with-fluids, and the clause bodies of case and cond behave like a lambda > body. > > There is no performance hit since guile optimizes a (let () ...) without > internal definitions to a begin (i.e: no new lexical context is created). > > best regards > Linus Bj=C3=B6rnstam --000000000000bf5d5305ed0b9011 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
tha= nks,hope it will be in a next stable release of Guile
regards,
damien

On Wed, Nov 9, 2022 = at 4:34 PM Linus Bj=C3=B6rnstam <linus.bjornstam@veryfast.biz> wrote:
Hi there!

This commit adds internal definitions to derived conditional forms, with-fl= uids and and-let*. This means the bodies of when, unless and with-fluids, a= nd the clause bodies of case and cond behave like a lambda body.

There is no performance hit since guile optimizes a (let () ...) without in= ternal definitions to a begin (i.e: no new lexical context is created).

best regards
=C2=A0 Linus Bj=C3=B6rnstam
--000000000000bf5d5305ed0b9011--