Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Almost nothing in Perl serves a single purpose. -- Larry Wall in <199712040054.QAA13811@wall.org>


devel / comp.lang.awk / Re: Retrieving limits in GNU Awk

SubjectAuthor
* Re: Retrieving limits in GNU AwkKpop 2GM
`* Re: Retrieving limits in GNU AwkJanis Papanagnou
 `- Re: Retrieving limits in GNU AwkKpop 2GM

1
Re: Retrieving limits in GNU Awk

<83bb0518-e8f7-4f36-b28e-ffe97d65613cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.awk
X-Received: by 2002:a05:622a:1051:b0:2e1:eb06:ecc2 with SMTP id f17-20020a05622a105100b002e1eb06ecc2mr25093939qte.171.1648516810790;
Mon, 28 Mar 2022 18:20:10 -0700 (PDT)
X-Received: by 2002:a81:5842:0:b0:2e6:b1e8:5f22 with SMTP id
m63-20020a815842000000b002e6b1e85f22mr27835649ywb.171.1648516810625; Mon, 28
Mar 2022 18:20:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.awk
Date: Mon, 28 Mar 2022 18:20:10 -0700 (PDT)
In-Reply-To: <ru53qk$g4i$1@news-1.m-online.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:7000:3c3d:41c0:0:0:0:3c3;
posting-account=n74spgoAAAAZZyBGGjbj9G0N4Q659lEi
NNTP-Posting-Host: 2603:7000:3c3d:41c0:0:0:0:3c3
References: <ru0som$95t$1@news-1.m-online.net> <20210117093349.74@kylheku.com>
<ru3knc$2k3$1@news-1.m-online.net> <ru4nbg$iqu$1@gioia.aioe.org>
<ru4nvb$ckj$1@news-1.m-online.net> <ru4ofl$cq1$1@news-1.m-online.net>
<20210118121659.596@kylheku.com> <ru53qk$g4i$1@news-1.m-online.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <83bb0518-e8f7-4f36-b28e-ffe97d65613cn@googlegroups.com>
Subject: Re: Retrieving limits in GNU Awk
From: jason.cy.kwan@gmail.com (Kpop 2GM)
Injection-Date: Tue, 29 Mar 2022 01:20:10 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: Kpop 2GM - Tue, 29 Mar 2022 01:20 UTC

@Janus :

isn't that PROCINFO prec-max thing for MPFR-only max prec ?

gawk-with-GMP's max exponent is approximately 2^36/37 ?

used to be +/- 2^30 i guess they upped it

Re: Retrieving limits in GNU Awk

<t26dc7$h7u$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: Retrieving limits in GNU Awk
Date: Fri, 1 Apr 2022 10:33:11 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <t26dc7$h7u$2@dont-email.me>
References: <ru0som$95t$1@news-1.m-online.net> <20210117093349.74@kylheku.com>
<ru3knc$2k3$1@news-1.m-online.net> <ru4nbg$iqu$1@gioia.aioe.org>
<ru4nvb$ckj$1@news-1.m-online.net> <ru4ofl$cq1$1@news-1.m-online.net>
<20210118121659.596@kylheku.com> <ru53qk$g4i$1@news-1.m-online.net>
<83bb0518-e8f7-4f36-b28e-ffe97d65613cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 1 Apr 2022 08:33:11 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="484dc73edc6c8f7df2f4bf29fec260b0";
logging-data="17662"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18snpb6GCY76vWrEgczJPgv"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:0j0zcLaw7GA+EtlPcEwmjEvwfIA=
In-Reply-To: <83bb0518-e8f7-4f36-b28e-ffe97d65613cn@googlegroups.com>
 by: Janis Papanagnou - Fri, 1 Apr 2022 08:33 UTC

On 29.03.2022 03:20, Kpop 2GM wrote:
> @Janus :
>
> isn't that PROCINFO prec-max thing for MPFR-only max prec ?
>
> gawk-with-GMP's max exponent is approximately 2^36/37 ?
>
> used to be +/- 2^30 i guess they upped it
>
>

