From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.devel Subject: Re: Immediate doubles (up to 2^256) and rationals coming to Guile 3 Date: Thu, 6 Jun 2019 22:09:03 +0200 Message-ID: <20190606200903.GA27080@tuxteam.de> References: <87zhmvaw5p.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="192540"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jun 06 22:12:22 2019 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.47]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hYykH-000nrc-Vo for guile-devel@m.gmane.org; Thu, 06 Jun 2019 22:12:22 +0200 Original-Received: from localhost ([::1]:33082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hYykB-0003Ai-Sh for guile-devel@m.gmane.org; Thu, 06 Jun 2019 16:12:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38445) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hYyk6-00036X-VN for guile-devel@gnu.org; Thu, 06 Jun 2019 16:12:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYyhC-0003cu-95 for guile-devel@gnu.org; Thu, 06 Jun 2019 16:09:12 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:59940) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hYyhB-0003Nw-PQ for guile-devel@gnu.org; Thu, 06 Jun 2019 16:09:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=NqnBRq+v3fapKPf9OHJzyBApPxlJBY9ZPsguftjDBFA=; b=Ydmc8i03YzRsqV1Mb12Y0W0nr4ENGTzXYvWue+B0S9DsVfV/X3VpmEugL5RNldYU8W2TNau0uE1WmPxTTmCiX1omgyGmlsxvpfVP+/P4FCjUy7BKSKQyU2FF+Gz7TRFQsmZMeSbnhqVbGh/g8wtvjX6ykSv/Q8prcoaLCOdM2+B60DlV20QtD3z3wXBY9im9v3kUGjyAOoH3jNatC7v7OeKcONBcLniRL8rhhOIG+wPtwJfh05t/Ib5LFBWHKfqHi5B2T7BzCpxu32g5dtQ/FERiaUIEuqdR/ljrytgXM578WrTBO8C0GS/kLNWm7N2i/DT2jEhsBgImBaYomRhuAA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1hYyh5-000741-2S for guile-devel@gnu.org; Thu, 06 Jun 2019 22:09:03 +0200 Content-Disposition: inline In-Reply-To: <87zhmvaw5p.fsf@netris.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 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.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19947 Archived-At: --SUOF0GtieIMvvwua Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Thu, Jun 06, 2019 at 05:40:39AM -0400, Mark H Weaver wrote: > I've found a way to efficiently support both immediate IEEE binary-64 > doubles up to ~1.158e77 (with larger ones transparently allocated on the > heap), and also immediate exact rationals with up to 54 binary digits > (~16 decimal digits), without restricting the 64-bit pointer space at > all, and without any loss of arithmetic precision. [...] Impressive bitfiddling feat. Thanks for the enjoyable explanation, too! Cheers -- t --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlz5ct4ACgkQBcgs9XrR2kZqBwCfWZDgVlvaChYIkEQsVveQ9qrT 53MAnjbPjfSOfUaec4RMkED4i491o2Ii =eJud -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--