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


Groups > comp.lang.c++ > #123628

Re: “Is C++ Dead?”

From "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups comp.lang.c++
Subject Re: “Is C++ Dead?”
Date 2026-03-19 12:31 -0700
Organization A noiseless patient Spider
Message-ID <10phive$101li$1@dont-email.me> (permalink)
References (3 earlier) <10oni1q$3p6qk$1@dont-email.me> <10pepoh$2g4n$1@raubtier-asyl.eternal-september.org> <10petuu$3vuo$1@dont-email.me> <rKEuR.551650$_FY9.466493@fx11.iad> <10pgf4q$i81l$1@dont-email.me>

Show all headers | View raw


On 3/19/2026 2:20 AM, David Brown wrote:
> On 18/03/2026 22:24, Scott Lurndal wrote:
>> Lynn McGuire <lynnmcguire5@gmail.com> writes:
>>> On 3/18/2026 1:09 PM, Bonita Montero wrote:
>>>> Am 09.03.2026 um 23:36 schrieb Lynn McGuire:
>>>>
>>>>> If C++ is too complex for a programmer then the programmer is not
>>>>> a good programmer.
>>>>
>>>> I'm a good C++ programmer but I admit that C++ is much less readable
>>>> as for example Rust. And both languages server the same purpose. But
>>>> I still like C++.
>>>>
>>>>> The only exception to that is multiple thread software. That stuff
>>>>> is dadgum complicated. But the multiple thread software is not used
>>>>> very often in my circles.
>>>>
>>>> Most MT-algoritms are easy (embarassingly parallel).
>>>
>>> Spinning off threads is easy.  Deciding which variables to mutex is not.
>>
>> As someone with four decades of multitheaded programming experience
>> at both the lowest levels (OS) and highest levels (applications),
>> I strongly disagree.
>>
>> It's very easy to determine whether a particular datum is
>> subject to concurrent access based on understanding the
>> underlying algorithms used.
>>
> 
> It can be easy to determine what data needs protected by mutexes, but 
> not nearly as easy to determine when the mutexes should be locked and 
> unlocked in sequences that are maximally efficient.  If a thread takes a 
> lock, and is doing two different things with the data, should it release 
> the lock and re-take it in the middle? 

Shit man. TRY to never execute a call back into unknown user code while 
holding a lock. Unless, well, shit. never... ;^) I have had to debug 
nightmare scenarios! Ouch.



  Doing so costs time for that
> thread, as the release and re-lock is not free.  But /not/ doing so 
> could hinder progress for another thread.  Then you have questions about 
> how fine-grained your mutexes should be, and how to coordinate cases 
> where you need multiple mutexes.  And of course you have the bigger 
> architectural questions - should the data be shared and locked by a 
> mutex, or use a message queue, or atomics, or duplicate copies of the 
> data, or some other sharing and synchronisation solution?
> 
> So yes, determining what data to protect is usually easy.  Determining 
> how best to do that is the fun part.
> 
> 

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

