From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Newsgroups: gmane.lisp.guile.user Subject: Re: SRFI-151 (Bitwise Operations) Implementation Date: Thu, 09 Jan 2020 13:13:20 +0100 Message-ID: References: <87y2uh2qyu.fsf@ft.bewatermyfriend.org> <87r2092dxa.fsf@ft.bewatermyfriend.org> Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="239556"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Cyrus-JMAP/3.1.7-740-g7d9d84e-fmstable-20200109v1 Cc: guile-user@gnu.org To: "Frank Terbeck" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jan 09 13:15:52 2020 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipWhe-0002nA-N3 for guile-user@m.gmane.org; Thu, 09 Jan 2020 13:14:19 +0100 Original-Received: from localhost ([::1]:59274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipWhd-0007tS-Hp for guile-user@m.gmane.org; Thu, 09 Jan 2020 07:14:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54620) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipWhB-0007qV-GU for guile-user@gnu.org; Thu, 09 Jan 2020 07:13:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipWhA-0004lT-E7 for guile-user@gnu.org; Thu, 09 Jan 2020 07:13:49 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:41719) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ipWh9-0004W5-R3 for guile-user@gnu.org; Thu, 09 Jan 2020 07:13:48 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id A41A3750; Thu, 9 Jan 2020 07:13:42 -0500 (EST) Original-Received: from imap1 ([10.202.2.51]) by compute1.internal (MEProxy); Thu, 09 Jan 2020 07:13:42 -0500 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:cc :subject:content-type:content-transfer-encoding; s=fm2; bh=KxGOl fuird9bb52ZLuOIWl7EBTHhts7YmQXW9d2/lRk=; b=X295v1SFdj9aY9JYfp602 2ey+im6YIJ/eCpqPLZdJwyUKn9FUz37RrBtIrXTSIrMzY1Xh92Gds8vIYcTOgkXL 2QtGPHaYCCh82C3mJAEwBifr9dgoKIb3z8fE0ULX/u3yWzDw5LTr7SdjXly2rN3y F0Qk2NpbS/uQAjntbnA+brrj9XY7va9O6JHK7ZHYzjDS00Ik5H4uGMK97UIEBDF+ AAQXWpJ06GxbGIYuPubh/I3ZMxCwJw3T697a52QzLsy1nL6lcpjqikouJikdF4gL NTnM+jGNoi25d8/amBR1WZ9tfKRL7r3EjXBE7LmBVkM2TvQ6LuM0uwLoXnAyGuU2 A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=KxGOlfuird9bb52ZLuOIWl7EBTHhts7YmQXW9d2/l Rk=; b=q3N864YjRK950K0/RION6xF8q2yGL7H5b3CBE6snBBBsR1T9YtN3/yEac uw15U3zzfU0QKWKD45lWe/72kJfbFRxYulJyf7UF4vYjJtxMNoa0awVEHmL58qN2 wJdBcM53wjN9U7J/IWeDuKFZ3TQrw1B3lnMyB8HVarD9hsSyKt5kKcD/Tf65Guqi pCsn+bWrMVUvHKRxSZnfPHF7rVBjdqL82xcmkIwLviFIMyzHoFCdBGQxSG9l1HJ9 VpOSNjLsZeQ2stJcD890xwvtIjQsxe4ieNBljMcsS6enNFCmFiArgSsIVEiD2Liv 5dJrL1U3zs7ZldRfTiq9yD/1xj21w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeiuddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpefnihhn uhhspgeujhpnrhhnshhtrghmuceolhhinhhushdrihhnthgvrhhnvghtsehfrghsthhmrg hilhdrshgvqeenucfrrghrrghmpehmrghilhhfrhhomheplhhinhhushdrihhnthgvrhhn vghtsehfrghsthhmrghilhdrshgvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id DAEF7C200A4; Thu, 9 Jan 2020 07:13:41 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <87r2092dxa.fsf@ft.bewatermyfriend.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.21 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.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:16017 Archived-At: Your bitwise-nand etc takes more arguments than they have to. They are 2= -argument procedures according to the spec, which gives you better perfo= rmance than the apply-dance you are doing now. Maybe have a bitwise-nand= and a bitwise-nand*? --=20 Linus Bj=C3=B6rnstam On Thu, 9 Jan 2020, at 10:10, Frank Terbeck wrote: > Hi Linus! >=20 > Linus Bj=C3=B6rnstam wrote: > > I have a port of the SRFI code as well, using renaming of guile and = srfi-60 > > procedures as necessary. >=20 > I see! I did mine from scratch, while reading the spec. >=20 >=20 > > It has the make-bitwise-generator from srfi-151. >=20 > Interesting. I thought the generators were part of some disjoint typ= e. > After seeing the iterator you implemented, I actually took a look = at > SRFI-121 and indeed: =E2=80=9CThey are just procedures that conform to= a calling > convention, so you can construct a generator with lambda.=E2=80=9D >=20 > I guess I'll do the same for now! Thanks for letting me know. :) >=20 >=20 > Regards, Frank >