From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Newsgroups: gmane.lisp.guile.user Subject: Re: [ANN] Guile SRFI-146 0.1.0 released (purely functional data structures) Date: Sat, 13 Aug 2022 13:00:42 +0200 Message-ID: <4ed76087-a17f-46b5-a4fc-ea0c296c9354@www.fastmail.com> References: <8635e7869h.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4823"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a To: pukkamustard , "Guile User" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Aug 13 13:02:20 2022 Return-path: Envelope-to: guile-user@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 1oMouG-0000zE-1S for guile-user@m.gmane-mx.org; Sat, 13 Aug 2022 13:02:18 +0200 Original-Received: from localhost ([::1]:53960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMouE-0002ys-UP for guile-user@m.gmane-mx.org; Sat, 13 Aug 2022 07:02:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMotE-0002yj-Rv for guile-user@gnu.org; Sat, 13 Aug 2022 07:01:13 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:55179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMotC-0006Aq-Mi for guile-user@gnu.org; Sat, 13 Aug 2022 07:01:12 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6B028320090B; Sat, 13 Aug 2022 07:01:05 -0400 (EDT) Original-Received: from imap51 ([10.202.2.101]) by compute4.internal (MEProxy); Sat, 13 Aug 2022 07:01:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.se; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1660388464; x= 1660474864; bh=Cn6A8SgWVW8VQ4A1+r6H2PjkQVMizEryHL0f8JvNcjg=; b=o ZhEMvdnLwbKE0IA/IXFBKalM5j0Ug2V+5D/IG+3rtgGwJK1lX1vCj2lzxvP4jE+h db3Yy2EH9o3Uo9splTgkoOISXhfB5Eter5qQMdglkBf6x6ICBTVpAAWYaGmHM3/u zPK/KOPS8RoacIEoZ1p1SbGHCqjGb04AbVK/GBJT91wSEhxStD6yehM2NmXBYgSH 95F/JvqHWzKlHwLk0yA7GZvCKNF0jbzx4vrn1cLhlXNjibkOuafcRR0t9lPrG257 2+xDCFK2K3GyEmzlMIQ9RbqPvkFhF9XJo5TqxECZu8pNCrp7WQflp6WCIn1euP1S ioThNXcCtZEKRLcYvr5Lw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1660388464; x=1660474864; bh=C n6A8SgWVW8VQ4A1+r6H2PjkQVMizEryHL0f8JvNcjg=; b=gxgOYZ315ASRMjL+a O8AheEvp8KUtioRJ00rglc7ApYVUxxeI4m/OuAH1bnnhhjcGW4TTbSITZikLgBTx 7mSBsY3AY0cdMdUL9+k51/Antmspc889Jdpew4mHEN86q9IT84+q5Wpw/OiHe+lg 9RI5VdWtrw4ulavQmbq+kcAXU4YUudugT9vND6K1F8z/dHJHkEsQoroXcNqpa2PJ j7IR3YG5eAuIl+uXIlt6n6gwh4GBCLmbEc5rUehUP9DjXm04HyLsRDPjAc/OIlip A34n7Py1Y7wQbrED5vaCY9j/Gt20MhtAnDy8WVQxxcf4N8u+/6BiNivYyqUAJU7D msC1w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdegkedgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpefnihhn uhhspgeujhpnrhhnshhtrghmuceolhhinhhushdrihhnthgvrhhnvghtsehfrghsthhmrg hilhdrshgvqeenucggtffrrghtthgvrhhnpeelgeeftdeileeiteduheetudfhffdugeeg feetveeitdeivefgteeugedvfeefgeenucffohhmrghinhepshhrrdhhthdpihhnqhhlrg gsrdhnvghtpdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheplhhinhhushdrihhnthgvrhhnvghtsehfrghsthhmrghilhdrsh gv X-ME-Proxy: Feedback-ID: i57f3436d:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8B09AB6007B; Sat, 13 Aug 2022 07:01:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <8635e7869h.fsf@posteo.net> Received-SPF: pass client-ip=64.147.123.20; envelope-from=linus.internet@fastmail.se; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18521 Archived-At: I remember that Amirouche tried to port this to guile and didn't pass al= l the SRFI test when using call/ec. He also used my make-coroutine-gener= ator that used delimited continuations. If you have the time to try it out, many operations could probably gain = some Speed by using a coroutine-generator like this: https://git.sr.ht/~= bjoli/awesome-coroutine-generators/tree/master/item/awesome-coroutine-ge= nerators/base.scm#L64 (where %tag and the generator-end object are repla= ced to make it compatible with srfi-128 and self-contained). --=20 Linus Bj=C3=B6rnstam On Mon, 8 Aug 2022, at 10:38, pukkamustard wrote: > Hello Guilers, > > I'm pleased to announce Guile SRFI-146 0.1.0: > https://inqlab.net/git/guile-srfi-146.git/tag/?h=3Dv0.1.0 > > Guile SRFI 146 provides bindings to SRFI 146 (Mappings). SRFI 146 > provides two purely functional mapping data structures: One that uses = an > ordering of keys and another that uses a hash on keys. The > implementations use red-black trees and hash array mapped tries (HAMT). > > The library re-uses the SRFI sample implementation with some minor Gui= le > specific fixes and optimiztions. The SRFI test suite has also been > ported. > > The package has been submitted to Guix so you should be able to start > some purely functional hacking very soon > (https://issues.guix.gnu.org/57055). > > Bug reports, fixes and patches are very welcome. > > Best regards, > pukkamustard