Monday, November 8, 2021

Digest for comp.lang.c++@googlegroups.com - 3 updates in 2 topics

legalize+jeeves@mail.xmission.com (Richard): Nov 08 08:20PM

[Please do not mail me a copy of your followup]
 
Lynn McGuire <lynnmcguire5@gmail.com> spake the secret code
 
>"Smart pointers are very versatile and can hold pointers not only to
>single instances but also to arrays. Is that only a theoretical use
>case? or maybe they might be handy in some cases? Let's have a look."
 
It's so useful they called it std::vector.
(No, I have not read the article)
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Terminals Wiki <http://terminals-wiki.org>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
Paavo Helde <myfirstname@osa.pri.ee>: Nov 08 11:16PM +0200

08.11.2021 22:20 Richard kirjutas:
>> case? or maybe they might be handy in some cases? Let's have a look."
 
> It's so useful they called it std::vector.
> (No, I have not read the article)
 
+1
 
That said, I have had some situations where the profiler identified the
zero initialization of a std::vector as a bottleneck. My solution was to
define a "noinit_buffer" class using malloc(), but in retrospect this
feels much like C++20's std::make_unique_for_overwrite<T[]>(n).
James Kuyper <jameskuyper@alumni.caltech.edu>: Nov 08 01:47AM -0500

On 11/6/21 7:25 AM, David Brown wrote:
...
> violent psychopath who knows where you live" (I've forgotten the source
> of that quotation). Also assume they are not as clever or experienced
> as you are.
 
That reminds me a little too painfully of a subordinate that I knew to
be incompetent, and suspected of being literally insane. After his
actions got him reassigned with no replacement, I was left with the job
of maintaining the code he'd written. It was bug-ridden, untested,
inconsistent with the design documents, and he'd managed to accidentally
erase all of the revision history for many of the files he'd worked on
(I managed to get some of that history restored from backup).
After his reassignment, he behaved in odd and vaguely threatening ways
to me, such as stopping outside my office and just staring at me for
long periods of time. Around that time I happened to receive some
paperwork connected with his reassignment, which had home address on it,
and I learned that he lived less than 100 meters from me. So I was the
one who knew where he lived. I'm glad it was NOT the other way around.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: