Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #91263 > unrolled thread

Sieve of Eratosthenes

Started byBonita Montero <Bonita.Montero@gmail.com>
First post2023-08-16 15:37 +0200
Last post2023-08-30 19:02 +0200
Articles 20 on this page of 146 — 13 participants

Back to article view | Back to comp.lang.c++


Contents

  Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-16 15:37 +0200
    Re: Sieve of Eratosthenes wij <wyniijj5@gmail.com> - 2023-08-16 10:57 -0700
      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-16 20:21 +0200
        Re: Sieve of Eratosthenes wij <wyniijj5@gmail.com> - 2023-08-16 12:17 -0700
      Re: Sieve of Eratosthenes Paavo Helde <eesnimi@osa.pri.ee> - 2023-08-16 21:44 +0300
        Re: Sieve of Eratosthenes wij <wyniijj5@gmail.com> - 2023-08-16 12:09 -0700
    Re: Sieve of Eratosthenes "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-08-16 23:17 +0200
      Re: Sieve of Eratosthenes "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-08-16 23:21 +0200
      Re: Sieve of Eratosthenes "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-08-16 23:39 +0200
        Re: Sieve of Eratosthenes "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-08-16 23:59 +0200
          Re: Sieve of Eratosthenes "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-08-16 16:27 -0700
      Re: Sieve of Eratosthenes red floyd <no.spam.here@its.invalid> - 2023-08-16 18:06 -0700
        Re: Sieve of Eratosthenes Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-08-16 19:26 -0700
          Re: Sieve of Eratosthenes Öö Tiib <ootiib@hot.ee> - 2023-08-27 12:26 -0700
            Re: Sieve of Eratosthenes Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-08-28 00:49 +0100
              Re: Sieve of Eratosthenes Öö Tiib <ootiib@hot.ee> - 2023-08-27 23:23 -0700
                Re: Sieve of Eratosthenes "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-08-28 15:53 +0200
                  Re: Sieve of Eratosthenes Öö Tiib <ootiib@hot.ee> - 2023-08-28 09:03 -0700
                    Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-28 18:47 +0200
                      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-30 13:01 +0200
                        Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-30 15:38 +0000
                          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-30 18:31 +0200
                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-31 08:22 +0000
                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-31 11:00 +0200
                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-31 15:23 +0000
                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-31 17:28 +0200
                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-31 11:52 +0200
                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-31 15:22 +0000
                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-31 17:32 +0200
                                    Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-31 15:44 +0000
                                      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-31 17:50 +0200
                                        Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-09-01 10:26 +0000
                                          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-09-01 12:59 +0200
                                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-09-01 12:30 +0000
                                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-09-01 15:33 +0200
                                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-09-01 13:49 +0000
                                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-09-01 15:59 +0200
                                                    Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-09-01 14:03 +0000
                                                      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-09-01 16:15 +0200
                                                        Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-09-01 14:39 +0000
                                                          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-09-01 16:59 +0200
                                                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-09-01 15:01 +0000
                                                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-09-01 17:05 +0200
                                                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-09-01 15:08 +0000
                                                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-09-01 17:15 +0200
                                Re: Sieve of Eratosthenes Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-08-31 21:33 +0100
                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-09-01 05:35 +0200
                              Re: Sieve of Eratosthenes scott@slp53.sl.home (Scott Lurndal) - 2023-08-31 14:43 +0000
                                Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-31 16:57 +0200
                                  Re: Sieve of Eratosthenes scott@slp53.sl.home (Scott Lurndal) - 2023-08-31 16:10 +0000
                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-31 15:25 +0000
                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-31 17:33 +0200
                                    Re: Sieve of Eratosthenes scott@slp53.sl.home (Scott Lurndal) - 2023-08-31 16:12 +0000
                  Re: Sieve of Eratosthenes Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-08-28 23:08 +0100
              Re: Sieve of Eratosthenes Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-08-28 15:15 -0700
                Re: Sieve of Eratosthenes Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-08-28 23:41 +0100
                  Re: Sieve of Eratosthenes Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-08-30 17:45 -0700
                    Re: Sieve of Eratosthenes Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-08-31 03:18 +0100
            Re: Sieve of Eratosthenes Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-08-28 15:08 -0700
        Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-17 08:42 +0200
          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-17 11:38 +0200
            Re: Sieve of Eratosthenes "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-08-17 12:50 +0200
              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-17 13:10 +0200
              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-17 17:47 +0200
              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-21 11:00 +0200
                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-21 17:19 +0000
                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-21 19:50 +0200
                    Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-21 18:12 +0000
                      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-21 20:22 +0200
                        Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-21 19:01 +0000
                          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 05:27 +0200
                            Re: Sieve of Eratosthenes Öö Tiib <ootiib@hot.ee> - 2023-08-21 23:25 -0700
                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 11:23 +0200
                                Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 11:59 +0200
                                Re: Sieve of Eratosthenes Öö Tiib <ootiib@hot.ee> - 2023-08-22 05:15 -0700
                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 14:23 +0200
                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-22 06:56 +0000
                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 11:27 +0200
                                Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 11:34 +0200
                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-22 14:13 +0000
                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 16:17 +0200
                                    Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-22 14:27 +0000
                                      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 16:48 +0200
                                        Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-22 14:57 +0000
                                          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 17:00 +0200
                                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-22 17:56 +0000
                                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 20:13 +0200
                                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-22 18:18 +0000
                                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-22 20:50 +0200
                                                    Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-23 06:51 +0000
                                                      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 09:59 +0200
                                                        Re: Sieve of Eratosthenes Richard Damon <Richard@Damon-Family.org> - 2023-08-23 07:52 -0400
                                                          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 14:40 +0200
                                                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-23 14:24 +0000
                                                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 16:30 +0200
                                                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-23 14:36 +0000
                                                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 16:38 +0200
                                                                    Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-23 14:43 +0000
                                                                      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 16:45 +0200
                                                                        Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-23 17:49 +0000
                                                                          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 20:05 +0200
                                                                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-24 17:18 +0000
                                                                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-24 19:20 +0200
                                                                          Re: Sieve of Eratosthenes Daniel <danielaparker@gmail.com> - 2023-08-23 11:13 -0700
                                                                            Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 20:17 +0200
                                                                              Re: Sieve of Eratosthenes "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-08-23 11:20 -0700
                                                                                Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 20:24 +0200
                                                                                  Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-24 17:25 +0000
                                                                                    Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-24 19:29 +0200
                                                                                      Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-24 17:40 +0000
                                                                                        Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-24 19:49 +0200
                                                                                          Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-25 16:07 +0000
                                                                                            Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-25 18:10 +0200
                                                                                              Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-25 16:15 +0000
                                                                                                Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-25 18:18 +0200
                                                                                                  Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-26 08:03 +0000
                                                                                                    Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-26 10:16 +0200
                                                                                                      Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-26 08:27 +0000
                                                                                Re: Sieve of Eratosthenes Daniel <danielaparker@gmail.com> - 2023-08-23 11:37 -0700
                                                                                  Re: Sieve of Eratosthenes "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-08-26 15:33 -0700
                                                        Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-23 14:20 +0000
                                                          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 16:32 +0200
                                                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-23 14:41 +0000
                                                              Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 16:47 +0200
                                                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-23 17:51 +0000
                                                                  Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-23 20:09 +0200
                                                                    Re: Sieve of Eratosthenes scott@slp53.sl.home (Scott Lurndal) - 2023-08-23 18:51 +0000
                                                                      Re: Sieve of Eratosthenes "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-08-24 11:25 -0700
                                                                    Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-24 17:22 +0000
                                                                      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-24 19:27 +0200
                                                                        Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-24 17:37 +0000
                                                                          Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-24 19:52 +0200
                                                                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-25 16:07 +0000
                                                          Re: Sieve of Eratosthenes Daniel <danielaparker@gmail.com> - 2023-08-23 08:00 -0700
                                          Re: Sieve of Eratosthenes scott@slp53.sl.home (Scott Lurndal) - 2023-08-22 15:49 +0000
                                            Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-22 17:58 +0000
                                              Re: Sieve of Eratosthenes scott@slp53.sl.home (Scott Lurndal) - 2023-08-22 18:24 +0000
                                                Re: Sieve of Eratosthenes Muttley@dastardlyhq.com - 2023-08-23 06:50 +0000
      Re: Sieve of Eratosthenes wij <wyniijj5@gmail.com> - 2023-08-17 13:43 -0700
        Re: Sieve of Eratosthenes "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-08-18 02:00 +0200
          Re: Sieve of Eratosthenes wij <wyniijj5@gmail.com> - 2023-08-18 05:01 -0700
            Re: Sieve of Eratosthenes wij <wyniijj5@gmail.com> - 2023-08-18 17:02 -0700
    Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-28 06:15 +0200
    Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-28 09:43 +0200
    Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-29 20:34 +0200
      Re: Sieve of Eratosthenes Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-30 19:02 +0200

