From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] add SRFI: srfi-121; generators Date: Thu, 21 Jan 2021 13:39:54 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000077499f05b96d664e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10633"; mail-complaints-to="usenet@ciao.gmane.io" Cc: srfi , Mark H Weaver To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Thu Jan 21 19:44:45 2021 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 1l2ewn-0002fU-3W for guile-devel@m.gmane-mx.org; Thu, 21 Jan 2021 19:44:45 +0100 Original-Received: from localhost ([::1]:33744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2ewl-00072h-8u for guile-devel@m.gmane-mx.org; Thu, 21 Jan 2021 13:44:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2esM-0004f4-0P for guile-devel@gnu.org; Thu, 21 Jan 2021 13:40:11 -0500 Original-Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:43584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2esJ-00021F-OR for guile-devel@gnu.org; Thu, 21 Jan 2021 13:40:09 -0500 Original-Received: by mail-qt1-x82b.google.com with SMTP id o18so2264530qtp.10 for ; Thu, 21 Jan 2021 10:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=7LOZ641pAOspJVtjIfu9wxUAf/uYWAACQrAjy1Tv42E=; b=UUe+jsYG1uidqE7qyVXbbNOmphyO16xBcfMWGPF/Qf7+DifFJkW4RuyCg/rSlF72iC 1b5PM8csH3LV43vAjG/ka/rugtSQIPyau4s5Faixx65fMm8/AOQgrZTY2QdmQ3/dz2MB f7FAIGl+Lw/2ZpTb9EnlEcFN73E82PL+fxHxGI1aLOyzANO4nMh8X6nth5NQBRT879aB rH3NvglkGG2Kdy/52O2RwGq3z07HQEK8QBk/HQ26PNyXXJnIiAEYH6YPiqiZHPbAkuIS zKDfXbIzLjC0tzHiG1/SR6ZkrlGcC6P9BhkEiXJi3CpjcrD6aj7oQoecXI/hd0SoLq+4 YuPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=7LOZ641pAOspJVtjIfu9wxUAf/uYWAACQrAjy1Tv42E=; b=YDZ+vGQsxO2WJjyLFc9DeqIwzJnUzqLirxKYbu7dd0z0jSORmR8s0RznLYxnJEcFR7 FB1lWTQYVEPj60s1vNRrKLilnGxrMWsYclnpTCo96iG5Z24Ikwtn63Rq7RdzJo+NgbL9 mcSrfrcmBmI1aRycbdgmALaA+c4YM1DZo3IWpPkaCdTAbywzbsgUmJmtJ70yLI0DdtcM 8eNpsINlyIZlavOYDEhWVnN7cREJLbfR56atAN03GjT7ZNUUBLNhr2h1zedPDnKs+l7q afHL9RUEiLni/326PePQFmHH//eCBTP4xe2ZKK8nBsqUkKxus/OIXbsq/lCOZwq8k+Db nFZQ== X-Gm-Message-State: AOAM530ee4WJcMdeTO0Bsb6umNpqIB2vh/R7tcigBQfF0Hw0AFct4NZm hAo944BivO6FRtyDGp6VlobVKd47S2BtKo0CLuaIE8dezIDc85I3 X-Google-Smtp-Source: ABdhPJw0aNjqX/nTaEjBjGjew2hf3dvYWfDpHpxJvXJTeJGZsYrq/80b/8wNDKxDtQ6Fc9432FeA1D1LYBt0VQNYYSA= X-Received: by 2002:a05:622a:42:: with SMTP id y2mr983167qtw.186.1611254405214; Thu, 21 Jan 2021 10:40:05 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=cowan@ccil.org; helo=mail-qt1-x82b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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.23 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" Xref: news.gmane.io gmane.lisp.guile.devel:20642 Archived-At: --00000000000077499f05b96d664e Content-Type: text/plain; charset="UTF-8" Back in July 2020, Mark Weaver wrote: Also, the provided implementations of 'generator-find', 'generator-any' > and 'generator-every' are incorrect: Shiro Kawai has now fixed these bugs, and they have been merged into SRFI 121. Note that even if it doesn't become part of Guile's batteries-included, the code should still work on Guile as an R6RS library. However, the upward compatible SRFI 158 provides more generator function as well as support for accumulators, the dual of generators. Mark: I'm interested to know if you have a sketch of ideas for a more efficient implementation of SRFI 121/158. You say it requires specific knowledge of Guile internals, but are you willing to sketch how you might do it? Thanks. --00000000000077499f05b96d664e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Back in July 2020, Mark Weaver wrote:
<= div class=3D"gmail_default" style=3D"font-family:times new roman,serif;font= -size:large">
Al= so, the provided implementations of 'generator-find', 'generato= r-any'
and 'generator-every' are incorrect:

Shiro Kawai has now fixed these bugs, = and they have been merged into SRFI 121.=C2=A0 Note that even if it doesn&#= 39;t become part of Guile's batteries-included, the code should still w= ork on Guile as an R6RS library.=C2=A0 However, the upward compatible SRFI = 158 provides more generator function as well as support for accumulators, t= he dual of generators.

Mark: I'm interested to know if you have a sketch of id= eas for a more efficient implementation of SRFI 121/158.=C2=A0 You say it r= equires specific knowledge of Guile internals, but are you willing to sketc= h how you might do it?=C2=A0 Thanks.


--00000000000077499f05b96d664e--