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: argument threading macros & combinators for guile Date: Thu, 06 Aug 2020 22:50:14 +0200 Message-ID: <2f52fa0a-f8cf-422a-8bdc-112d3e3c8901@www.fastmail.com> References: <1345689091.859703.1596743112863.ref@mail.yahoo.com> <1345689091.859703.1596743112863@mail.yahoo.com> <3b72ed4d-8573-4736-8772-98d90cd3f6d0@www.fastmail.com> 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="1551"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.3.0-143-g3d58b38-fm-20200806.002-g3d58b387 To: "vapnik spaknik" , "guile users mailing list" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Aug 06 22:50:58 2020 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 1k3mqo-0000GF-9q for guile-user@m.gmane-mx.org; Thu, 06 Aug 2020 22:50:58 +0200 Original-Received: from localhost ([::1]:39480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3mqn-0000br-Bz for guile-user@m.gmane-mx.org; Thu, 06 Aug 2020 16:50:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3mqW-0000aE-7f for guile-user@gnu.org; Thu, 06 Aug 2020 16:50:40 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:39641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3mqU-0000Jh-8r for guile-user@gnu.org; Thu, 06 Aug 2020 16:50:39 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D385BD58; Thu, 6 Aug 2020 16:50:36 -0400 (EDT) Original-Received: from imap1 ([10.202.2.51]) by compute4.internal (MEProxy); Thu, 06 Aug 2020 16:50:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.se; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type:content-transfer-encoding; s=fm3; bh=OrTvt HEshwHc1Yzg8z6PpIvdn1t87LedTVLNaL10FT0=; b=Txw3PSsCiVLAs/y/rQ2uy kwNMS3Xlk79bsPt3xpAwwT3EHm/TvrlL/MR/Gv3OQynvo0Sp2+ioeYo4M5zM6B02 bLE46/4tWz9urEcwOprsfcaq1pCfCuna0t2mlKKMe9UlqSdlOL/TFRcaq8qfTAe0 gWecKiiTMvXgyulr5IYpqVeGNehYEdgBBvAFaNHL7yZSCPt7OiJ8Vl8ay1zXRlYp JJteiQ4flzJ5xnJ5/TicT1sSlfF5VVlqa/YXun1jFGtnqzLnsQS0IcXA4/4e8+DQ aoVyfDaPwRr0du8mtbwgKQrNWVDISEz5Z/hGaPVe18eRCgYF0v0cOkDfaKvCXB6P A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=OrTvtHEshwHc1Yzg8z6PpIvdn1t87LedTVLNaL10F T0=; b=ix+xGv0alR0JojXEE9tGx8hJ3NxPMf7Vioc5vSOWm51P58zHZY+gQS5Ml d2RZ21C0zDPv2+oQtkw5b8qu4F/E+DxHVELBG9t+MTHDnhtMNAyfVpu/lY1koJ5z YHuZHJ6LUbQEudB68Iefh56JqiaPesfqcsepN1bNrvbxIPDJCCijZzZF0xY65i4B qo2FSSLkY7eEiJ5ol/Q/++OnukGLb+lMcBbzUCYNgZd8tOmP/jOZboGOVVgyuy3f dycUQGBAFpWoCp0FBDuRYxz65IM7I8YEZ7Mj2c49b+WYfJsAw0yQBVu7ebJAjLtR B3IvvmvVDDsWq1gvFWn3K/hgsa35g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrkedtgdduheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpefnihhn uhhspgeujhpnrhhnshhtrghmuceolhhinhhushdrihhnthgvrhhnvghtsehfrghsthhmrg hilhdrshgvqeenucggtffrrghtthgvrhhnpeeikeekgeduvdehjedtueeluedtkeefgfev hedtfeejkeeihefhffetfeduieeigfenucffohhmrghinhepshhrrdhhthenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlihhnuhhsrdhinhht vghrnhgvthesfhgrshhtmhgrihhlrdhsvg X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 364FEC200A5; Thu, 6 Aug 2020 16:50:36 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <3b72ed4d-8573-4736-8772-98d90cd3f6d0@www.fastmail.com> Received-SPF: pass client-ip=64.147.123.24; envelope-from=linus.internet@fastmail.se; helo=wout1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/06 15:08:45 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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:16783 Archived-At: I forgot to say, that is a trivial fix! Just import the bindings from sr= fi 26 and re-export them. This code can also be used to implement the new srfibchaij macro, althou= gh a syntax-case one would be about two billion times shorter (and faste= r).=20 --=20 Linus Bj=C3=B6rnstam On Thu, 6 Aug 2020, at 22:43, Linus Bj=C3=B6rnstam wrote: > I have some old ones over here: https://hg.sr.ht/~bjoli/guile-threadin= g-macros >=20 > They are written using syntax-rules and I am not sure how well they=20= > combine with srfi-26. If srfi 26 exports auxiliary syntax, you won't b= e=20 > able to combine them since that syntax will shadow the unbound syntax=20= > <> and <...> used by my macros. >=20 >=20 > Other than that, we have a srfi called chain that might be finalized=20= > soon. That must be srfi 190-something. >=20 > --=20 > Linus Bj=C3=B6rnstam >=20 > On Thu, 6 Aug 2020, at 21:45, vapnik spaknik wrote: > > Hi, > > does anyone know of guile modules containing argument threading=20= > > macros & combinators, e.g. similar to dash.el & dash-functional.el f= or=20 > > elisp? > >=20 > > Joe.=20 > >=20 > > >=20 >