Page 2 of 8 — ← Prev page 1 [2] 3 4 5 6 7 8  Next page →


#91472

FromMuttley@dastardlyhq.com
Date2023-08-30 15:38 +0000
Message-ID<ucnnop$2plof$1@dont-email.me>
In reply to#91471
On Wed, 30 Aug 2023 13:01:16 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>	if( argc < 3 || *argv[2] )
>		ofs.exceptions( ofstream::failbit | ofstream::badbit ),
>		ofs.open( argc >= 3 ? argv[2] : "primes.txt", ofstream::trunc ),
>		printBuf.reserve( BUF_SIZE + 31 );

Commas as statement seperators instead of using a bracketed block? Are you
posting this code for lols?

[toc] | [prev] | [next] | [standalone]


#91473

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-08-30 18:31 +0200
Message-ID<ucnqt4$2q4ic$1@dont-email.me>
In reply to#91472
Am 30.08.2023 um 17:38 schrieb Muttley@dastardlyhq.com:
> On Wed, 30 Aug 2023 13:01:16 +0200
> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> 	if( argc < 3 || *argv[2] )
>> 		ofs.exceptions( ofstream::failbit | ofstream::badbit ),
>> 		ofs.open( argc >= 3 ? argv[2] : "primes.txt", ofstream::trunc ),
>> 		printBuf.reserve( BUF_SIZE + 31 );

> Commas as statement seperators instead of using a bracketed block?
> Are you posting this code for lols?

I often concatenate a small number of statements with the comma-operator
to save screen space. I never had any issues with that. That's just a
matter of personal taste. If you're noticing this until now, I'm going
to assume that you haven't really looked at the previous code.
But that's just the syntax issue. My code is also superior in terms of
safety (iterator debuggin) and performance (+2/3 more performance with
g++ 12 and a Sklake-CPU).

[toc] | [prev] | [next] | [standalone]


#91479

FromMuttley@dastardlyhq.com
Date2023-08-31 08:22 +0000
Message-ID<ucpikj$35rda$1@dont-email.me>
In reply to#91473
On Wed, 30 Aug 2023 18:31:32 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 30.08.2023 um 17:38 schrieb Muttley@dastardlyhq.com:
>> On Wed, 30 Aug 2023 13:01:16 +0200
>> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>> 	if( argc < 3 || *argv[2] )
>>> 		ofs.exceptions( ofstream::failbit | ofstream::badbit ),
>>> 		ofs.open( argc >= 3 ? argv[2] : "primes.txt", ofstream::trunc ),
>>> 		printBuf.reserve( BUF_SIZE + 31 );
>
>> Commas as statement seperators instead of using a bracketed block?
>> Are you posting this code for lols?
>
>I often concatenate a small number of statements with the comma-operator
>to save screen space. I never had any issues with that. That's just a

To save space? Seriously??

>matter of personal taste. If you're noticing this until now, I'm going

Its not just personal taste, it makes the code harder to parse for anyone
who has to maintain it and could easily lead to logical errors if someone
modifies it and forgets to replace the ; with a , at the end. 

>to assume that you haven't really looked at the previous code.
>But that's just the syntax issue. My code is also superior in terms of
>safety (iterator debuggin) and performance (+2/3 more performance with
>g++ 12 and a Sklake-CPU).

Yes, we know how wonderful your code is after you seem to spend multiple days
on some trivial task. Obviously no one else could ever manage what you did,
you're a coding god.

[toc] | [prev] | [next] | [standalone]