You're replying to an old Usenet post and without context I cannot
see to what you were actually referring to and what concrete issue
your reply is supposed to address.

Janis

Re: Retrieving limits in GNU Awk

<216470af-9ed3-4582-8663-9eced1f1972en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.awk
X-Received: by 2002:a05:620a:d87:b0:67b:311c:ecbd with SMTP id q7-20020a05620a0d8700b0067b311cecbdmr6551280qkl.146.1649852113969;
Wed, 13 Apr 2022 05:15:13 -0700 (PDT)
X-Received: by 2002:a81:89:0:b0:2eb:f118:291b with SMTP id 131-20020a810089000000b002ebf118291bmr18938078ywa.84.1649852113771;
Wed, 13 Apr 2022 05:15:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.awk
Date: Wed, 13 Apr 2022 05:15:13 -0700 (PDT)
In-Reply-To: <t26dc7$h7u$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:7000:3c3d:41c0:0:0:0:3c3;
posting-account=n74spgoAAAAZZyBGGjbj9G0N4Q659lEi
NNTP-Posting-Host: 2603:7000:3c3d:41c0:0:0:0:3c3
References: <ru0som$95t$1@news-1.m-online.net> <20210117093349.74@kylheku.com>
<ru3knc$2k3$1@news-1.m-online.net> <ru4nbg$iqu$1@gioia.aioe.org>
<ru4nvb$ckj$1@news-1.m-online.net> <ru4ofl$cq1$1@news-1.m-online.net>
<20210118121659.596@kylheku.com> <ru53qk$g4i$1@news-1.m-online.net>
<83bb0518-e8f7-4f36-b28e-ffe97d65613cn@googlegroups.com> <t26dc7$h7u$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <216470af-9ed3-4582-8663-9eced1f1972en@googlegroups.com>
Subject: Re: Retrieving limits in GNU Awk
From: jason.cy.kwan@gmail.com (Kpop 2GM)
Injection-Date: Wed, 13 Apr 2022 12:15:13 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 45
 by: Kpop 2GM - Wed, 13 Apr 2022 12:15 UTC

On Friday, April 1, 2022 at 4:33:13 AM UTC-4, Janis Papanagnou wrote:
> On 29.03.2022 03:20, Kpop 2GM wrote:
> > @Janus :
> >
> > isn't that PROCINFO prec-max thing for MPFR-only max prec ?
> >
> > gawk-with-GMP's max exponent is approximately 2^36/37 ?
> >
> > used to be +/- 2^30 i guess they upped it
> >
> >
> You're replying to an old Usenet post and without context I cannot
> see to what you were actually referring to and what concrete issue
> your reply is supposed to address.
>
> Janis

No I actually read the thread first.

you wanna operate on them ? sure :

gawk -nMbe '{ print PROCINFO["prec_max"]-1 }'
9223372036854775807

As for shifting, there's no inconsistency - you're still only getting double-mantissa worth of precision.

% gawk -Mnbe '{ print PROCINFO["prec_max"]-1; print sprintf("%.16X",or(7223372068549377581,1999)) }' <<<'';
% gawk -be '{ print sprintf("%.16X",or(7223372068549377581,0)) }' <<<''
% gawk -be '{ print PROCINFO["prec_max"]-1; print sprintf("%.16X",or(7223372068549377581,1999)) }' <<<''

9223372036854775807
643E92A0125D 3FEF
643E92A0125D 4000
001E92A0125D 47CF
9223372036854775808

1999 contributes the 7CF. bit-wise OR function took the best 52-bits of each input, OR them in a 64-bit fashion, then give you the lower 1+52 in the end.

print sprintf("%.16X",lshift(7223372068549377581,0)) }' <<<''
643E92A0125D4000

Same with shifting - the precision is already lost even upon input, before any shifting occurs. You're just shifting those same 52-bits.

prec_min of 2 ?

if it's less than 2, then what exactly do you want to do with a 1-bit wide exponent, especially when considering it still needs to reserve space for NaN and InF.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor