Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The heart is not a logical organ. -- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4


devel / comp.lang.c++ / Re: Sieve of Eratosthenes

SubjectAuthor
* Sieve of EratosthenesBonita Montero
+* Re: Sieve of Eratostheneswij
|+* Re: Sieve of EratosthenesBonita Montero
||`- Re: Sieve of Eratostheneswij
|`* Re: Sieve of EratosthenesPaavo Helde
| `- Re: Sieve of Eratostheneswij
+* Re: Sieve of EratosthenesAlf P. Steinbach
|+- Re: Sieve of EratosthenesAlf P. Steinbach
|+* Re: Sieve of EratosthenesAlf P. Steinbach
||`* Re: Sieve of EratosthenesAlf P. Steinbach
|| `- Re: Sieve of EratosthenesChris M. Thomasson
|+* Re: Sieve of Eratosthenesred floyd
||+* Re: Sieve of EratosthenesTim Rentsch
|||`* Re: Sieve of EratosthenesÖö Tiib
||| +* Re: Sieve of EratosthenesBen Bacarisse
||| |+* Re: Sieve of EratosthenesÖö Tiib
||| ||`* Re: Sieve of EratosthenesAlf P. Steinbach
||| || +* Re: Sieve of EratosthenesÖö Tiib
||| || |`* Re: Sieve of EratosthenesBonita Montero
||| || | `* Re: Sieve of EratosthenesBonita Montero
||| || |  `* Re: Sieve of EratosthenesMuttley
||| || |   `* Re: Sieve of EratosthenesBonita Montero
||| || |    `* Re: Sieve of EratosthenesMuttley
||| || |     +* Re: Sieve of EratosthenesBonita Montero
||| || |     |`* Re: Sieve of EratosthenesMuttley
||| || |     | `- Re: Sieve of EratosthenesBonita Montero
||| || |     +* Re: Sieve of EratosthenesBonita Montero
||| || |     |+* Re: Sieve of EratosthenesMuttley
||| || |     ||`* Re: Sieve of EratosthenesBonita Montero
||| || |     || `* Re: Sieve of EratosthenesMuttley
||| || |     ||  `* Re: Sieve of EratosthenesBonita Montero
||| || |     ||   `* Re: Sieve of EratosthenesMuttley
||| || |     ||    `* Re: Sieve of EratosthenesBonita Montero
||| || |     ||     `* Re: Sieve of EratosthenesMuttley
||| || |     ||      `* Re: Sieve of EratosthenesBonita Montero
||| || |     ||       `* Re: Sieve of EratosthenesMuttley
||| || |     ||        `* Re: Sieve of EratosthenesBonita Montero
||| || |     ||         `* Re: Sieve of EratosthenesMuttley
||| || |     ||          `* Re: Sieve of EratosthenesBonita Montero
||| || |     ||           `* Re: Sieve of EratosthenesMuttley
||| || |     ||            `* Re: Sieve of EratosthenesBonita Montero
||| || |     ||             `* Re: Sieve of EratosthenesMuttley
||| || |     ||              `* Re: Sieve of EratosthenesBonita Montero
||| || |     ||               `* Re: Sieve of EratosthenesMuttley
||| || |     ||                `- Re: Sieve of EratosthenesBonita Montero
||| || |     |`* Re: Sieve of EratosthenesBen Bacarisse
||| || |     | `- Re: Sieve of EratosthenesBonita Montero
||| || |     `* Re: Sieve of EratosthenesScott Lurndal
||| || |      +* Re: Sieve of EratosthenesBonita Montero
||| || |      |`- Re: Sieve of EratosthenesScott Lurndal
||| || |      `* Re: Sieve of EratosthenesMuttley
||| || |       `* Re: Sieve of EratosthenesBonita Montero
||| || |        `- Re: Sieve of EratosthenesScott Lurndal
||| || `- Re: Sieve of EratosthenesBen Bacarisse
||| |`* Re: Sieve of EratosthenesTim Rentsch
||| | `* Re: Sieve of EratosthenesBen Bacarisse
||| |  `* Re: Sieve of EratosthenesTim Rentsch
||| |   `- Re: Sieve of EratosthenesBen Bacarisse
||| `- Re: Sieve of EratosthenesTim Rentsch
||`* Re: Sieve of EratosthenesBonita Montero
|| `* Re: Sieve of EratosthenesBonita Montero
||  `* Re: Sieve of EratosthenesAlf P. Steinbach
||   +- Re: Sieve of EratosthenesBonita Montero
||   +- Re: Sieve of EratosthenesBonita Montero
||   `* Re: Sieve of EratosthenesBonita Montero
||    `* Re: Sieve of EratosthenesMuttley
||     `* Re: Sieve of EratosthenesBonita Montero
||      `* Re: Sieve of EratosthenesMuttley
||       `* Re: Sieve of EratosthenesBonita Montero
||        `* Re: Sieve of EratosthenesMuttley
||         `* Re: Sieve of EratosthenesBonita Montero
||          +* Re: Sieve of EratosthenesÖö Tiib
||          |`* Re: Sieve of EratosthenesBonita Montero
||          | +- Re: Sieve of EratosthenesBonita Montero
||          | `* Re: Sieve of EratosthenesÖö Tiib
||          |  `- Re: Sieve of EratosthenesBonita Montero
||          `* Re: Sieve of EratosthenesMuttley
||           `* Re: Sieve of EratosthenesBonita Montero
||            +- Re: Sieve of EratosthenesBonita Montero
||            `* Re: Sieve of EratosthenesMuttley
||             `* Re: Sieve of EratosthenesBonita Montero
||              `* Re: Sieve of EratosthenesMuttley
||               `* Re: Sieve of EratosthenesBonita Montero
||                `* Re: Sieve of EratosthenesMuttley
||                 +* Re: Sieve of EratosthenesBonita Montero
||                 |`* Re: Sieve of EratosthenesMuttley
||                 | `* Re: Sieve of EratosthenesBonita Montero
||                 |  `* Re: Sieve of EratosthenesMuttley
||                 |   `* Re: Sieve of EratosthenesBonita Montero
||                 |    `* Re: Sieve of EratosthenesMuttley
||                 |     `* Re: Sieve of EratosthenesBonita Montero
||                 |      +* Re: Sieve of EratosthenesRichard Damon
||                 |      |`* Re: Sieve of EratosthenesBonita Montero
||                 |      | `* Re: Sieve of EratosthenesMuttley
||                 |      |  `* Re: Sieve of EratosthenesBonita Montero
||                 |      |   `* Re: Sieve of EratosthenesMuttley
||                 |      |    `* Re: Sieve of EratosthenesBonita Montero
||                 |      |     `* Re: Sieve of EratosthenesMuttley
||                 |      |      `* Re: Sieve of EratosthenesBonita Montero
||                 |      |       `* Re: Sieve of EratosthenesMuttley
||                 |      |        +* Re: Sieve of EratosthenesBonita Montero
||                 |      |        `* Re: Sieve of EratosthenesDaniel
||                 |      `* Re: Sieve of EratosthenesMuttley
||                 `* Re: Sieve of EratosthenesScott Lurndal
|`* Re: Sieve of Eratostheneswij
+- Re: Sieve of EratosthenesBonita Montero
+- Re: Sieve of EratosthenesBonita Montero
`* Re: Sieve of EratosthenesBonita Montero

Pages:123456
Re: Sieve of Eratosthenes

<fzsFM.617382$mPI2.355917@fx15.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1141&group=comp.lang.c%2B%2B#1141

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Sieve of Eratosthenes
Newsgroups: comp.lang.c++
References: <ubijff$3ahf3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me> <uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me> <uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me> <uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me> <uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me> <uc54jp$2v0bk$1@dont-email.me> <uc559i$2v27t$2@dont-email.me> <uc55r2$2v6us$1@dont-email.me> <uc566i$2v7nu$2@dont-email.me> <uc5gub$318b7$1@dont-email.me> <uc5hvs$31g55$2@dont-email.me>
Lines: 30
Message-ID: <fzsFM.617382$mPI2.355917@fx15.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 23 Aug 2023 18:51:55 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 23 Aug 2023 18:51:55 GMT
X-Received-Bytes: 2412
 by: Scott Lurndal - Wed, 23 Aug 2023 18:51 UTC

Bonita Montero <Bonita.Montero@gmail.com> writes:
>Am 23.08.2023 um 19:51 schrieb Muttley@dastardlyhq.com:
>> On Wed, 23 Aug 2023 16:47:46 +0200
>> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>> Am 23.08.2023 um 16:41 schrieb Muttley@dastardlyhq.com:
>>>> Depends on the DB. If like Oracle its tablespaces are on bespoke disk
>>>> partitions then it will do the equivalent of swapping if it needs to.
>>>
>>> The Oracle Data Warehousing Guide says that the performance
>>> advantage of raw partitions is between three and five percent.
>>> And you lose much comfort features like shnapshots. So no one
>>> actually uses raw partitions.
>>
>> Oh right. You're an Oracle expert too now? :)
>
>I have a OCP-DBA for Oracle 8i and I read that 20 years ago.
>I checked that in the current DWH-guide and they reverted
>that statement to five to ten percent.
>
>>> And this feature has nothing to do with how you dimension your
>>> buffer pool or your heaps.
>
>> Its a type of paging.
>
>Paging is synchronous, i.e. the thread which pages is stopped until
>the page is fetched.

Actually, sometimes the operating system will anticipate a future
page fault and preload the page. Particularly on POSIX systems
that support the madvise(2) or posix_madvise(2) system call(s).

Re: Sieve of Eratosthenes

<uc83di$3i7m1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1148&group=comp.lang.c%2B%2B#1148

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 17:18:43 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uc83di$3i7m1$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <ubv92t$1r3l9$1@dont-email.me>
<uc06bc$203p7$1@dont-email.me> <uc0857$20cmk$1@dont-email.me>
<uc09e1$20jj6$1@dont-email.me> <uc0a19$20m3n$1@dont-email.me>
<uc0ca1$213lo$1@dont-email.me> <uc19v6$28t5s$1@dont-email.me>
<uc1m68$2afn4$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<uc5hop$31g55$1@dont-email.me>
Injection-Date: Thu, 24 Aug 2023 17:18:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1b5e3ef00e2ebd55330fdebbb02fadce";
logging-data="3743425"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xsRu9i4jwlFafok5zKPb8"
Cancel-Lock: sha1:Qq+LO+3qeYZobxoz8exiU7/C9mI=
 by: Mutt...@dastardlyhq.com - Thu, 24 Aug 2023 17:18 UTC

On Wed, 23 Aug 2023 20:05:14 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 23.08.2023 um 19:49 schrieb Muttley@dastardlyhq.com:
>
>> You must be a very insecure person constantly
>> putting others down to make yourself feel better.
>
>No, I just feel uncomfortable if people produce such images.

What images?

>You're simply lying.

About what? Thats how you come across - an insecure loser who thinks he's
one of the best C++ programmers on the planet.

Re: Sieve of Eratosthenes

<uc83ho$3i80p$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1149&group=comp.lang.c%2B%2B#1149

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 19:20:58 +0200
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uc83ho$3i80p$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc0857$20cmk$1@dont-email.me>
<uc09e1$20jj6$1@dont-email.me> <uc0a19$20m3n$1@dont-email.me>
<uc0ca1$213lo$1@dont-email.me> <uc19v6$28t5s$1@dont-email.me>
<uc1m68$2afn4$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me> <uc5hop$31g55$1@dont-email.me>
<uc83di$3i7m1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 24 Aug 2023 17:20:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b01a33b29d39c87f910657740dee042d";
logging-data="3743769"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HF2xDHHkl5X1VIiwQnmX00GLDzQEfQII="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LsCejVa5/e1fKxxWieVm4OM51MQ=
Content-Language: de-DE
In-Reply-To: <uc83di$3i7m1$1@dont-email.me>
 by: Bonita Montero - Thu, 24 Aug 2023 17:20 UTC

Am 24.08.2023 um 19:18 schrieb Muttley@dastardlyhq.com:
> On Wed, 23 Aug 2023 20:05:14 +0200
> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 23.08.2023 um 19:49 schrieb Muttley@dastardlyhq.com:
>>
>>> You must be a very insecure person constantly
>>> putting others down to make yourself feel better.
>>
>> No, I just feel uncomfortable if people produce such images.
>
> What images?

You try to make other believe things which aren't true.

>> You're simply lying.
>
> About what? Thats how you come across - an insecure loser who thinks he's
> one of the best C++ programmers on the planet.
>

I'm neither insecure, nor a loser.

Re: Sieve of Eratosthenes

<uc83kf$3i8rj$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1150&group=comp.lang.c%2B%2B#1150

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 17:22:23 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <uc83kf$3i8rj$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me>
<ubjrqh$3g7ve$1@redfloyd.dont-email.me> <ubkfhd$3mcbv$1@dont-email.me>
<ubkpqj$3nra0$1@dont-email.me> <ubku1s$3oe7t$1@dont-email.me>
<ubv92t$1r3l9$1@dont-email.me> <uc06bc$203p7$1@dont-email.me>
<uc0857$20cmk$1@dont-email.me> <uc09e1$20jj6$1@dont-email.me>
<uc0a19$20m3n$1@dont-email.me> <uc0ca1$213lo$1@dont-email.me>
<uc19v6$28t5s$1@dont-email.me> <uc1m68$2afn4$1@dont-email.me>
<uc1v1v$2brns$2@dont-email.me> <uc2fqr$2egkl$1@dont-email.me>
<uc2g1f$2eh5h$1@dont-email.me> <uc2gjn$2ekj3$1@dont-email.me>
<uc2hsd$2eqis$1@dont-email.me> <uc2ico$2eu3a$1@dont-email.me>
<uc2iiq$2eu9j$1@dont-email.me> <uc2ss5$2grks$1@dont-email.me>
<uc2tru$2h0an$1@dont-email.me> <uc2u4r$2h243$1@dont-email.me>
<uc302f$2hahp$1@dont-email.me> <uc4a9v$2qq8f$1@dont-email.me>
<uc4e92$2rd5a$1@dont-email.me> <uc54jp$2v0bk$1@dont-email.me>
<uc559i$2v27t$2@dont-email.me> <uc55r2$2v6us$1@dont-email.me>
<uc566i$2v7nu$2@dont-email.me> <uc5gub$318b7$1@dont-email.me>
<uc5hvs$31g55$2@dont-email.me>
Injection-Date: Thu, 24 Aug 2023 17:22:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1b5e3ef00e2ebd55330fdebbb02fadce";
logging-data="3744627"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/232PkZD+ScYwKAOrtP5kE"
Cancel-Lock: sha1:Ko0wXBBPeQJ32RSCMso0YSnsJfQ=
 by: Mutt...@dastardlyhq.com - Thu, 24 Aug 2023 17:22 UTC

On Wed, 23 Aug 2023 20:09:01 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 23.08.2023 um 19:51 schrieb Muttley@dastardlyhq.com:
>> On Wed, 23 Aug 2023 16:47:46 +0200
>> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>> Am 23.08.2023 um 16:41 schrieb Muttley@dastardlyhq.com:
>>>> Depends on the DB. If like Oracle its tablespaces are on bespoke disk
>>>> partitions then it will do the equivalent of swapping if it needs to.
>>>
>>> The Oracle Data Warehousing Guide says that the performance
>>> advantage of raw partitions is between three and five percent.
>>> And you lose much comfort features like shnapshots. So no one
>>> actually uses raw partitions.
>>
>> Oh right. You're an Oracle expert too now? :)
>
>I have a OCP-DBA for Oracle 8i and I read that 20 years ago.

Does that on your wall alongside your Microsoft Certified Muppet certificates?

>> Its a type of paging.
>
>Paging is synchronous, i.e. the thread which pages is stopped until
>the page is fetched. All modern database engines use asynchronous
>I/O, thereby issuing multiple requests and answering the responses
>often in a totally different order.

Until the data can be loaded from disk a query - even a highly parallelised
one - will be partially or fully stalled however the I/O is done.

>And it's also not paging because this is explicitly issued by the
>database server, whereas real paging is a transparent memory access
>which isn't noticed by the application.

You think programs using SQL are aware of the database fetching and
saving to disk?

Re: Sieve of Eratosthenes

<uc83qh$3i9s9$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1151&group=comp.lang.c%2B%2B#1151

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 17:25:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <uc83qh$3i9s9$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc0a19$20m3n$1@dont-email.me>
<uc0ca1$213lo$1@dont-email.me> <uc19v6$28t5s$1@dont-email.me>
<uc1m68$2afn4$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me>
Injection-Date: Thu, 24 Aug 2023 17:25:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1b5e3ef00e2ebd55330fdebbb02fadce";
logging-data="3745673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bjZxd8YjMq1fVTcw/f52h"
Cancel-Lock: sha1:EZg+t/NB82xicJw7weFKK/ndSdU=
 by: Mutt...@dastardlyhq.com - Thu, 24 Aug 2023 17:25 UTC

On Wed, 23 Aug 2023 20:24:55 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 23.08.2023 um 20:20 schrieb Chris M. Thomasson:
>> Pot Kettle? Bonita, you have a lot of experience wrt verbal assaults,
>> right?
>
>Muttley is just annoying. If I show a solution to a problem and think
>it is technically elegant, he somehow wants to explain it away because

Your idea of elegance is completely orthogonal to most peoples.

>The guy is disturbed.

Irony day again?

>And because he then compares himself to me at that point, he produces
>such images as saying that he was involved in some Java project,

Actually I specifically said I WASNT involved except how Java slowed down
the server we were sharing with the java team. I realise English isn't your
1st language but do try to read properly.

>although based on other statements about Java you can say that
>he only has clichéd views of it.

Views gained from real world experience.

Re: Sieve of Eratosthenes

<uc83tr$3i9b0$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1152&group=comp.lang.c%2B%2B#1152

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 19:27:25 +0200
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uc83tr$3i9b0$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <ubkpqj$3nra0$1@dont-email.me>
<ubku1s$3oe7t$1@dont-email.me> <ubv92t$1r3l9$1@dont-email.me>
<uc06bc$203p7$1@dont-email.me> <uc0857$20cmk$1@dont-email.me>
<uc09e1$20jj6$1@dont-email.me> <uc0a19$20m3n$1@dont-email.me>
<uc0ca1$213lo$1@dont-email.me> <uc19v6$28t5s$1@dont-email.me>
<uc1m68$2afn4$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<uc54jp$2v0bk$1@dont-email.me> <uc559i$2v27t$2@dont-email.me>
<uc55r2$2v6us$1@dont-email.me> <uc566i$2v7nu$2@dont-email.me>
<uc5gub$318b7$1@dont-email.me> <uc5hvs$31g55$2@dont-email.me>
<uc83kf$3i8rj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 24 Aug 2023 17:27:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b01a33b29d39c87f910657740dee042d";
logging-data="3745120"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0gnHzoY1XKiYZ5m4W1gH19lGFSMNOPXc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:qOBtuayY/zNH0AOUv2GUhHylHdQ=
Content-Language: de-DE
In-Reply-To: <uc83kf$3i8rj$1@dont-email.me>
 by: Bonita Montero - Thu, 24 Aug 2023 17:27 UTC

Am 24.08.2023 um 19:22 schrieb Muttley@dastardlyhq.com:

>> Paging is synchronous, i.e. the thread which pages is stopped until
>> the page is fetched. All modern database engines use asynchronous
>> I/O, thereby issuing multiple requests and answering the responses
>> often in a totally different order.

> Until the data can be loaded from disk a query - even a highly parallelised
> one - will be partially or fully stalled however the I/O is done.

I wanted to explain why this isn't paging.
You don't underdtand the difference.

>> And it's also not paging because this is explicitly issued by the
>> database server, whereas real paging is a transparent memory access
>> which isn't noticed by the application.

> You think programs using SQL are aware of the database fetching and
> saving to disk?

What does this have to do with the discussion of
paging vs. asynchronous I/O through a database server?

Re: Sieve of Eratosthenes

<uc8415$3i9b0$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1153&group=comp.lang.c%2B%2B#1153

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 19:29:11 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uc8415$3i9b0$2@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc19v6$28t5s$1@dont-email.me>
<uc1m68$2afn4$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 24 Aug 2023 17:29:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b01a33b29d39c87f910657740dee042d";
logging-data="3745120"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Tk/mCFlGr13G0kiXL2OhIBzqho18p0oE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JugttKm5qofKuheuKsIGMeia8dQ=
Content-Language: de-DE
In-Reply-To: <uc83qh$3i9s9$1@dont-email.me>
 by: Bonita Montero - Thu, 24 Aug 2023 17:29 UTC

Am 24.08.2023 um 19:25 schrieb Muttley@dastardlyhq.com:
> On Wed, 23 Aug 2023 20:24:55 +0200
> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 23.08.2023 um 20:20 schrieb Chris M. Thomasson:
>>> Pot Kettle? Bonita, you have a lot of experience wrt verbal assaults,
>>> right?
>>
>> Muttley is just annoying. If I show a solution to a problem and think
>> it is technically elegant, he somehow wants to explain it away because
>
> Your idea of elegance is completely orthogonal to most peoples.

People who know C++ very well will appreciate my work.

> Actually I specifically said I WASNT involved except how Java slowed down
> the server we were sharing with the java team. I realise English isn't your
> 1st language but do try to read properly.

Now you row back.

>> although based on other statements about Java you can say that
>> he only has clichéd views of it.

> Views gained from real world experience.

You don't have any experience with that.
You're at the level of very simplex code.

Re: Sieve of Eratosthenes

<uc84ge$3iduk$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1154&group=comp.lang.c%2B%2B#1154

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 17:37:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <uc84ge$3iduk$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <ubkpqj$3nra0$1@dont-email.me>
<ubku1s$3oe7t$1@dont-email.me> <ubv92t$1r3l9$1@dont-email.me>
<uc06bc$203p7$1@dont-email.me> <uc0857$20cmk$1@dont-email.me>
<uc09e1$20jj6$1@dont-email.me> <uc0a19$20m3n$1@dont-email.me>
<uc0ca1$213lo$1@dont-email.me> <uc19v6$28t5s$1@dont-email.me>
<uc1m68$2afn4$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<uc54jp$2v0bk$1@dont-email.me> <uc559i$2v27t$2@dont-email.me>
<uc55r2$2v6us$1@dont-email.me> <uc566i$2v7nu$2@dont-email.me>
<uc5gub$318b7$1@dont-email.me> <uc5hvs$31g55$2@dont-email.me>
<uc83kf$3i8rj$1@dont-email.me>
<uc83tr$3i9b0$1@dont-email.me>
Injection-Date: Thu, 24 Aug 2023 17:37:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1b5e3ef00e2ebd55330fdebbb02fadce";
logging-data="3749844"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gcDPKpUGo7o5lvmgU8UwC"
Cancel-Lock: sha1:92fql3TKcpd5A8xfu4d4qCMrTB0=
 by: Mutt...@dastardlyhq.com - Thu, 24 Aug 2023 17:37 UTC

On Thu, 24 Aug 2023 19:27:25 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 24.08.2023 um 19:22 schrieb Muttley@dastardlyhq.com:
>
>>> Paging is synchronous, i.e. the thread which pages is stopped until
>>> the page is fetched. All modern database engines use asynchronous
>>> I/O, thereby issuing multiple requests and answering the responses
>>> often in a totally different order.
>
>> Until the data can be loaded from disk a query - even a highly parallelised
>> one - will be partially or fully stalled however the I/O is done.
>
>I wanted to explain why this isn't paging.
>You don't underdtand the difference.

They're analogous, not identical , but close enough. Both involve loading
data into memory and saving it out to disk before the operation can proceed
and in the case of ACID DBMSs the transaction data MUST be written to disk
before the operation can complete.

But I'm sure you know all this, right?

>>> And it's also not paging because this is explicitly issued by the
>>> database server, whereas real paging is a transparent memory access
>>> which isn't noticed by the application.
>
>> You think programs using SQL are aware of the database fetching and
>> saving to disk?
>
>What does this have to do with the discussion of
>paging vs. asynchronous I/O through a database server?

FFS , are you even aware of what you wrote?

Re: Sieve of Eratosthenes

<uc84mn$3ifc1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1155&group=comp.lang.c%2B%2B#1155

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 17:40:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <uc84mn$3ifc1$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc19v6$28t5s$1@dont-email.me>
<uc1m68$2afn4$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
<uc8415$3i9b0$2@dont-email.me>
Injection-Date: Thu, 24 Aug 2023 17:40:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1b5e3ef00e2ebd55330fdebbb02fadce";
logging-data="3751297"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SJ6B0xIbLlEsjviVvT18z"
Cancel-Lock: sha1:iB5Y6+5AJqccJEOIBAJoV+loIBU=
 by: Mutt...@dastardlyhq.com - Thu, 24 Aug 2023 17:40 UTC

On Thu, 24 Aug 2023 19:29:11 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 24.08.2023 um 19:25 schrieb Muttley@dastardlyhq.com:
>> Your idea of elegance is completely orthogonal to most peoples.
>
>People who know C++ very well will appreciate my work.

Obviously none of them are on this group.

>> Actually I specifically said I WASNT involved except how Java slowed down
>> the server we were sharing with the java team. I realise English isn't your
>> 1st language but do try to read properly.
>
>Now you row back.

Go back and read my post.

>>> although based on other statements about Java you can say that
>>> he only has clichéd views of it.
>
>> Views gained from real world experience.
>
>You don't have any experience with that.
>You're at the level of very simplex code.

Some of my code is currently orbiting Earth and some more is in a missile
system. But yeah, all simple stuff.

You never did tell us what job you did - so what area do you work in?

Re: Sieve of Eratosthenes

<uc857m$3ihua$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1156&group=comp.lang.c%2B%2B#1156

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 19:49:43 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uc857m$3ihua$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
<uc8415$3i9b0$2@dont-email.me> <uc84mn$3ifc1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 24 Aug 2023 17:49:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b01a33b29d39c87f910657740dee042d";
logging-data="3753930"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Jnb6JJ8yDpVQ2FUl6H0CCyDNyqg35o0Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:eqF22idCUWx2UxsgAdQp32r/Qo8=
In-Reply-To: <uc84mn$3ifc1$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Thu, 24 Aug 2023 17:49 UTC

Am 24.08.2023 um 19:40 schrieb Muttley@dastardlyhq.com:
> On Thu, 24 Aug 2023 19:29:11 +0200
> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 24.08.2023 um 19:25 schrieb Muttley@dastardlyhq.com:
>>> Your idea of elegance is completely orthogonal to most peoples.
>>
>> People who know C++ very well will appreciate my work.
>
> Obviously none of them are on this group.

There aren't people who program like that, but in contrast
to you most readers here understand that code.

> You never did tell us what job you did - so what area do you work in?

I'm programming C++ / (C#) software for high frequency trading.

Re: Sieve of Eratosthenes

<uc85c9$3ihua$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1157&group=comp.lang.c%2B%2B#1157

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 19:52:10 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <uc85c9$3ihua$2@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <ubv92t$1r3l9$1@dont-email.me>
<uc06bc$203p7$1@dont-email.me> <uc0857$20cmk$1@dont-email.me>
<uc09e1$20jj6$1@dont-email.me> <uc0a19$20m3n$1@dont-email.me>
<uc0ca1$213lo$1@dont-email.me> <uc19v6$28t5s$1@dont-email.me>
<uc1m68$2afn4$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<uc54jp$2v0bk$1@dont-email.me> <uc559i$2v27t$2@dont-email.me>
<uc55r2$2v6us$1@dont-email.me> <uc566i$2v7nu$2@dont-email.me>
<uc5gub$318b7$1@dont-email.me> <uc5hvs$31g55$2@dont-email.me>
<uc83kf$3i8rj$1@dont-email.me> <uc83tr$3i9b0$1@dont-email.me>
<uc84ge$3iduk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 24 Aug 2023 17:52:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b01a33b29d39c87f910657740dee042d";
logging-data="3753930"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AuNrrLgfZiCJ1F2NxmST7NsqGx7JxvU0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:qwuTEUbRslv+3G4N/fLvc4LuzFY=
Content-Language: de-DE
In-Reply-To: <uc84ge$3iduk$1@dont-email.me>
 by: Bonita Montero - Thu, 24 Aug 2023 17:52 UTC

Am 24.08.2023 um 19:37 schrieb Muttley@dastardlyhq.com:
> On Thu, 24 Aug 2023 19:27:25 +0200
> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 24.08.2023 um 19:22 schrieb Muttley@dastardlyhq.com:
>>
>>>> Paging is synchronous, i.e. the thread which pages is stopped until
>>>> the page is fetched. All modern database engines use asynchronous
>>>> I/O, thereby issuing multiple requests and answering the responses
>>>> often in a totally different order.
>>
>>> Until the data can be loaded from disk a query - even a highly parallelised
>>> one - will be partially or fully stalled however the I/O is done.
>>
>> I wanted to explain why this isn't paging.
>> You don't underdtand the difference.
>
> They're analogous, not identical , but close enough. Both involve loading
> data into memory and saving it out to disk before the operation can proceed
> and in the case of ACID DBMSs the transaction data MUST be written to disk
> before the operation can complete.

But that is a very superficial comparison.
And there are no transactions in paging either.

Re: Sieve of Eratosthenes

<uc87bm$3iu02$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1158&group=comp.lang.c%2B%2B#1158

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Thu, 24 Aug 2023 11:25:58 -0700
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <uc87bm$3iu02$2@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<uc54jp$2v0bk$1@dont-email.me> <uc559i$2v27t$2@dont-email.me>
<uc55r2$2v6us$1@dont-email.me> <uc566i$2v7nu$2@dont-email.me>
<uc5gub$318b7$1@dont-email.me> <uc5hvs$31g55$2@dont-email.me>
<fzsFM.617382$mPI2.355917@fx15.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 24 Aug 2023 18:25:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="56472db527d2a1c3493924f425811501";
logging-data="3766274"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JTrlcgcjOu13Z1FtQogGwRWJ2ejQi9Wo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:PVeAAICY9uXv+nHIpBfEBFM13h0=
In-Reply-To: <fzsFM.617382$mPI2.355917@fx15.iad>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 24 Aug 2023 18:25 UTC

On 8/23/2023 11:51 AM, Scott Lurndal wrote:
> Bonita Montero <Bonita.Montero@gmail.com> writes:
>> Am 23.08.2023 um 19:51 schrieb Muttley@dastardlyhq.com:
>>> On Wed, 23 Aug 2023 16:47:46 +0200
>>> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>> Am 23.08.2023 um 16:41 schrieb Muttley@dastardlyhq.com:
>>>>> Depends on the DB. If like Oracle its tablespaces are on bespoke disk
>>>>> partitions then it will do the equivalent of swapping if it needs to.
>>>>
>>>> The Oracle Data Warehousing Guide says that the performance
>>>> advantage of raw partitions is between three and five percent.
>>>> And you lose much comfort features like shnapshots. So no one
>>>> actually uses raw partitions.
>>>
>>> Oh right. You're an Oracle expert too now? :)
>>
>> I have a OCP-DBA for Oracle 8i and I read that 20 years ago.
>> I checked that in the current DWH-guide and they reverted
>> that statement to five to ten percent.
>>
>>>> And this feature has nothing to do with how you dimension your
>>>> buffer pool or your heaps.
>>
>>> Its a type of paging.
>>
>> Paging is synchronous, i.e. the thread which pages is stopped until
>> the page is fetched.
>
> Actually, sometimes the operating system will anticipate a future
> page fault and preload the page. Particularly on POSIX systems
> that support the madvise(2) or posix_madvise(2) system call(s).

Yup. Cacheline prefetch can be damn good as well, in certain scenarios...

Re: Sieve of Eratosthenes

<ucajjm$3ncd$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1176&group=comp.lang.c%2B%2B#1176

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Fri, 25 Aug 2023 16:07:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ucajjm$3ncd$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
<uc8415$3i9b0$2@dont-email.me> <uc84mn$3ifc1$1@dont-email.me>
<uc857m$3ihua$1@dont-email.me>
Injection-Date: Fri, 25 Aug 2023 16:07:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="beb6f032e0a72efb867cae439a228d04";
logging-data="122253"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1825t8hvnKoQRFcEjNg6bPc"
Cancel-Lock: sha1:Q2r5LbUx1q/5/Epa5f+dPVlxJ0s=
 by: Mutt...@dastardlyhq.com - Fri, 25 Aug 2023 16:07 UTC

On Thu, 24 Aug 2023 19:49:43 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 24.08.2023 um 19:40 schrieb Muttley@dastardlyhq.com:
>> On Thu, 24 Aug 2023 19:29:11 +0200
>> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>> Am 24.08.2023 um 19:25 schrieb Muttley@dastardlyhq.com:
>>>> Your idea of elegance is completely orthogonal to most peoples.
>>>
>>> People who know C++ very well will appreciate my work.
>>
>> Obviously none of them are on this group.
>
>There aren't people who program like that, but in contrast
>to you most readers here understand that code.

Its not a case of not understanding it, its a case of I can't be arsed going
through it to figure it out. If you want to make a coding point KISS.

>> You never did tell us what job you did - so what area do you work in?
>
>I'm programming C++ / (C#) software for high frequency trading.

Home trader then.

Re: Sieve of Eratosthenes

<ucajkv$3nhe$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1177&group=comp.lang.c%2B%2B#1177

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Fri, 25 Aug 2023 16:07:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <ucajkv$3nhe$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <ubv92t$1r3l9$1@dont-email.me>
<uc06bc$203p7$1@dont-email.me> <uc0857$20cmk$1@dont-email.me>
<uc09e1$20jj6$1@dont-email.me> <uc0a19$20m3n$1@dont-email.me>
<uc0ca1$213lo$1@dont-email.me> <uc19v6$28t5s$1@dont-email.me>
<uc1m68$2afn4$1@dont-email.me> <uc1v1v$2brns$2@dont-email.me>
<uc2fqr$2egkl$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<uc54jp$2v0bk$1@dont-email.me> <uc559i$2v27t$2@dont-email.me>
<uc55r2$2v6us$1@dont-email.me> <uc566i$2v7nu$2@dont-email.me>
<uc5gub$318b7$1@dont-email.me> <uc5hvs$31g55$2@dont-email.me>
<uc83kf$3i8rj$1@dont-email.me> <uc83tr$3i9b0$1@dont-email.me>
<uc84ge$3iduk$1@dont-email.me>
<uc85c9$3ihua$2@dont-email.me>
Injection-Date: Fri, 25 Aug 2023 16:07:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="beb6f032e0a72efb867cae439a228d04";
logging-data="122414"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YWgCjLqxqINW0kPvXHKsE"
Cancel-Lock: sha1:SGd2NtFnhE1VHQEBoVbtRYFNbI0=
 by: Mutt...@dastardlyhq.com - Fri, 25 Aug 2023 16:07 UTC

On Thu, 24 Aug 2023 19:52:10 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 24.08.2023 um 19:37 schrieb Muttley@dastardlyhq.com:
>> They're analogous, not identical , but close enough. Both involve loading
>> data into memory and saving it out to disk before the operation can proceed
>> and in the case of ACID DBMSs the transaction data MUST be written to disk
>> before the operation can complete.
>
>But that is a very superficial comparison.
>And there are no transactions in paging either.

*sigh*

Forget it.

Re: Sieve of Eratosthenes

<ucajpq$3o15$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1178&group=comp.lang.c%2B%2B#1178

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Fri, 25 Aug 2023 18:10:35 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <ucajpq$3o15$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
<uc8415$3i9b0$2@dont-email.me> <uc84mn$3ifc1$1@dont-email.me>
<uc857m$3ihua$1@dont-email.me> <ucajjm$3ncd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 25 Aug 2023 16:10:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b587a1518818f1bb298ac3db843a8302";
logging-data="122917"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/60KLDapOAX5p05wNHfOWYroUaVfpvuSw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:h5P3ojlaCsBn9Al8kDwMU+WbXOA=
In-Reply-To: <ucajjm$3ncd$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Fri, 25 Aug 2023 16:10 UTC

Am 25.08.2023 um 18:07 schrieb Muttley@dastardlyhq.com:

> Its not a case of not understanding it, ...

Comment it and show that you understand it.

>>> You never did tell us what job you did - so what area do you work in?

>> I'm programming C++ / (C#) software for high frequency trading.

> Home trader then.

No, I'm no trading myself.

Re: Sieve of Eratosthenes

<ucak34$3qbv$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1179&group=comp.lang.c%2B%2B#1179

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Fri, 25 Aug 2023 16:15:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <ucak34$3qbv$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc2g1f$2eh5h$1@dont-email.me>
<uc2gjn$2ekj3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
<uc8415$3i9b0$2@dont-email.me> <uc84mn$3ifc1$1@dont-email.me>
<uc857m$3ihua$1@dont-email.me> <ucajjm$3ncd$1@dont-email.me>
<ucajpq$3o15$1@dont-email.me>
Injection-Date: Fri, 25 Aug 2023 16:15:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="beb6f032e0a72efb867cae439a228d04";
logging-data="125311"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198gBbc8ZTrydd4bcpUz7Zu"
Cancel-Lock: sha1:7BhmbTF4O46NN0ZDTw+ORcp/BEI=
 by: Mutt...@dastardlyhq.com - Fri, 25 Aug 2023 16:15 UTC

On Fri, 25 Aug 2023 18:10:35 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 25.08.2023 um 18:07 schrieb Muttley@dastardlyhq.com:
>
>> Its not a case of not understanding it, ...
>
>Comment it and show that you understand it.

Sorry pal, unlike you I have a life and have much more interesting things to
do than go through some dogs dinner code you posted by some random guy on
a newsgroup.

>>> I'm programming C++ / (C#) software for high frequency trading.
>
>> Home trader then.
>
>No, I'm no trading myself.

If you work for a fintec then I pity the devs who will have to maintain your
code in the future. More than likely they'll toss it and start again.

Re: Sieve of Eratosthenes

<ucak7v$3qo3$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1180&group=comp.lang.c%2B%2B#1180

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Fri, 25 Aug 2023 18:18:09 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ucak7v$3qo3$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
<uc8415$3i9b0$2@dont-email.me> <uc84mn$3ifc1$1@dont-email.me>
<uc857m$3ihua$1@dont-email.me> <ucajjm$3ncd$1@dont-email.me>
<ucajpq$3o15$1@dont-email.me> <ucak34$3qbv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 25 Aug 2023 16:18:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b587a1518818f1bb298ac3db843a8302";
logging-data="125699"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19S4Zehcc143ZlGa03j+lQBEY+ZbnFvims="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:aU1rHe/l9BkDz61PG7LaU5Bk0j8=
In-Reply-To: <ucak34$3qbv$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Fri, 25 Aug 2023 16:18 UTC

Am 25.08.2023 um 18:15 schrieb Muttley@dastardlyhq.com:
> On Fri, 25 Aug 2023 18:10:35 +0200
> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 25.08.2023 um 18:07 schrieb Muttley@dastardlyhq.com:
>>
>>> Its not a case of not understanding it, ...
>>
>> Comment it and show that you understand it.
>
> Sorry pal, ...

That's what I expected.

>
>>>> I'm programming C++ / (C#) software for high frequency trading.
>>
>>> Home trader then.
>>
>> No, I'm no trading myself.
>
> If you work for a fintec then I pity the devs who will have to maintain
> your code in the future. More than likely they'll toss it and start again.

The company I work for has more skilled staff like you.

Re: Sieve of Eratosthenes

<uccbk0$gdjk$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1186&group=comp.lang.c%2B%2B#1186

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Sat, 26 Aug 2023 08:03:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uccbk0$gdjk$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc2hsd$2eqis$1@dont-email.me>
<uc2ico$2eu3a$1@dont-email.me> <uc2iiq$2eu9j$1@dont-email.me>
<uc2ss5$2grks$1@dont-email.me> <uc2tru$2h0an$1@dont-email.me>
<uc2u4r$2h243$1@dont-email.me> <uc302f$2hahp$1@dont-email.me>
<uc4a9v$2qq8f$1@dont-email.me> <uc4e92$2rd5a$1@dont-email.me>
<1qmFM.783950$TPw2.627247@fx17.iad> <uc4uo3$2tv6l$1@dont-email.me>
<uc54qh$2v1bp$1@dont-email.me> <uc5559$2v27t$1@dont-email.me>
<uc55h8$2v57p$1@dont-email.me> <uc55lr$2v5is$1@dont-email.me>
<uc55uo$2v7k7$1@dont-email.me> <uc561h$2v7nu$1@dont-email.me>
<uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
<uc8415$3i9b0$2@dont-email.me> <uc84mn$3ifc1$1@dont-email.me>
<uc857m$3ihua$1@dont-email.me> <ucajjm$3ncd$1@dont-email.me>
<ucajpq$3o15$1@dont-email.me> <ucak34$3qbv$1@dont-email.me>
<ucak7v$3qo3$1@dont-email.me>
Injection-Date: Sat, 26 Aug 2023 08:03:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="25753f8c3f5124524da61367343eaf6b";
logging-data="538228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ok0+9JqWqmBLGxbAG8C9r"
Cancel-Lock: sha1:4P5zMbp+AZbzRBnZEdi1WZXPzsI=
 by: Mutt...@dastardlyhq.com - Sat, 26 Aug 2023 08:03 UTC

On Fri, 25 Aug 2023 18:18:09 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 25.08.2023 um 18:15 schrieb Muttley@dastardlyhq.com:
>> On Fri, 25 Aug 2023 18:10:35 +0200
>> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>> Am 25.08.2023 um 18:07 schrieb Muttley@dastardlyhq.com:
>>>
>>>> Its not a case of not understanding it, ...
>>>
>>> Comment it and show that you understand it.
>>
>> Sorry pal, ...
>
>That's what I expected.

The arrogance that you expect people to have to figure out your code then
comment on it is quite breathtaking.

>> If you work for a fintec then I pity the devs who will have to maintain
>> your code in the future. More than likely they'll toss it and start again.
>
>The company I work for has more skilled staff like you.

Ah, you think you're so much better than everyone else there. What a surprise.

Re: Sieve of Eratosthenes

<ucccdd$ghel$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1187&group=comp.lang.c%2B%2B#1187

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Sat, 26 Aug 2023 10:16:48 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <ucccdd$ghel$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc2ico$2eu3a$1@dont-email.me>
<uc2iiq$2eu9j$1@dont-email.me> <uc2ss5$2grks$1@dont-email.me>
<uc2tru$2h0an$1@dont-email.me> <uc2u4r$2h243$1@dont-email.me>
<uc302f$2hahp$1@dont-email.me> <uc4a9v$2qq8f$1@dont-email.me>
<uc4e92$2rd5a$1@dont-email.me> <1qmFM.783950$TPw2.627247@fx17.iad>
<uc4uo3$2tv6l$1@dont-email.me> <uc54qh$2v1bp$1@dont-email.me>
<uc5559$2v27t$1@dont-email.me> <uc55h8$2v57p$1@dont-email.me>
<uc55lr$2v5is$1@dont-email.me> <uc55uo$2v7k7$1@dont-email.me>
<uc561h$2v7nu$1@dont-email.me> <uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
<uc8415$3i9b0$2@dont-email.me> <uc84mn$3ifc1$1@dont-email.me>
<uc857m$3ihua$1@dont-email.me> <ucajjm$3ncd$1@dont-email.me>
<ucajpq$3o15$1@dont-email.me> <ucak34$3qbv$1@dont-email.me>
<ucak7v$3qo3$1@dont-email.me> <uccbk0$gdjk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 26 Aug 2023 08:16:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3e6943790182c1617cc610032cf207b9";
logging-data="542165"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++7Dmh0L69C1NG4Jyg8re1J/GQS8y/UX0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:oU6OMRpAa7waLFpOc+ODntkaXZk=
Content-Language: de-DE
In-Reply-To: <uccbk0$gdjk$1@dont-email.me>
 by: Bonita Montero - Sat, 26 Aug 2023 08:16 UTC

Am 26.08.2023 um 10:03 schrieb Muttley@dastardlyhq.com:

>>> If you work for a fintec then I pity the devs who will have to maintain
>>> your code in the future. More than likely they'll toss it and start again.

>> The company I work for has more skilled staff like you.

> Ah, you think you're so much better than everyone else there. What a surprise.

Stick with your C code and continue to ask beginner's C++ questions.

Re: Sieve of Eratosthenes

<uccd11$gkh8$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1188&group=comp.lang.c%2B%2B#1188

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Sat, 26 Aug 2023 08:27:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uccd11$gkh8$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc2ico$2eu3a$1@dont-email.me>
<uc2iiq$2eu9j$1@dont-email.me> <uc2ss5$2grks$1@dont-email.me>
<uc2tru$2h0an$1@dont-email.me> <uc2u4r$2h243$1@dont-email.me>
<uc302f$2hahp$1@dont-email.me> <uc4a9v$2qq8f$1@dont-email.me>
<uc4e92$2rd5a$1@dont-email.me> <1qmFM.783950$TPw2.627247@fx17.iad>
<uc4uo3$2tv6l$1@dont-email.me> <uc54qh$2v1bp$1@dont-email.me>
<uc5559$2v27t$1@dont-email.me> <uc55h8$2v57p$1@dont-email.me>
<uc55lr$2v5is$1@dont-email.me> <uc55uo$2v7k7$1@dont-email.me>
<uc561h$2v7nu$1@dont-email.me> <uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<uc5itm$31p3c$1@dont-email.me> <uc83qh$3i9s9$1@dont-email.me>
<uc8415$3i9b0$2@dont-email.me> <uc84mn$3ifc1$1@dont-email.me>
<uc857m$3ihua$1@dont-email.me> <ucajjm$3ncd$1@dont-email.me>
<ucajpq$3o15$1@dont-email.me> <ucak34$3qbv$1@dont-email.me>
<ucak7v$3qo3$1@dont-email.me> <uccbk0$gdjk$1@dont-email.me>
<ucccdd$ghel$1@dont-email.me>
Injection-Date: Sat, 26 Aug 2023 08:27:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="25753f8c3f5124524da61367343eaf6b";
logging-data="545320"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0Im7DKjH59KJwfPm74R7B"
Cancel-Lock: sha1:FF4+m7BdEuwgkDG19+wt7PHnq3E=
 by: Mutt...@dastardlyhq.com - Sat, 26 Aug 2023 08:27 UTC

On Sat, 26 Aug 2023 10:16:48 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 26.08.2023 um 10:03 schrieb Muttley@dastardlyhq.com:
>
>>>> If you work for a fintec then I pity the devs who will have to maintain
>>>> your code in the future. More than likely they'll toss it and start again.
>
>>> The company I work for has more skilled staff like you.
>
>> Ah, you think you're so much better than everyone else there. What a
>surprise.
>
>Stick with your C code and continue to ask beginner's C++ questions.

Do carry on with your pompous assery, I'll get some popcorn :)

Re: Sieve of Eratosthenes

<ucduk6$prn0$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1206&group=comp.lang.c%2B%2B#1206

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Sat, 26 Aug 2023 15:33:43 -0700
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <ucduk6$prn0$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me> <uc0ca1$213lo$1@dont-email.me>
<uc19v6$28t5s$1@dont-email.me> <uc1m68$2afn4$1@dont-email.me>
<uc1v1v$2brns$2@dont-email.me> <uc2fqr$2egkl$1@dont-email.me>
<uc2g1f$2eh5h$1@dont-email.me> <uc2gjn$2ekj3$1@dont-email.me>
<uc2hsd$2eqis$1@dont-email.me> <uc2ico$2eu3a$1@dont-email.me>
<uc2iiq$2eu9j$1@dont-email.me> <uc2ss5$2grks$1@dont-email.me>
<uc2tru$2h0an$1@dont-email.me> <uc2u4r$2h243$1@dont-email.me>
<uc302f$2hahp$1@dont-email.me> <uc4a9v$2qq8f$1@dont-email.me>
<uc4e92$2rd5a$1@dont-email.me> <1qmFM.783950$TPw2.627247@fx17.iad>
<uc4uo3$2tv6l$1@dont-email.me> <uc54qh$2v1bp$1@dont-email.me>
<uc5559$2v27t$1@dont-email.me> <uc55h8$2v57p$1@dont-email.me>
<uc55lr$2v5is$1@dont-email.me> <uc55uo$2v7k7$1@dont-email.me>
<uc561h$2v7nu$1@dont-email.me> <uc5gqi$317jq$1@dont-email.me>
<bcc0ed33-bbad-41b4-a649-5d30035936d4n@googlegroups.com>
<uc5igi$31n1c$1@dont-email.me> <uc5im9$31gt6$2@dont-email.me>
<c64a0900-e4ee-4b4c-97ff-77de3169668an@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 26 Aug 2023 22:33:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8e1daed50adb974a734bb3c89635a581";
logging-data="847584"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OHpp/loOSJlVB1lrYyd8eEozViToktDE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:7Gt/QMjiW7g6b+2RhIP/2u6qvmQ=
In-Reply-To: <c64a0900-e4ee-4b4c-97ff-77de3169668an@googlegroups.com>
Content-Language: en-US
 by: Chris M. Thomasson - Sat, 26 Aug 2023 22:33 UTC

On 8/23/2023 11:37 AM, Daniel wrote:
> On Wednesday, August 23, 2023 at 2:21:18 PM UTC-4, Chris M. Thomasson wrote:
>>>
>> Bonita, you have a lot of experience wrt verbal assaults, right?
>
> How would you know? You don't seem to have _any_ experience of it
> yourself :-) Alf neither.

:^)

Re: Sieve of Eratosthenes

<56146f63-17d7-40cc-8c42-4f29c922a8c4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1209&group=comp.lang.c%2B%2B#1209

  copy link   Newsgroups: comp.lang.c++
X-Received: by 2002:a05:622a:244:b0:3fd:df16:18f4 with SMTP id c4-20020a05622a024400b003fddf1618f4mr738321qtx.8.1693164410034;
Sun, 27 Aug 2023 12:26:50 -0700 (PDT)
X-Received: by 2002:a17:902:cecb:b0:1c0:d418:8806 with SMTP id
d11-20020a170902cecb00b001c0d4188806mr2005775plg.12.1693164409630; Sun, 27
Aug 2023 12:26:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.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.c++
Date: Sun, 27 Aug 2023 12:26:48 -0700 (PDT)
In-Reply-To: <86msyq5rqu.fsf@linuxsc.com>
Injection-Info: google-groups.googlegroups.com; posting-host=145.14.19.203; posting-account=pysjKgkAAACLegAdYDFznkqjgx_7vlUK
NNTP-Posting-Host: 145.14.19.203
References: <ubijff$3ahf3$1@dont-email.me> <ubjedg$3emtj$1@dont-email.me>
<ubjrqh$3g7ve$1@redfloyd.dont-email.me> <86msyq5rqu.fsf@linuxsc.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <56146f63-17d7-40cc-8c42-4f29c922a8c4n@googlegroups.com>
Subject: Re: Sieve of Eratosthenes
From: oot...@hot.ee (Öö Tiib)
Injection-Date: Sun, 27 Aug 2023 19:26:50 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1414
 by: Öö Tiib - Sun, 27 Aug 2023 19:26 UTC

On Thursday, 17 August 2023 at 05:26:37 UTC+3, Tim Rentsch wrote:
>
> I suggest computing all 32 bit primes for the benchmark
> tests. Shouldn't take too long.
>
Took 14 minutes to find those 203280221 primes single threaded
on i7-8550U.

Re: Sieve of Eratosthenes

<874jkknizq.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1211&group=comp.lang.c%2B%2B#1211

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Mon, 28 Aug 2023 00:49:45 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <874jkknizq.fsf@bsb.me.uk>
References: <ubijff$3ahf3$1@dont-email.me> <ubjedg$3emtj$1@dont-email.me>
<ubjrqh$3g7ve$1@redfloyd.dont-email.me> <86msyq5rqu.fsf@linuxsc.com>
<56146f63-17d7-40cc-8c42-4f29c922a8c4n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="1c35b718727ecba87d6437feb1cbcad9";
logging-data="1456117"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZF8DF0UJMvGQOfLsbVWJMw9cmcfPaPYw="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:y020rHm567Mfm1bOrWCT+GDdZUU=
sha1:XVKjJ2IAUK14Vc7TkUJRWfAmIlY=
X-BSB-Auth: 1.5822a8c356b0cce4e0c8.20230828004945BST.874jkknizq.fsf@bsb.me.uk
 by: Ben Bacarisse - Sun, 27 Aug 2023 23:49 UTC

Öö Tiib <ootiib@hot.ee> writes:

> On Thursday, 17 August 2023 at 05:26:37 UTC+3, Tim Rentsch wrote:
>>
>> I suggest computing all 32 bit primes for the benchmark
>> tests. Shouldn't take too long.
>>
> Took 14 minutes to find those 203280221 primes single threaded
> on i7-8550U.

What do you mean by find? Do you include printing them out because that
will depend rather more on the OS.

I wanted to try a newer algorithm, so I coded up a rather naive version
of Atkin & Bernstein's sieve in C. It needs some tidying and I imagine
a bit can be shaved off the time.

It can generate a bitmap of the 203280221 primes and then count them in
about 40 seconds on an i5-8265U CPU @ 1.60GHz (single threaded). It
takes about 55 seconds to write them (in decimal) to a file. The result
is over 2GB:

$ wc primes
203280221 203280221 2178719347 primes

--
Ben.

Re: Sieve of Eratosthenes

<uch71k$1i84o$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1212&group=comp.lang.c%2B%2B#1212

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Eratosthenes
Date: Mon, 28 Aug 2023 06:15:49 +0200
Organization: A noiseless patient Spider
Lines: 100
Message-ID: <uch71k$1i84o$1@dont-email.me>
References: <ubijff$3ahf3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Aug 2023 04:15:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="023d964efe2e78efd860082b5387a0d7";
logging-data="1646744"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ABAPjCCxJUkr00ukufx9dke7xvOgu/8A="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:sfmvNJQTFSTkdV5U4/a1aQ0RQHA=
Content-Language: de-DE
In-Reply-To: <ubijff$3ahf3$1@dont-email.me>
 by: Bonita Montero - Mon, 28 Aug 2023 04:15 UTC

I optimized the code somewhat further:

#include <iostream>
#include <vector>
#include <charconv>
#include <string_view>
#include <algorithm>
#include <fstream>
#include <cctype>
#include <cstring>
#include <bit>
#include "ndi.h"

#if defined(_MSC_VER)
#pragma warning(disable: 26495) // uninitialized member
#endif

using namespace std;

int main( int argc, char **argv )
{ constexpr size_t BUF_SIZE = 0x100000;
try
{
size_t end;
if( argc < 2 )
return EXIT_FAILURE;
char const *sizeStr = argv[1];
bool hex = sizeStr[0] == '0' && (sizeStr[1] == 'x' || sizeStr[1] == 'X');
sizeStr += 2 * hex;
if( from_chars_result fcr = from_chars( sizeStr, sizeStr + strlen(
sizeStr ), end, !hex ? 10 : 16 ); (bool)fcr.ec || *fcr.ptr )
return EXIT_FAILURE;
if( size_t e = end; ++end + 7 < e )
throw bad_alloc();
using bit_vec = vector<uint8_t>;
using bit_it = bit_vec::iterator;
bit_vec sieve( (end + 7) / 8, -1 );
ofstream ofs;
using ndi_vec = vector<ndi<char>>;
using ndi_vec_it = ndi_vec::iterator;
constexpr size_t AHEAD = 32;
ndi_vec printBuf;
ndi_vec_it bufBegin, bufEnd, bufFlush;
if( argc < 3 || *argv[2] )
{
ofs.exceptions( ofstream::failbit | ofstream::badbit );
ofs.open( argc >= 3 ? argv[2] : "primes.txt", ofstream::trunc );
printBuf.resize( BUF_SIZE + AHEAD - 1 );
bufBegin = printBuf.begin();
bufEnd = bufBegin;
bufFlush = bufBegin + BUF_SIZE;
}
auto print = [&]() { ofs << string_view( &*to_address( bufBegin ),
&*to_address( bufEnd ) ); };
for( size_t p = 2; p != end; )
{
bit_it pSieve = sieve.begin();
for( size_t m = p; (m += p) < end; )
pSieve[m / 8] &= ~(1u << m % 8);
pSieve += ++p / 8;
for( uint8_t m = 1u << p % 8, mNew; ; ++p )
{
if( p == end ) [[unlikely]]
goto brk;
if( *pSieve & m ) [[unlikely]]
break;
mNew = rotl( m, 1 );
pSieve += mNew < m;
m = mNew;
}
if( !ofs.is_open() )
continue;
auto [ptr, ec] = to_chars( &*bufEnd, &*to_address( bufEnd + (AHEAD -
1) ), p );
if( (bool)ec ) [[unlikely]]
throw system_error( (int)ec, generic_category(), "converson failed" );
bufEnd = ptr - &*bufBegin + bufBegin; // NOP
*bufEnd++ = '\n';
if( bufEnd >= bufFlush )
print(),
bufEnd = bufBegin;
}
brk:
print();
return EXIT_SUCCESS;
}
catch( bad_alloc const & )
{
cout << "out of memory" << endl;
}
catch( ios_base::failure const & )
{
cout << "I/O error" << endl;
}
catch( system_error const &se )
{
cout << se.what() << endl;
}
}

Re: Sieve of Eratosthenes

<4f7eeaa9-47d5-4782-864b-476746654325n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1213&group=comp.lang.c%2B%2B#1213

  copy link   Newsgroups: comp.lang.c++
X-Received: by 2002:a05:622a:1b8d:b0:3f6:b052:3431 with SMTP id bp13-20020a05622a1b8d00b003f6b0523431mr750486qtb.5.1693203839882;
Sun, 27 Aug 2023 23:23:59 -0700 (PDT)
X-Received: by 2002:a17:90a:f2c1:b0:26d:323c:a9b4 with SMTP id
gt1-20020a17090af2c100b0026d323ca9b4mr5877169pjb.3.1693203839469; Sun, 27 Aug
2023 23:23:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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.c++
Date: Sun, 27 Aug 2023 23:23:58 -0700 (PDT)
In-Reply-To: <874jkknizq.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=145.14.19.203; posting-account=pysjKgkAAACLegAdYDFznkqjgx_7vlUK
NNTP-Posting-Host: 145.14.19.203
References: <ubijff$3ahf3$1@dont-email.me> <ubjedg$3emtj$1@dont-email.me>
<ubjrqh$3g7ve$1@redfloyd.dont-email.me> <86msyq5rqu.fsf@linuxsc.com>
<56146f63-17d7-40cc-8c42-4f29c922a8c4n@googlegroups.com> <874jkknizq.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4f7eeaa9-47d5-4782-864b-476746654325n@googlegroups.com>
Subject: Re: Sieve of Eratosthenes
From: oot...@hot.ee (Öö Tiib)
Injection-Date: Mon, 28 Aug 2023 06:23:59 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2708
 by: Öö Tiib - Mon, 28 Aug 2023 06:23 UTC

On Monday, 28 August 2023 at 02:50:05 UTC+3, Ben Bacarisse wrote:
> Öö Tiib <oot...@hot.ee> writes:
>
> > On Thursday, 17 August 2023 at 05:26:37 UTC+3, Tim Rentsch wrote:
> >>
> >> I suggest computing all 32 bit primes for the benchmark
> >> tests. Shouldn't take too long.
> >>
> > Took 14 minutes to find those 203280221 primes single threaded
> > on i7-8550U.
> What do you mean by find? Do you include printing them out because that
> will depend rather more on the OS.
>
I did try to invent a sieve algorithm this weekend, it worked, but bit
sluggish, so I posted it.
I did not measure printing or storing to file, only sieving and counting
(to test that there are 203280221).

> I wanted to try a newer algorithm, so I coded up a rather naive version
> of Atkin & Bernstein's sieve in C. It needs some tidying and I imagine
> a bit can be shaved off the time.
>
> It can generate a bitmap of the 203280221 primes and then count them in
> about 40 seconds on an i5-8265U CPU @ 1.60GHz (single threaded). It
> takes about 55 seconds to write them (in decimal) to a file. The result
> is over 2GB:
>
> $ wc primes
> 203280221 203280221 2178719347 primes
>
Thanks, so I apparently need to optimize my algorithm at least 30 times
faster for it to be worth anything. Maybe next weekend.


devel / comp.lang.c++ / Re: Sieve of Eratosthenes

Pages:123456
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor