From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.devel Subject: Re: Floating point numbers fitting into SCM object Date: Wed, 13 Nov 2024 13:14:59 +0100 Message-ID: References: <40c0eb68-94ec-5302-0571-16d33f4f17ac@gmail.com> Reply-To: mikael@djurfeldt.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000f7ee30626ca4918" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12666"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "guile-devel@gnu.org" To: =?UTF-8?B?VG9tbWkgSMO2eW7DpGzDpG5tYWE=?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Nov 13 13:15:36 2024 Return-path: Envelope-to: guile-devel@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 1tBCHX-000384-G1 for guile-devel@m.gmane-mx.org; Wed, 13 Nov 2024 13:15:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBCHD-0006os-Lv; Wed, 13 Nov 2024 07:15:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBCHC-0006oE-DS for guile-devel@gnu.org; Wed, 13 Nov 2024 07:15:14 -0500 Original-Received: from mail-vk1-f176.google.com ([209.85.221.176]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBCHA-0000I0-OC for guile-devel@gnu.org; Wed, 13 Nov 2024 07:15:14 -0500 Original-Received: by mail-vk1-f176.google.com with SMTP id 71dfb90a1353d-5139cd002b7so2725863e0c.0 for ; Wed, 13 Nov 2024 04:15:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731500111; x=1732104911; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eT0Kakcbha4/g9yppF8wypY4Ga0sRUBccEkEs+RjpL8=; b=plnHcDiiEFg/OjSnBI77DBNl167gsbaPZrWUpABpICI7K0qoO+/BeJb1qZBFJnntAU 7/cjGsWb/luJahTbVHtPZiKt5k9yaYftRKzhdqoMyqi5/QETkQ4HQtIQJk/Dd1vDZzYP TwME/juOI4NlV7WGdIGrDU56vwMFT5bj95Gtp9wj+Pb2E5Oa8faz3YcjLaTZ37ZYuLE/ BZqV+R8rtlCjagTAgSJYTldc9yM5giLnVQ7HKCSa0m6MT6jXG097XZaZA/QQYmOPWyzj SRvkY24CKdVj3Hi2Dj7uKUCkmR4I3OlwICvkkfZvCZomy1adSeWXp+28MjKDTs42fIDL OZqQ== X-Gm-Message-State: AOJu0YxeMpXiBACbGTvbEEbqkkV6xR3LZAJrKjppNsBtdhPLPXDh51Mb 3yl/VfmwJXY4uPZ2CV8BonKF4gfaJICu9aTlcT0JmlO+fGYE1k9tc1tSxMUy2pxHtdKmYlJT5VH 5IDhJwYaj3xvyLhPElWb+88NGhjHgpw== X-Google-Smtp-Source: AGHT+IFPZIy12KY60a+jsODFoQ25m8xmoq09wWPdgFg0744oeLb2/64P5e2CG2VM5zzhMjnUEH2A47jD08rBpYAKNbs= X-Received: by 2002:a05:6122:8c06:b0:50d:60fa:183e with SMTP id 71dfb90a1353d-51401ebaf5bmr18873489e0c.11.1731500111263; Wed, 13 Nov 2024 04:15:11 -0800 (PST) In-Reply-To: <40c0eb68-94ec-5302-0571-16d33f4f17ac@gmail.com> Received-SPF: pass client-ip=209.85.221.176; envelope-from=mdjurfeldt@gmail.com; helo=mail-vk1-f176.google.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.738, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22771 Archived-At: --0000000000000f7ee30626ca4918 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Tommi, I haven't seen it discussed and don't rule out that it could have some value, if suitable space still exists in the current SCM encoding of types. Personally, though, my hopes are that eventually most actual computation in Guile code would be done unboxed---which is a compilation problem. Best regards, Mikael Den ons 13 nov. 2024 12:38Tommi H=C3=B6yn=C3=A4l=C3=A4nmaa skrev: > Has anyone considered implementing floating point values with e.g. 60 > bits that could fit into an SCM object? They would be more efficient > than double precision numbers and almost as accurate. > > - Tommi H=C3=B6yn=C3=A4l=C3=A4nmaa > > -- > Kotisivu / Homepage: http://www.iki.fi/tohoyn/ > S=C3=A4hk=C3=B6posti / E-Mail: tommi.hoynalanmaa@iki.fi > GPG-sormenj=C3=A4lki / GPG fingerprint: > 55F4 2477 7155 3528 5CB2 2B7A BB86 1FDE 4046 0F83 > FT, Debian-yll=C3=A4pit=C3=A4j=C3=A4 / PhD, Debian Maintainer > > > --0000000000000f7ee30626ca4918 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi Tommi,

I haven't seen it discussed and don't rule out that = it could have some value, if suitable space still exists in the current SCM= encoding of types.

Personally, though, my hopes are that eventually most actual= computation in Guile code would be done unboxed---which is a compilation p= roblem.

Best regards,
Mikael


Den on= s 13 nov. 2024 12:38Tommi H=C3=B6yn=C3=A4l=C3=A4nmaa <tommi.hoynalanmaa@gmail.com> skrev:
=
Has anyone considered implementing flo= ating point values with e.g. 60
bits that could fit into an SCM object? They would be more efficient
than double precision numbers and almost as accurate.

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - Tommi H=C3=B6yn=C3=A4l=C3=A4nmaa

--
Kotisivu / Homepage: http://www.iki.fi/tohoyn/
S=C3=A4hk=C3=B6posti / E-Mail: tommi.hoynalanmaa@iki.fi
GPG-sormenj=C3=A4lki / GPG fingerprint:
55F4 2477 7155 3528 5CB2 2B7A BB86 1FDE 4046 0F83
FT, Debian-yll=C3=A4pit=C3=A4j=C3=A4 / PhD, Debian Maintainer


--0000000000000f7ee30626ca4918--