#91480

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-08-31 11:00 +0200
Message-ID<ucpkqm$364pb$1@dont-email.me>
In reply to#91479
Am 31.08.2023 um 10:22 schrieb Muttley@dastardlyhq.com:

> To save space? Seriously??

It's my taste.

> Its not just personal taste, it makes the code harder to parse for anyone
> who has to maintain ...

Not true, you just feel unsecure with that for whaterver reason.

> Yes, we know how wonderful your code is after you seem to spend multiple days
> on some trivial task. ...

The task is not trivial if you consider my solution.
You won't manage to have it that fast.

[toc] | [prev] | [next] | [standalone]


#91486

FromMuttley@dastardlyhq.com
Date2023-08-31 15:23 +0000
Message-ID<ucqb8u$3ben2$1@dont-email.me>
In reply to#91480
On Thu, 31 Aug 2023 11:00:06 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 31.08.2023 um 10:22 schrieb Muttley@dastardlyhq.com:
>
>> To save space? Seriously??
>
>It's my taste.
>
>> Its not just personal taste, it makes the code harder to parse for anyone
>> who has to maintain ...
>
>Not true, you just feel unsecure with that for whaterver reason.

You sound like the python devs who claim there's no problem with significant
whitespace with indentation.

[toc] | [prev] | [next] | [standalone]


#91488

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-08-31 17:28 +0200
Message-ID<ucqbjq$3bg6h$1@dont-email.me>
In reply to#91486
Am 31.08.2023 um 17:23 schrieb Muttley@dastardlyhq.com:

> You sound like the python devs who claim there's no problem with significant
> whitespace with indentation.

You're too compulsive for that world.

[toc] | [prev] | [next] | [standalone]


#91482

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-08-31 11:52 +0200
Message-ID<ucpns9$36iap$1@dont-email.me>
In reply to#91479
Am 31.08.2023 um 10:22 schrieb Muttley@dastardlyhq.com:

> Yes, we know how wonderful your code is after you seem to spend multiple days
> on some trivial task. Obviously no one else could ever manage what you did,
> you're a coding god.

I just benchmarked my code with an upper bound of 1E3 against your code
on a Skylake CPU with g++ 12 and -march=native. My code runs about 0.9s,
your code takes 5.26s. Any questions ?

[toc] | [prev] | [next] | [standalone]


#91485

FromMuttley@dastardlyhq.com
Date2023-08-31 15:22 +0000
Message-ID<ucqb70$3beeo$1@dont-email.me>
In reply to#91482
On Thu, 31 Aug 2023 11:52:09 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 31.08.2023 um 10:22 schrieb Muttley@dastardlyhq.com:
>
>> Yes, we know how wonderful your code is after you seem to spend multiple days
>
>> on some trivial task. Obviously no one else could ever manage what you did,
>> you're a coding god.
>
>I just benchmarked my code with an upper bound of 1E3 against your code
>on a Skylake CPU with g++ 12 and -march=native. My code runs about 0.9s,
>your code takes 5.26s. Any questions ?

Yes , do you have a life? My code took about 20 mins to write , you seem to
have been working on yours for over a week now.

[toc] | [prev] | [next] | [standalone]


#91489

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-08-31 17:32 +0200
Message-ID<ucqbpu$3bg6h$2@dont-email.me>
In reply to#91485
Am 31.08.2023 um 17:22 schrieb Muttley@dastardlyhq.com:
> On Thu, 31 Aug 2023 11:52:09 +0200
> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 31.08.2023 um 10:22 schrieb Muttley@dastardlyhq.com:
>>
>>> Yes, we know how wonderful your code is after you seem to spend multiple days
>>
>>> on some trivial task. Obviously no one else could ever manage what you did,
>>> you're a coding god.
>>
>> I just benchmarked my code with an upper bound of 1E3 against your code
>> on a Skylake CPU with g++ 12 and -march=native. My code runs about 0.9s,
>> your code takes 5.26s. Any questions ?
> 
> Yes , do you have a life? My code took about 20 mins to write , you seem to
> have been working on yours for over a week now.

You complained about my code and I explained why it was more complex.
You probably have nothing more to say about that. With the questions
you usually ask about C++, I assume that you would not be able to
write such secure and performance code.
Writing performant code is part of my job. I write software for high
frequency trading, so you have to think about which constructs result
in which code and how efficient it is.

[toc] | [prev] | [next] | [standalone]


#91491

FromMuttley@dastardlyhq.com
Date2023-08-31 15:44 +0000
Message-ID<ucqcgo$3bks0$1@dont-email.me>
In reply to#91489
On Thu, 31 Aug 2023 17:32:15 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Writing performant code is part of my job. I write software for high
>frequency trading, so you have to think about which constructs result
>in which code and how efficient it is.

HFC is far more impacted by network delays than any minor inefficiencies in 
the software. Its highly I/O bound.

[toc] | [prev] | [next] | [standalone]


#91492

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-08-31 17:50 +0200
Message-ID<ucqcrv$3bm0r$1@dont-email.me>
In reply to#91491
Am 31.08.2023 um 17:44 schrieb Muttley@dastardlyhq.com:

> HFC is far more impacted by network delays than any minor inefficiencies in
> the software. Its highly I/O bound.

Read the Wikipedia article about HFC then you won't need to elaborate
everything by your own ideas.

[toc] | [prev] | [next] | [standalone]


#91500

FromMuttley@dastardlyhq.com
Date2023-09-01 10:26 +0000
Message-ID<ucse7r$3o73g$1@dont-email.me>
In reply to#91492
On Thu, 31 Aug 2023 17:50:24 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 31.08.2023 um 17:44 schrieb Muttley@dastardlyhq.com:
>
>> HFC is far more impacted by network delays than any minor inefficiencies in
>> the software. Its highly I/O bound.
>
>Read the Wikipedia article about HFC then you won't need to elaborate
>everything by your own ideas.

I worked in finance for almost 10 years and was involved in writing the
network layer to link a particular bank to a number of stock exchanges so
I do know what I'm talking about. The microsecond delays in software are
statistical noise compared to the millisecond delays on network connections.

[toc] | [prev] | [next] | [standalone]


#91501

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-09-01 12:59 +0200
Message-ID<ucsg79$3oec8$1@dont-email.me>
In reply to#91500
Am 01.09.2023 um 12:26 schrieb Muttley@dastardlyhq.com:

> I worked in finance for almost 10 years and was involved in writing the
> network layer to link a particular bank to a number of stock exchanges so
> I do know what I'm talking about. ...

Certainly not. With high freqency trading sometimes even FPGAs and
overclocked CPUs are used. You can verify that easily. My employer
has a server with a server attached to a switch which has a further
10GbE link to the worlds largest internet exchange (DE-CIX). We're
250km away from Frankfurt, where the DE-CIX resudes.

[toc] | [prev] | [next] | [standalone]


#91502

FromMuttley@dastardlyhq.com
Date2023-09-01 12:30 +0000
Message-ID<ucslhh$3p915$1@dont-email.me>
In reply to#91501
On Fri, 1 Sep 2023 12:59:53 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 01.09.2023 um 12:26 schrieb Muttley@dastardlyhq.com:
>
>> I worked in finance for almost 10 years and was involved in writing the
>> network layer to link a particular bank to a number of stock exchanges so
>> I do know what I'm talking about. ...
>
>Certainly not. With high freqency trading sometimes even FPGAs and
>overclocked CPUs are used. You can verify that easily. My employer

So what? Network delays are still 99.9% of any delay in the process. If people
are using those then thats probably for real time processing of market status, 
not for spot trading. Not that it'll do them any good. People having been
trying to write algorithms to predict the market almost since computers were
invented and none of them have succeeded to any great extent.

>has a server with a server attached to a switch which has a further
>10GbE link to the worlds largest internet exchange (DE-CIX). We're
>250km away from Frankfurt, where the DE-CIX resudes.

And?

[toc] | [prev] | [next] | [standalone]


#91503

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-09-01 15:33 +0200
Message-ID<ucsp7p$3pnf9$1@dont-email.me>
In reply to#91502
Am 01.09.2023 um 14:30 schrieb Muttley@dastardlyhq.com:

