Friday, March 13, 2020

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

"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Mar 13 03:18PM -0700

On 3/12/2020 5:35 PM, Jorgen Grahn wrote:
> On Thu, 2020-03-12, Paavo Helde wrote:
>> On 12.03.2020 10:41, Frederick Gotham wrote:
[...]
> carefully as process lifetimes (for forked processes), and a worker
> thread should probably accept a special work request that says "please
> exit".
 
Indeed. Works like a charm.
 
Fwiw, I remember doing something experimental a long time ago where a
group of spawned threads working on a task could enqueue a single work
request which meant that everything is finished. Only one thread in the
group would do this. Then, when the work request was picked up by a main
worker thread, it would join the spawned threads in the group, examine
the result, and do whatever, then go back into the worker event loop.
 
[...]
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Mar 13 03:21PM -0700

On 3/13/2020 3:18 PM, Chris M. Thomasson wrote:
> worker thread, it would join the spawned threads in the group, examine
> the result, and do whatever, then go back into the worker event loop.
 
> [...]
 
Fwiw, detached threads are most likely: evil... This reminds me of
discussions over on comp.programming.thread from a long time ago, early
2000's.
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Mar 13 09:27PM +0100

On 13.03.2020 04:48, Daniel wrote:
> On Thursday, March 12, 2020 at 11:17:55 PM UTC-4, Ian Collins wrote:
 
>> Ice cream always works!
 
> Just so.
 
What's wrong with bacon?
 
- Alf
Bonita Montero <Bonita.Montero@gmail.com>: Mar 13 09:27PM +0100

> typename std::unordered_map<key, data, std::hash<key>,
> std::equal_to<key>, special_allocator<std::pair<const key,
> data>>>::const_iterator F = foo();
 
Takes 20s to read, but auto is even more unreadable.
Daniel <danielaparker@gmail.com>: Mar 13 01:35PM -0700

On Friday, March 13, 2020 at 4:27:11 PM UTC-4, Alf P. Steinbach wrote:
 
> >> Ice cream always works!
 
> > Just so.
 
> What's wrong with bacon?
 
Could be a proxy, vegan bacon, same interface, but ...
 
Daniel
Jorgen Grahn <grahn+nntp@snipabacken.se>: Mar 13 09:22PM

On Fri, 2020-03-13, Daniel wrote:
 
>> If you don't like C++, don't use it.
 
> On the contrary, jacobnavia has no reason to leave C++. jacobnavia is happy
> with legacy C++,
 
That's not my impression at all.
 
 
> It's those of us that _want_ C++ to become a modern language, and have
> reservations where that's going, that have to also think about leaving. But
> where to?
 
Stick to C++11, with the idioms you believe in. Cherry-pick the good
features from later standards. Don't join teams which value novelty
higher than getting things done.
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
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: