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 21:45:46 +0100 Message-ID: <581d4068-203f-426a-95ef-2595561c63b0@www.fastmail.com> References: <87y2uh2qyu.fsf@ft.bewatermyfriend.org> <87r2092dxa.fsf@ft.bewatermyfriend.org> <87muaw3i7z.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="69033"; 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 21:47:23 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 1ipehO-000vQa-6y for guile-user@m.gmane.org; Thu, 09 Jan 2020 21:46:35 +0100 Original-Received: from localhost ([::1]:37154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipehM-0001cH-Bt for guile-user@m.gmane.org; Thu, 09 Jan 2020 15:46:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37795) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipegz-0001W2-1p for guile-user@gnu.org; Thu, 09 Jan 2020 15:46:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipegx-0002Io-QD for guile-user@gnu.org; Thu, 09 Jan 2020 15:46:08 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41043) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ipegx-0002CG-Ah for guile-user@gnu.org; Thu, 09 Jan 2020 15:46:07 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A18D721F69; Thu, 9 Jan 2020 15:46:06 -0500 (EST) Original-Received: from imap1 ([10.202.2.51]) by compute1.internal (MEProxy); Thu, 09 Jan 2020 15:46:06 -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=tWXhO RqbQng5TV5VAeexYugMnHlPuN/d0dt3QtBliKo=; b=O4q++YNxATaJqvAnuJoiY k08ObtzWYWbOLdNDZ0SjycGBdNoTbBOq9jgq/VQJdAdAnZx2OB4qcxB2vhcZJnR+ tzvaK1QxFUp4fE1lPsXFJjzV3wCBByCAvlvRUj3r7UnEXrRYfoWh/Uhzuhkn7SbF uHq8KDL1gmPSMeNHcShaYToXhPjWy0Q2WNoj2G16O0jF6XLFb61Qeb1Cm8CV+apj K7wwHVt6mICuQsWqMZoCGBSYegXoEgvaFTPj44F6dmq3Ry4zQb7A+lUf1t5JbEWP cviRdsanjEwYeJXAZ7zBlYnqyQdojpEQn/gpK2OjoXb0BunPqCMsvFfo7nvhFVkU Q== 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=tWXhORqbQng5TV5VAeexYugMnHlPuN/d0dt3QtBli Ko=; b=s2WloNaC0L127cHN2Y8V4Y8iG+SzbNKZnibxtxMkyXrRRpHqOzClIfyC2 EL7QXbM0Htr3XXzWh7WzlutaRx+YQbgedY4FoH0aCbEoxCRHbcsdBWUhO6I3+C8S fpE644iuxsRXqQj8yEnom4lJOGUrR3w03gWiER7ZmzoQ4aikswn/n5FR3heeC8cM jGHaD0VPFtGAoDdp/m4n2FWB2AJVgNr0VrTZK5RSZdPGvJ8h4+NlYdAizXm3ow+3 fDqgr6eNum3b6QvOgAA/VxFRhlsQnDe2GS8d3BBfYO7GeMTOAhcnkh38ylPbtn+h bmA14EJkjaK0FHjUOq0R6KC16sbaA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeiuddguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepnfhi nhhushgpuehjnphrnhhsthgrmhcuoehlihhnuhhsrdhinhhtvghrnhgvthesfhgrshhtmh grihhlrdhsvgeqnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlihhnuhhsrdhinhhtvghr nhgvthesfhgrshhtmhgrihhlrdhsvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 65118C200A4; Thu, 9 Jan 2020 15:46:06 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <87muaw3i7z.fsf@ft.bewatermyfriend.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.28 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:16021 Archived-At: Hey again! I just re-read my message and noticed it could come off as somewhat dism= issive. Ah, the joys of not having English as a first language while bei= ng a tired father :) I looked through your code. It is nicer than mine, but why did you chose= to not just re-export bindings that are available in srfi60? I don't kn= ow the practical implications of not doing so, but I read in another thr= ead of potential cross-module Inlining, and helping that optimization in= every way you can would be a great thing for low level stuff like bit f= iddling :) If you want you can just copy it from my module declaration. You can hav= e it, no attribution required. Or you could just do the renaming in the = #:re-export clause.=20 --=20 Linus Bj=C3=B6rnstam On Thu, 9 Jan 2020, at 13:52, Frank Terbeck wrote: > Linus Bj=C3=B6rnstam wrote: > > Your bitwise-nand etc takes more arguments than they have to. They a= re > > 2-argument procedures according to the spec, which gives you better = performance > > than the apply-dance you are doing now. Maybe have a bitwise-nand an= d a > > bitwise-nand*? >=20 > Yeah, I did that on purpose. The performance argument is probably vali= d, > though. However, I don't want to extend the API. Maybe I'll put in= a > case-lambda there. >=20 > Thanks for taking a look! >=20 >=20 > Regards, Frank > --=20 > In protocol design, perfection has been reached not when there is > nothing left to add, but when there is nothing left to take away. > -- RFC 1925 >