> So what? Network delays are still 99.9% of any delay in the process.

You make up your own mind instead of reading Wikipedia.

[toc] | [prev] | [next] | [standalone]


#91504

FromMuttley@dastardlyhq.com
Date2023-09-01 13:49 +0000
Message-ID<ucsq61$3psff$1@dont-email.me>
In reply to#91503
On Fri, 1 Sep 2023 15:33:46 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 01.09.2023 um 14:30 schrieb Muttley@dastardlyhq.com:
>
>> So what? Network delays are still 99.9% of any delay in the process.
>
>You make up your own mind instead of reading Wikipedia.

I think my first hand experience actually working on these systems trumps 
anything in wikipedia, but hey, what would I know compared to a genius like you.

[toc] | [prev] | [next] | [standalone]


#91505

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-09-01 15:59 +0200
Message-ID<ucsqoq$3puf0$1@dont-email.me>
In reply to#91504
Am 01.09.2023 um 15:49 schrieb Muttley@dastardlyhq.com:
> On Fri, 1 Sep 2023 15:33:46 +0200
> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 01.09.2023 um 14:30 schrieb Muttley@dastardlyhq.com:
>>
>>> So what? Network delays are still 99.9% of any delay in the process.
>>
>> You make up your own mind instead of reading Wikipedia.
> 
> I think my first hand experience actually working on these systems trumps
> anything in wikipedia, but hey, what would I know compared to a genius like you.
> 

I guess youre not professionally programming at all
according to the n00b-questions you ask for sometimes.

[toc] | [prev] | [next] | [standalone]


#91506

FromMuttley@dastardlyhq.com
Date2023-09-01 14:03 +0000
Message-ID<ucsr09$3pvur$1@dont-email.me>
In reply to#91505
On Fri, 1 Sep 2023 15:59:55 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 01.09.2023 um 15:49 schrieb Muttley@dastardlyhq.com:
>> On Fri, 1 Sep 2023 15:33:46 +0200
>> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>> Am 01.09.2023 um 14:30 schrieb Muttley@dastardlyhq.com:
>>>
>>>> So what? Network delays are still 99.9% of any delay in the process.
>>>
>>> You make up your own mind instead of reading Wikipedia.
>> 
>> I think my first hand experience actually working on these systems trumps
>> anything in wikipedia, but hey, what would I know compared to a genius like
>you.
>> 
>
>I guess youre not professionally programming at all
>according to the n00b-questions you ask for sometimes.

"n00b"? Wow, you're so L33t.

The fact that you believe no ones experience except yours counts for anything 
says a whole lot about you and its not good.

[toc] | [prev] | [next] | [standalone]


#91507

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-09-01 16:15 +0200
Message-ID<ucsrlc$3q2a4$1@dont-email.me>
In reply to#91506
Am 01.09.2023 um 16:03 schrieb Muttley@dastardlyhq.com:

> The fact that you believe no ones experience except yours counts
> for anything says a whole lot about you and its not good.

No, you constantly feel offended by statements from me that you
always have to go one step further. That you should have done the
same thing as me, especially in a field in which only a few work,
is simply very unlikely. It's much more likely that you'll want
to put yourself above me again.

[toc] | [prev] | [next] | [standalone]


#91508

FromMuttley@dastardlyhq.com
Date2023-09-01 14:39 +0000
Message-ID<ucst3q$3qacb$1@dont-email.me>
In reply to#91507
On Fri, 1 Sep 2023 16:15:09 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 01.09.2023 um 16:03 schrieb Muttley@dastardlyhq.com:
>
>> The fact that you believe no ones experience except yours counts
>> for anything says a whole lot about you and its not good.
>
>No, you constantly feel offended by statements from me that you
>always have to go one step further. That you should have done the

I simply comment on your code and yes, sarcastically if I think it merits it. 
If you don't want people commenting on your code then don't bloody post it! 
Unless you only want the fawning adulation you clearly think you deserve but
you can forget about that pal.

[toc] | [prev] | [next] | [standalone]


Page 2 of 8 — ← Prev page 1 [2] 3 4 5 6 7 8  Next page →

Back to top | Article view | comp.lang.c++


csiph-web