“Is C++ Dead?” Lynn McGuire <lynnmcguire5@gmail.com> - 2026-03-05 15:19 -0600
  Re: “Is C++ Dead?” wij <wyniijj5@gmail.com> - 2026-03-06 08:14 +0800
    Re: “Is C++ Dead?” "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-03-06 12:53 +0800
  Re: “Is C++ Dead?” "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-03-06 12:48 +0800
    Re: “Is C++ Dead?” "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-03-06 13:25 -0800
      Re: “Is C++ Dead?” "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-03-07 13:15 +0800
      Re: “Is C++ Dead?” Michael S <already5chosen@yahoo.com> - 2026-03-07 20:03 +0200
        Re: “Is C++ Dead?” "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-03-08 16:26 +0800
          Re: “Is C++ Dead?” David Brown <david.brown@hesbynett.no> - 2026-03-08 11:49 +0100
            Re: “Is C++ Dead?” Bonita Montero <Bonita.Montero@gmail.com> - 2026-03-08 16:46 +0100
              Re: “Is C++ Dead?” David Brown <david.brown@hesbynett.no> - 2026-03-08 19:22 +0100
                Re: “Is C++ Dead?” "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-03-08 14:38 -0700
                Re: “Is C++ Dead?” Bonita Montero <Bonita.Montero@gmail.com> - 2026-03-10 14:17 +0100
                Re: “Is C++ Dead?” Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> - 2026-03-10 22:47 +0000
                Re: “Is C++ Dead?” "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-03-10 17:07 -0700
            Re: “Is C++ Dead?” "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-03-08 14:11 -0700
          Re: “Is C++ Dead?” Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> - 2026-03-08 22:54 +0000
    Re: “Is C++ Dead?” Marcel Mueller <news.5.maazl@spamgourmet.org> - 2026-03-09 08:27 +0100
      Re: “Is C++ Dead?” Lynn McGuire <lynnmcguire5@gmail.com> - 2026-03-09 17:36 -0500
        Re: “Is C++ Dead?” Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> - 2026-03-10 13:27 +0000
        Re: “Is C++ Dead?” Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-03-15 19:13 +0000
          Re: “Is C++ Dead?” Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> - 2026-03-15 19:40 +0000
          Re: “Is C++ Dead?” Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-15 21:15 +0000
            Re: “Is C++ Dead?” Lynn McGuire <lynnmcguire5@gmail.com> - 2026-03-15 18:15 -0500
          Re: “Is C++ Dead?” Lynn McGuire <lynnmcguire5@gmail.com> - 2026-03-15 17:33 -0500
            Re: “Is C++ Dead?” Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-03-16 00:28 +0000
            Re: “Is C++ Dead?” wij <wyniijj5@gmail.com> - 2026-03-17 00:53 +0800
          Re: “Is C++ Dead?” George Neuner <gneuner2@comcast.net> - 2026-03-16 10:31 -0400
            Re: “Is C++ Dead?” Michael S <already5chosen@yahoo.com> - 2026-03-16 17:56 +0200
            Re: “Is C++ Dead?” Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-03-16 17:06 +0000
              Re: “Is C++ Dead?” George Neuner <gneuner2@comcast.net> - 2026-03-16 23:00 -0400
                Re: “Is C++ Dead?” Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-03-18 00:20 +0000
        Re: “Is C++ Dead?” Bonita Montero <Bonita.Montero@gmail.com> - 2026-03-18 19:09 +0100
          Re: “Is C++ Dead?” Lynn McGuire <lynnmcguire5@gmail.com> - 2026-03-18 14:21 -0500
            Re: “Is C++ Dead?” Bonita Montero <Bonita.Montero@gmail.com> - 2026-03-18 20:53 +0100
              Re: “Is C++ Dead?” "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-03-18 13:28 -0700
              Re: “Is C++ Dead?” Lynn McGuire <lynnmcguire5@gmail.com> - 2026-03-18 16:45 -0500
            Re: Re: “Is C++ Dead?” scott@slp53.sl.home (Scott Lurndal) - 2026-03-18 21:24 +0000
              Re: “Is C++ Dead?” Lynn McGuire <lynnmcguire5@gmail.com> - 2026-03-18 16:41 -0500
                Re: “Is C++ Dead?” "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-03-18 19:58 -0700
                Re: “Is C++ Dead?” Lynn McGuire <lynnmcguire5@gmail.com> - 2026-03-19 00:33 -0500
                Re: “Is C++ Dead?” "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-03-18 22:50 -0700
                Re: “Is C++ Dead?” Bonita Montero <Bonita.Montero@gmail.com> - 2026-03-19 10:40 +0100
                Re: “Is C++ Dead?” "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-03-19 12:26 -0700
                Re: “Is C++ Dead?” Bonita Montero <Bonita.Montero@gmail.com> - 2026-03-19 10:28 +0100
              Re: “Is C++ Dead?” David Brown <david.brown@hesbynett.no> - 2026-03-19 10:20 +0100
                Re: “Is C++ Dead?” "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-03-19 12:31 -0700
      Re: “Is C++ Dead?” Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> - 2026-03-10 13:21 +0000
  Re: “Is C++ Dead?” Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-03-12 19:46 +0000
    Re: “Is C++ Dead?” Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> - 2026-03-14 23:35 +0000
      Re: “Is C++ Dead?” Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-03-15 13:35 +0000
        Re: “Is C++ Dead?” Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> - 2026-03-15 15:37 +0000
          Re: “Is C++ Dead?” Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-03-15 17:58 +0000
          Re: “Is C++ Dead?” Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-15 22:23 +0000
            Re: “Is C++ Dead?” Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> - 2026-03-16 15:34 +0000
              Re: Re: “Is C++ Dead?” scott@slp53.sl.home (Scott Lurndal) - 2026-03-16 15:58 +0000
                Re: “Is C++ Dead?” Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> - 2026-03-17 00:02 +0000

csiph-web