Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #123622
| From | Lynn McGuire <lynnmcguire5@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: “Is C++ Dead?” |
| Date | 2026-03-19 00:33 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <10pg1ro$eumq$1@dont-email.me> (permalink) |
| References | (4 earlier) <10pepoh$2g4n$1@raubtier-asyl.eternal-september.org> <10petuu$3vuo$1@dont-email.me> <rKEuR.551650$_FY9.466493@fx11.iad> <10pf672$75ro$1@dont-email.me> <10pfop1$cq9a$1@dont-email.me> |
On 3/18/2026 9:58 PM, Chris M. Thomasson wrote: > On 3/18/2026 2:41 PM, Lynn McGuire wrote: >> On 3/18/2026 4:24 PM, 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. >>> >>>> Especially in software hundreds of thousands of lines of of C++ long. >>>> >>>> My Windows user interface is well over 500,000 lines of C++ code. >>> >>> Ah, windows. Sigh. >>> >>> My current project at work is over 3 million lines of C++ code, and >>> leverages 64 physical cores using over 120 threads (pthreads) >>> with pretty much 100% utilization across all the cores. >> >> Nice ! Good job. >> >>> The nice thing about C++ is that if you do it right, all the >>> locking is almost always encapsulated within a class (e.g. >>> a class member and associated member functions), which naturally >>> restricts the scope of the lock to within the class. >> >> It is always, "if you do it right". > > If you decide to use threads. Make sure to learn about mutex and condvar > first! Then learn about embarrassingly parallel, where no mutex and > condvar are "necessarily" needed. Then ponder on lock-free. > > Make sure to never have to use lock-free unless you absolutely have to! > > Fwiw, I used to converse with David Butenhof back on > comp.programming.threads. Nice guy, and wrote a nice book to read before > you even go into C++ threads, perhaps. Well... ? I remember he was > pondering on writing another book, cooking with posix threads. > > https://www.amazon.com/Programming-POSIX-Threads-David-Butenhof/ > dp/0201633922 > > :^) Real all of it, then ponder on how C++ is there ready willing and able. I have four threads in my Windows user interface to make the startup faster. But the variables do not cross the thread boundaries. I have a copy of "C++ Concurrency in Action: Practical Multithreading" First Edition by Anthony Williams. I have yet to read it though. https://www.amazon.com/C-Concurrency-Action-Practical-Multithreading/dp/1933988770/ Lynn
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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