Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A formal parsing algorithm should not always be used. -- D. Gries


devel / comp.lang.ada / Re: Not good for Ada endorsement

SubjectAuthor
* Not good for Ada endorsementRichard Iswara
+* Re: Not good for Ada endorsementLuke A. Guest
|`* Re: Not good for Ada endorsementDoctor Who
| `* Re: Not good for Ada endorsementSimon Wright
|  `* Re: Not good for Ada endorsementDoctor Who
|   +- Re: Not good for Ada endorsementLuke A. Guest
|   `* Re: Not good for Ada endorsementRichard Iswara
|    `* Re: Not good for Ada endorsementJeffrey R. Carter
|     +- Re: Not good for Ada endorsementDmitry A. Kazakov
|     +- Re: Not good for Ada endorsementLuke A. Guest
|     `* Re: Not good for Ada endorsementJeffrey R. Carter
|      `* Re: Not good for Ada endorsementLuke A. Guest
|       `* Re: Not good for Ada endorsementJeffrey R. Carter
|        `* Re: Not good for Ada endorsementLuke A. Guest
|         +* Re: Not good for Ada endorsementLuke A. Guest
|         |`- Re: Not good for Ada endorsementLuke A. Guest
|         +* Re: Not good for Ada endorsementLuke A. Guest
|         |`- Re: Not good for Ada endorsementRichard Iswara
|         +* Re: Not good for Ada endorsementPaul Rubin
|         |`- Re: Not good for Ada endorsementEgil H H
|         `* Re: Not good for Ada endorsementEgil H H
|          `* Re: Not good for Ada endorsementJeffrey R. Carter
|           `* Re: Not good for Ada endorsementJeffrey R. Carter
|            `* Re: Not good for Ada endorsementLucretia
|             `* Re: Not good for Ada endorsementJeffrey R. Carter
|              +* Re: Not good for Ada endorsementAnh Vo
|              |+* Re: Not good for Ada endorsementLucretia
|              ||+- Re: Not good for Ada endorsementSimon Wright
|              ||`* Re: Not good for Ada endorsementSimon Wright
|              || `- Re: Not good for Ada endorsementLuke A. Guest
|              |`* Re: Not good for Ada endorsementAnh Vo
|              | `- Re: Not good for Ada endorsementLuke A. Guest
|              `* Re: Not good for Ada endorsementLucretia
|               +- Re: Not good for Ada endorsementDmitry A. Kazakov
|               `- Re: Not good for Ada endorsementJeffrey R. Carter
+- Re: Not good for Ada endorsementDennis Lee Bieber
`* Re: Not good for Ada endorsementMace Ayres
 `- Re: Not good for Ada endorsementPaul Rubin

Pages:12
Re: Not good for Ada endorsement

<scplrl$npm$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5571&group=comp.lang.ada#5571

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.not.acm.org (Jeffrey R. Carter)
Newsgroups: comp.lang.ada
Subject: Re: Not good for Ada endorsement
Date: Thu, 15 Jul 2021 17:56:31 +0200
Organization: Also freenews.netfront.net; news.tornevall.net;
news.eternal-september.org
Lines: 18
Message-ID: <scplrl$npm$1@dont-email.me>
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org> <e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org> <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com>
<sc6cgh$9vu$1@dont-email.me> <sc6kqh$1sj$1@dont-email.me>
<sc6lba$1vma$1@gioia.aioe.org> <sc6mit$ddv$1@dont-email.me>
<sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com>
<sc9458$2rq$1@dont-email.me> <sc94dv$2rq$2@dont-email.me>
<0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 15 Jul 2021 15:56:38 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="05d073167f8af91634ee01bea1feaa70";
logging-data="24374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Dn523aQYBKL10WIZ5HUUpM0zqOKRzX64="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:bGII1Cj3LmdlJnXywLqYjx47kE8=
In-Reply-To: <0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
Content-Language: en-US
 by: Jeffrey R. Carter - Thu, 15 Jul 2021 15:56 UTC

On 7/15/21 5:13 PM, Lucretia wrote:
>
> I managed to get just under 4000 passes with a 1 bit array, but not using Ada's packed array. That's actually the slowest method, strangely.

So you have an array of a modular type, calculate an index and bit within it,
mask out that bit, and compare it to zero? I would have thought an unpacked
array of Boolean would be fastest.

A packed array of Boolean requires all the operations above, plus shifting the
bit to the LSB and treating the result as a Boolean, so it may not be that
surprising that it's slower.

--
Jeff Carter
"How'd you like to hide the egg and gurgitate
a few saucers of mocha java?"
Never Give a Sucker an Even Break
101

Re: Not good for Ada endorsement

<73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5572&group=comp.lang.ada#5572

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:4741:: with SMTP id k1mr4776203qtp.374.1626366591198;
Thu, 15 Jul 2021 09:29:51 -0700 (PDT)
X-Received: by 2002:a25:ac9a:: with SMTP id x26mr6832014ybi.161.1626366591004;
Thu, 15 Jul 2021 09:29:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Thu, 15 Jul 2021 09:29:50 -0700 (PDT)
In-Reply-To: <scplrl$npm$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=149.32.224.40; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6
NNTP-Posting-Host: 149.32.224.40
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org> <e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org> <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com> <sc6cgh$9vu$1@dont-email.me>
<sc6kqh$1sj$1@dont-email.me> <sc6lba$1vma$1@gioia.aioe.org>
<sc6mit$ddv$1@dont-email.me> <sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com> <sc9458$2rq$1@dont-email.me>
<sc94dv$2rq$2@dont-email.me> <0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
<scplrl$npm$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>
Subject: Re: Not good for Ada endorsement
From: anhvofrc...@gmail.com (Anh Vo)
Injection-Date: Thu, 15 Jul 2021 16:29:51 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Anh Vo - Thu, 15 Jul 2021 16:29 UTC

On Thursday, July 15, 2021 at 8:56:40 AM UTC-7, Jeffrey R. Carter wrote:
> On 7/15/21 5:13 PM, Lucretia wrote:
> >
> > I managed to get just under 4000 passes with a 1 bit array, but not using Ada's packed array. That's actually the slowest method, strangely.
> So you have an array of a modular type, calculate an index and bit within it,
> mask out that bit, and compare it to zero? I would have thought an unpacked
> array of Boolean would be fastest.
>
> A packed array of Boolean requires all the operations above, plus shifting the
> bit to the LSB and treating the result as a Boolean, so it may not be that
> surprising that it's slower.

Should fixed lower bound index array (-gnatX) speed it up?

Anh Vo

Re: Not good for Ada endorsement

<59c3fb8e-6866-4ea9-a1a2-21fdff252095n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5573&group=comp.lang.ada#5573

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:5f83:: with SMTP id j3mr4761682qta.149.1626366591845; Thu, 15 Jul 2021 09:29:51 -0700 (PDT)
X-Received: by 2002:a25:690e:: with SMTP id e14mr6404334ybc.277.1626366591655; Thu, 15 Jul 2021 09:29:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!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.ada
Date: Thu, 15 Jul 2021 09:29:51 -0700 (PDT)
In-Reply-To: <scplrl$npm$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=86.28.147.129; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS
NNTP-Posting-Host: 86.28.147.129
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com> <sc4fuo$8vn$1@gioia.aioe.org> <e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com> <ly8s2iorpl.fsf@pushface.org> <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com> <a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com> <sc6cgh$9vu$1@dont-email.me> <sc6kqh$1sj$1@dont-email.me> <sc6lba$1vma$1@gioia.aioe.org> <sc6mit$ddv$1@dont-email.me> <sc7d65$1kcq$1@gioia.aioe.org> <d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com> <sc9458$2rq$1@dont-email.me> <sc94dv$2rq$2@dont-email.me> <0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com> <scplrl$npm$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <59c3fb8e-6866-4ea9-a1a2-21fdff252095n@googlegroups.com>
Subject: Re: Not good for Ada endorsement
From: laguest9...@googlemail.com (Lucretia)
Injection-Date: Thu, 15 Jul 2021 16:29:51 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 17
 by: Lucretia - Thu, 15 Jul 2021 16:29 UTC

On Thursday, 15 July 2021 at 16:56:40 UTC+1, Jeffrey R. Carter wrote:
> On 7/15/21 5:13 PM, Lucretia wrote:
> >
> > I managed to get just under 4000 passes with a 1 bit array, but not using Ada's packed array. That's actually the slowest method, strangely.
> So you have an array of a modular type, calculate an index and bit within it,
> mask out that bit, and compare it to zero? I would have thought an unpacked
> array of Boolean would be fastest.

Doesn't seem to be. Also, the guy is using the packed bit as the final test of all the languages.

> A packed array of Boolean requires all the operations above, plus shifting the
> bit to the LSB and treating the result as a Boolean, so it may not be that

Don't need to shift to the LSB, only need to shift the 1 to the bit location you want to test, invert and then check against 0.

> surprising that it's slower.

I know. I would've thought the compiler would've handled the packed array as a special case and optimised as much as possible there.

Re: Not good for Ada endorsement

<scpou0$17gh$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5574&group=comp.lang.ada#5574

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org.POSTED!not-for-mail
From: mail...@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: Not good for Ada endorsement
Date: Thu, 15 Jul 2021 18:49:07 +0200
Organization: Aioe.org NNTP Server
Lines: 35
Message-ID: <scpou0$17gh$1@gioia.aioe.org>
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org> <e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org> <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com>
<sc6cgh$9vu$1@dont-email.me> <sc6kqh$1sj$1@dont-email.me>
<sc6lba$1vma$1@gioia.aioe.org> <sc6mit$ddv$1@dont-email.me>
<sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com>
<sc9458$2rq$1@dont-email.me> <sc94dv$2rq$2@dont-email.me>
<0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
<scplrl$npm$1@dont-email.me>
<59c3fb8e-6866-4ea9-a1a2-21fdff252095n@googlegroups.com>
NNTP-Posting-Host: 5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Dmitry A. Kazakov - Thu, 15 Jul 2021 16:49 UTC

On 2021-07-15 18:29, Lucretia wrote:
> On Thursday, 15 July 2021 at 16:56:40 UTC+1, Jeffrey R. Carter wrote:
>> On 7/15/21 5:13 PM, Lucretia wrote:
>>>
>>> I managed to get just under 4000 passes with a 1 bit array, but not using Ada's packed array. That's actually the slowest method, strangely.
>> So you have an array of a modular type, calculate an index and bit within it,
>> mask out that bit, and compare it to zero? I would have thought an unpacked
>> array of Boolean would be fastest.
>
> Doesn't seem to be.

Unlikely unless compiled into machine-specific instructions. You should
inspect the code.

> Also, the guy is using the packed bit as the final test of all the languages.
>
>> A packed array of Boolean requires all the operations above, plus shifting the
>> bit to the LSB and treating the result as a Boolean, so it may not be that
>
> Don't need to shift to the LSB, only need to shift the 1 to the bit location you want to test, invert and then check against 0.

Usually masks are either tabulated in a look-up table or are constants
in a case choice.

>> surprising that it's slower.
>
> I know. I would've thought the compiler would've handled the packed array as a special case and optimised as much as possible there.

It is still unlikely to be faster than all arrays. You should probably
try to use different element types and inspect the code.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: Not good for Ada endorsement

<0f45b73c-9904-4e1f-bda7-2df8473fca7dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5575&group=comp.lang.ada#5575

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:d86:: with SMTP id 128mr3120737qkn.299.1626370237337;
Thu, 15 Jul 2021 10:30:37 -0700 (PDT)
X-Received: by 2002:a25:690e:: with SMTP id e14mr6759226ybc.277.1626370237140;
Thu, 15 Jul 2021 10:30:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Thu, 15 Jul 2021 10:30:36 -0700 (PDT)
In-Reply-To: <73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=86.28.147.129; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS
NNTP-Posting-Host: 86.28.147.129
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org> <e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org> <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com> <sc6cgh$9vu$1@dont-email.me>
<sc6kqh$1sj$1@dont-email.me> <sc6lba$1vma$1@gioia.aioe.org>
<sc6mit$ddv$1@dont-email.me> <sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com> <sc9458$2rq$1@dont-email.me>
<sc94dv$2rq$2@dont-email.me> <0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
<scplrl$npm$1@dont-email.me> <73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0f45b73c-9904-4e1f-bda7-2df8473fca7dn@googlegroups.com>
Subject: Re: Not good for Ada endorsement
From: laguest9...@googlemail.com (Lucretia)
Injection-Date: Thu, 15 Jul 2021 17:30:37 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Lucretia - Thu, 15 Jul 2021 17:30 UTC

On Thursday, 15 July 2021 at 17:29:52 UTC+1, Anh Vo wrote:

> > A packed array of Boolean requires all the operations above, plus shifting the
> > bit to the LSB and treating the result as a Boolean, so it may not be that
> > surprising that it's slower.
> Should fixed lower bound index array (-gnatX) speed it up?

On GCC 9.3.0:

-gnatX Language extensions permitted

Re: Not good for Ada endorsement

<scq84o$cc$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5576&group=comp.lang.ada#5576

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.not.acm.org (Jeffrey R. Carter)
Newsgroups: comp.lang.ada
Subject: Re: Not good for Ada endorsement
Date: Thu, 15 Jul 2021 23:08:40 +0200
Organization: Also freenews.netfront.net; news.tornevall.net;
news.eternal-september.org
Lines: 20
Message-ID: <scq84o$cc$1@dont-email.me>
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org> <e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org> <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com>
<sc6cgh$9vu$1@dont-email.me> <sc6kqh$1sj$1@dont-email.me>
<sc6lba$1vma$1@gioia.aioe.org> <sc6mit$ddv$1@dont-email.me>
<sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com>
<sc9458$2rq$1@dont-email.me> <sc94dv$2rq$2@dont-email.me>
<0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
<scplrl$npm$1@dont-email.me>
<59c3fb8e-6866-4ea9-a1a2-21fdff252095n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 15 Jul 2021 21:08:40 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="05d073167f8af91634ee01bea1feaa70";
logging-data="396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18E7VKTKtubTF2jC5S6ZX7C2RRoGb2tPoM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:hk6GbcXQR+jw7LZK+ElHaoSXYFs=
In-Reply-To: <59c3fb8e-6866-4ea9-a1a2-21fdff252095n@googlegroups.com>
Content-Language: en-US
 by: Jeffrey R. Carter - Thu, 15 Jul 2021 21:08 UTC

On 7/15/21 6:29 PM, Lucretia wrote:
> On Thursday, 15 July 2021 at 16:56:40 UTC+1, Jeffrey R. Carter wrote:
>
>> A packed array of Boolean requires all the operations above, plus shifting the
>> bit to the LSB and treating the result as a Boolean, so it may not be that
>
> Don't need to shift to the LSB, only need to shift the 1 to the bit location you want to test, invert and then check against 0.

You know that that is enough, and may be what you're doing manually, but the
compiler may not know that. If A is a packed array of Boolean, then A (I) has
type Boolean. Unless the compiler can optimize it (and maybe it can), it would
normally need to shift the bit down so it can be treated as a value of type
Boolean, and then apply whatever you do with the resulting Boolean value.

--
Jeff Carter
"How'd you like to hide the egg and gurgitate
a few saucers of mocha java?"
Never Give a Sucker an Even Break
101

Re: Not good for Ada endorsement

<lyo8b2xlza.fsf@pushface.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5579&group=comp.lang.ada#5579

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!PbIre1IJ/IjjT/hZmc5sCw.user.gioia.aioe.org.POSTED!not-for-mail
From: sim...@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: Not good for Ada endorsement
Date: Fri, 16 Jul 2021 17:27:37 +0100
Organization: Aioe.org NNTP Server
Lines: 15
Message-ID: <lyo8b2xlza.fsf@pushface.org>
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org>
<e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org>
<5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com>
<sc6cgh$9vu$1@dont-email.me> <sc6kqh$1sj$1@dont-email.me>
<sc6lba$1vma$1@gioia.aioe.org> <sc6mit$ddv$1@dont-email.me>
<sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com>
<sc9458$2rq$1@dont-email.me> <sc94dv$2rq$2@dont-email.me>
<0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
<scplrl$npm$1@dont-email.me>
<73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>
<0f45b73c-9904-4e1f-bda7-2df8473fca7dn@googlegroups.com>
NNTP-Posting-Host: PbIre1IJ/IjjT/hZmc5sCw.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: abuse@aioe.org
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin)
Cancel-Lock: sha1:B5oCQPlM007LPl5x8u/zQYCNt2Q=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Simon Wright - Fri, 16 Jul 2021 16:27 UTC

Lucretia <laguest9000@googlemail.com> writes:

> On Thursday, 15 July 2021 at 17:29:52 UTC+1, Anh Vo wrote:
>
>> > A packed array of Boolean requires all the operations above, plus
>> > shifting the
>> > bit to the LSB and treating the result as a Boolean, so it may not be that
>> > surprising that it's slower.
>> Should fixed lower bound index array (-gnatX) speed it up?
>
> On GCC 9.3.0:
>
> -gnatX Language extensions permitted

Ah, but which ones?

Re: Not good for Ada endorsement

<lyk0lqxly7.fsf@pushface.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5580&group=comp.lang.ada#5580

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!PbIre1IJ/IjjT/hZmc5sCw.user.gioia.aioe.org.POSTED!not-for-mail
From: sim...@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: Not good for Ada endorsement
Date: Fri, 16 Jul 2021 17:28:16 +0100
Organization: Aioe.org NNTP Server
Lines: 14
Message-ID: <lyk0lqxly7.fsf@pushface.org>
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org>
<e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org>
<5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com>
<sc6cgh$9vu$1@dont-email.me> <sc6kqh$1sj$1@dont-email.me>
<sc6lba$1vma$1@gioia.aioe.org> <sc6mit$ddv$1@dont-email.me>
<sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com>
<sc9458$2rq$1@dont-email.me> <sc94dv$2rq$2@dont-email.me>
<0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
<scplrl$npm$1@dont-email.me>
<73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>
<0f45b73c-9904-4e1f-bda7-2df8473fca7dn@googlegroups.com>
NNTP-Posting-Host: PbIre1IJ/IjjT/hZmc5sCw.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: abuse@aioe.org
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin)
X-Notice: Filtered by postfilter v. 0.9.2
Cancel-Lock: sha1:zT89MGxtGtzgXXX3rMZs2k+OlQc=
 by: Simon Wright - Fri, 16 Jul 2021 16:28 UTC

Lucretia <laguest9000@googlemail.com> writes:

> On Thursday, 15 July 2021 at 17:29:52 UTC+1, Anh Vo wrote:
>
>> > A packed array of Boolean requires all the operations above, plus
>> > shifting the bit to the LSB and treating the result as a Boolean,
>> > so it may not be that surprising that it's slower.
>> Should fixed lower bound index array (-gnatX) speed it up?
>
> On GCC 9.3.0:
>
> -gnatX Language extensions permitted

Ah, but which ones?

Re: Not good for Ada endorsement

<eedf51d3-23e0-4ec1-a8a6-230a12ee17a3n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5591&group=comp.lang.ada#5591

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:9f8d:: with SMTP id i135mr21459189qke.296.1626649384539;
Sun, 18 Jul 2021 16:03:04 -0700 (PDT)
X-Received: by 2002:a25:3c1:: with SMTP id 184mr27312750ybd.309.1626649384299;
Sun, 18 Jul 2021 16:03:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 18 Jul 2021 16:03:04 -0700 (PDT)
In-Reply-To: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:645:c000:5e:8c79:6530:ac4:176;
posting-account=1sN4oQoAAABANGeLN5K5KDzu7t8XhLSV
NNTP-Posting-Host: 2601:645:c000:5e:8c79:6530:ac4:176
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <eedf51d3-23e0-4ec1-a8a6-230a12ee17a3n@googlegroups.com>
Subject: Re: Not good for Ada endorsement
From: mace.ay...@icloud.com (Mace Ayres)
Injection-Date: Sun, 18 Jul 2021 23:03:04 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Mace Ayres - Sun, 18 Jul 2021 23:03 UTC

I doubt if any industrial software engineering in Aviations, railroads, control system in Europe or in the US, beyond, web programmers are going to abandon Ada, back to Pascal, over such kiddy code comparisons.

Re: Not good for Ada endorsement

<87czrf2k4c.fsf@nightsong.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5592&group=comp.lang.ada#5592

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.ada
Subject: Re: Not good for Ada endorsement
Date: Sun, 18 Jul 2021 18:00:19 -0700
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <87czrf2k4c.fsf@nightsong.com>
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<eedf51d3-23e0-4ec1-a8a6-230a12ee17a3n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="ba2899c88ebb76efd6d2778ec52801f3";
logging-data="24911"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VfrbezjpnUmAIfVPdWFaF"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:WF4o/1lLgHOulqxW+XkCcafxV3c=
sha1:VtS439rE52Lx9EUDbhNWT+h4NfA=
 by: Paul Rubin - Mon, 19 Jul 2021 01:00 UTC

Mace Ayres <mace.ayres@icloud.com> writes:
> I doubt if any industrial software engineering in Aviations,
> railroads, control system in Europe or in the US, beyond, web
> programmers are going to abandon Ada, back to Pascal, over such kiddy
> code comparisons.

It's still a matter of concern if straightforward code is that much
harder to compile with Ada, that an advanced Ada compiler (GNAT)
produces slower code than a relatively simple Pascal compiler does
(depending on what Pascal compiler it was, of course).

Re: Not good for Ada endorsement

<aa90a8ba-2187-46c3-b15f-5a0fb6963df6n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5602&group=comp.lang.ada#5602

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:4089:: with SMTP id f9mr5353156qko.441.1627059853013;
Fri, 23 Jul 2021 10:04:13 -0700 (PDT)
X-Received: by 2002:a25:c7d1:: with SMTP id w200mr5708548ybe.161.1627059852865;
Fri, 23 Jul 2021 10:04:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Fri, 23 Jul 2021 10:04:12 -0700 (PDT)
In-Reply-To: <73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=67.164.24.162; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6
NNTP-Posting-Host: 67.164.24.162
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org> <e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org> <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com> <sc6cgh$9vu$1@dont-email.me>
<sc6kqh$1sj$1@dont-email.me> <sc6lba$1vma$1@gioia.aioe.org>
<sc6mit$ddv$1@dont-email.me> <sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com> <sc9458$2rq$1@dont-email.me>
<sc94dv$2rq$2@dont-email.me> <0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
<scplrl$npm$1@dont-email.me> <73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aa90a8ba-2187-46c3-b15f-5a0fb6963df6n@googlegroups.com>
Subject: Re: Not good for Ada endorsement
From: anhvofrc...@gmail.com (Anh Vo)
Injection-Date: Fri, 23 Jul 2021 17:04:13 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Anh Vo - Fri, 23 Jul 2021 17:04 UTC

On Thursday, July 15, 2021 at 9:29:52 AM UTC-7, Anh Vo wrote:
> On Thursday, July 15, 2021 at 8:56:40 AM UTC-7, Jeffrey R. Carter wrote:
> > On 7/15/21 5:13 PM, Lucretia wrote:
> > >
> > > I managed to get just under 4000 passes with a 1 bit array, but not using Ada's packed array. That's actually the slowest method, strangely.
> > So you have an array of a modular type, calculate an index and bit within it,
> > mask out that bit, and compare it to zero? I would have thought an unpacked
> > array of Boolean would be fastest.
> >
> > A packed array of Boolean requires all the operations above, plus shifting the
> > bit to the LSB and treating the result as a Boolean, so it may not be that
> > surprising that it's slower.
> Should fixed lower bound index array (-gnatX) speed it up?

Indeed, it does. As posted on Reddit Ada, I got 5476 Passes after changing array types to arrays having fixed lower bound index of 0 on lines 9 and 10 and compiling it using switch -gnatX -02. By the way, I used GNAT Studio 2021 running on Windows 10.

Re: Not good for Ada endorsement

<sdetav$sjh$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5603&group=comp.lang.ada#5603

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!Lx7EM+81f32E0bqku+QpCA.user.46.165.242.75.POSTED!not-for-mail
From: lagu...@archeia.com (Luke A. Guest)
Newsgroups: comp.lang.ada
Subject: Re: Not good for Ada endorsement
Date: Fri, 23 Jul 2021 18:12:32 +0100
Organization: Aioe.org NNTP Server
Message-ID: <sdetav$sjh$1@gioia.aioe.org>
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org> <e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org> <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com>
<sc6cgh$9vu$1@dont-email.me> <sc6kqh$1sj$1@dont-email.me>
<sc6lba$1vma$1@gioia.aioe.org> <sc6mit$ddv$1@dont-email.me>
<sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com>
<sc9458$2rq$1@dont-email.me> <sc94dv$2rq$2@dont-email.me>
<0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
<scplrl$npm$1@dont-email.me>
<73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>
<aa90a8ba-2187-46c3-b15f-5a0fb6963df6n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="29297"; posting-host="Lx7EM+81f32E0bqku+QpCA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: Luke A. Guest - Fri, 23 Jul 2021 17:12 UTC

On 23/07/2021 18:04, Anh Vo wrote:

>> Should fixed lower bound index array (-gnatX) speed it up?
>
> Indeed, it does. As posted on Reddit Ada, I got 5476 Passes after changing array types to arrays having fixed lower bound index of 0 on lines 9 and 10 and compiling it using switch -gnatX -02. By the way, I used GNAT Studio 2021 running on Windows 10.
>

I as I stated that flag enables gnat extensions, usually the next
language revision. I'm on the FSF compiler, the dockerfile is set of gcc 11.

Re: Not good for Ada endorsement

<sdevre$1cl$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5604&group=comp.lang.ada#5604

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!Lx7EM+81f32E0bqku+QpCA.user.46.165.242.75.POSTED!not-for-mail
From: lagu...@archeia.com (Luke A. Guest)
Newsgroups: comp.lang.ada
Subject: Re: Not good for Ada endorsement
Date: Fri, 23 Jul 2021 18:55:27 +0100
Organization: Aioe.org NNTP Server
Message-ID: <sdevre$1cl$1@gioia.aioe.org>
References: <cd296b88-2e0a-403f-82c7-973e41fa7331n@googlegroups.com>
<sc4fuo$8vn$1@gioia.aioe.org> <e9hbeg9014he87s6kbrkinrt4tre1cfgqc@4ax.com>
<ly8s2iorpl.fsf@pushface.org> <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com>
<a0080e82-2f52-4fd7-9c44-6bc2d8f0664bn@googlegroups.com>
<sc6cgh$9vu$1@dont-email.me> <sc6kqh$1sj$1@dont-email.me>
<sc6lba$1vma$1@gioia.aioe.org> <sc6mit$ddv$1@dont-email.me>
<sc7d65$1kcq$1@gioia.aioe.org>
<d4b4342e-b2ef-4ed3-a586-85b4c5c8bd9dn@googlegroups.com>
<sc9458$2rq$1@dont-email.me> <sc94dv$2rq$2@dont-email.me>
<0e6ee3e9-baad-47b3-872b-90ec6c735920n@googlegroups.com>
<scplrl$npm$1@dont-email.me>
<73f3c6be-8de5-4ad7-a420-d33866d3c87bn@googlegroups.com>
<0f45b73c-9904-4e1f-bda7-2df8473fca7dn@googlegroups.com>
<lyk0lqxly7.fsf@pushface.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="1429"; posting-host="Lx7EM+81f32E0bqku+QpCA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: Luke A. Guest - Fri, 23 Jul 2021 17:55 UTC

On 16/07/2021 17:28, Simon Wright wrote:
> Lucretia <laguest9000@googlemail.com> writes:
>
>> On Thursday, 15 July 2021 at 17:29:52 UTC+1, Anh Vo wrote:
>>
>>>> A packed array of Boolean requires all the operations above, plus
>>>> shifting the bit to the LSB and treating the result as a Boolean,
>>>> so it may not be that surprising that it's slower.
>>> Should fixed lower bound index array (-gnatX) speed it up?
>>
>> On GCC 9.3.0:
>>
>> -gnatX Language extensions permitted
>
> Ah, but which ones?
>

Oh, I now think it's the 2012 extension which enables you do have (1 ..
<>) or (0 .. <>) in array types, rather than a more useful command line
option to normalise array indices to 0.

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor