Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Computer programmers do it byte by byte.


devel / comp.lang.misc / NaN codes?

SubjectAuthor
* NaN codes?luserdroog
+- Re: NaN codes?James Harris
`- Re: NaN codes?James Cloos

1
NaN codes?

<2f3cb589-cc73-40d8-9da8-0126298c04b7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1932&group=comp.lang.misc#1932

  copy link   Newsgroups: comp.lang.misc
X-Received: by 2002:a05:620a:1d0a:b0:6fa:f354:93b7 with SMTP id dl10-20020a05620a1d0a00b006faf35493b7mr2638894qkb.511.1667856103021;
Mon, 07 Nov 2022 13:21:43 -0800 (PST)
X-Received: by 2002:a0c:f84b:0:b0:4bb:92b0:3860 with SMTP id
g11-20020a0cf84b000000b004bb92b03860mr47022079qvo.61.1667856102835; Mon, 07
Nov 2022 13:21:42 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.misc
Date: Mon, 7 Nov 2022 13:21:42 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=24.107.184.18; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz
NNTP-Posting-Host: 24.107.184.18
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2f3cb589-cc73-40d8-9da8-0126298c04b7n@googlegroups.com>
Subject: NaN codes?
From: mijoryx@yahoo.com (luserdroog)
Injection-Date: Mon, 07 Nov 2022 21:21:43 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1368
 by: luserdroog - Mon, 7 Nov 2022 21:21 UTC

On a similar tangent to the idea I presented in another thread of re-using the
top byte of a 32bit code containing a Unicode code point in the lower bits,
there is a space of NaN representations in a double that could be overlaid
to store or transport data or control metadata in the same channel.

Under what circumstances would a language implementation wish to
use NaN codes overlaid in IEEE doubles?

Re: NaN codes?

<tkddiq$3ssmo$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1938&group=comp.lang.misc#1938

  copy link   Newsgroups: comp.lang.misc
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: james.harris.1@gmail.com (James Harris)
Newsgroups: comp.lang.misc
Subject: Re: NaN codes?
Date: Tue, 8 Nov 2022 11:12:26 +0000
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <tkddiq$3ssmo$2@dont-email.me>
References: <2f3cb589-cc73-40d8-9da8-0126298c04b7n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Nov 2022 11:12:26 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="54f67e07be8f629246bf1dde3fe2f492";
logging-data="4092632"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lG7T5BnSMeHiRvQQI8SqmoB+TCIHrUCo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:OW8bzTw+rbREGXtu5KCN4pzMkRs=
In-Reply-To: <2f3cb589-cc73-40d8-9da8-0126298c04b7n@googlegroups.com>
Content-Language: en-GB
 by: James Harris - Tue, 8 Nov 2022 11:12 UTC

On 07/11/2022 21:21, luserdroog wrote:

> On a similar tangent to the idea I presented in another thread of re-using the
> top byte of a 32bit code containing a Unicode code point in the lower bits,
> there is a space of NaN representations in a double that could be overlaid
> to store or transport data or control metadata in the same channel.
>
> Under what circumstances would a language implementation wish to
> use NaN codes overlaid in IEEE doubles?

Hard to say. What you suggest sounds a bit like a solution looking for a
problem. It may be better to get everything working with floats and
metadata occupying separate fields and only combine them later as an
optimisation, if you still think it's doable at that time.

--
James Harris

Re: NaN codes?

<m3h6z9mi67.fsf@carbon.jhcloos.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1948&group=comp.lang.misc#1948

  copy link   Newsgroups: comp.lang.misc
Path: i2pn2.org!rocksolid2!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: cloos@jhcloos.com (James Cloos)
Newsgroups: comp.lang.misc
Subject: Re: NaN codes?
Date: Tue, 08 Nov 2022 13:10:08 -0500
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <m3h6z9mi67.fsf@carbon.jhcloos.org>
References: <2f3cb589-cc73-40d8-9da8-0126298c04b7n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="2f4a8f987167ddd0f2aed96a82548048";
logging-data="4172360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EzX9BdQymKOV3COjVOExu"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:r8l6VO39szwhOQG7BNttBZqhnoU=
sha1:yzuqQv6o8u9Sz/HI/GY6KusGW6o=
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3
AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu
QmCC
OpenPGP: 0x997A9F17ED7DAEA6; url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc
Copyright: Copyright 2022 James Cloos
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6
 by: James Cloos - Tue, 8 Nov 2022 18:10 UTC

keep in mind that not all hardware leaves the nan bits alone.

it seems to be more common of late thast they specify that all nan
results are canonical nans. whether signalling or quiet.

that was why R stopped using a specific nan payload to represent its NA
(Not Available) value. and canonical-only has only gotten more common
since then.

-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor