« first day (3797 days earlier)      last day (1134 days later) » 

12:12 AM
posted on March 09, 2021 by Herb Sutter

This special Guru of the Week series focuses on contracts. We covered some basics of preconditions in GotW #100. This time, let’s see how we can use preconditions in some practical examples… JG Question 1. Consider these functions, expanded from an article by Andrzej Krzemieński: [1] How many ways could a caller of each function … Continue reading GotW #101: Preconditions, Part 2 (Difficu

 
12:40 AM
So, conventional wisdom is that intrusive and weak_ptrs are incompatible. But that seems wrong.
One could imaging integrating the data_block and the weak/strong counts as long as when strong count = 0 the object goes into a "zombie state". The motivation is to integrate the weak/strong counts into the object for better memory packing.
the alignas suggest you guys pointer out last weak for one my memory pool structure added a whole 8 bytes to every object, which made me sad.
 
 
2 hours later…
2:34 AM
IIRC std::shared_from_this makes the refcount block instrusive doesn't it?
 
I want it to be even more intrusive. AKA the refcount/weakcounts live in the actual structure, like with boost's intrusive pointer. Thats better for memory packing, because there is often a memory hole you can stick the elements in.
 
3:36 AM
I can't wait until I'm fully vaccinated and can safely send chat messages in all caps again.
2
 
 
2 hours later…
5:16 AM
@Feeds People don't trust the CDC because they're unable to answer these exact pressing questions.
 
I'm watching a -6 question slowly get deleted despite me and one other having an upvoted answer.
 
rip
once a question is -4 there's no way of bringing it back
@Joshua I see which one you're talking about, at least it got back up to -3
 
 
1 hour later…
6:34 AM
real tragedy is that we haven't changed the feed from xkcd to smbc
 
 
2 hours later…
8:54 AM
@Mikhail why change when you can just add?
 
 
9 hours later…
5:36 PM
How did we go 9h without activity again :(
And nobody has released the pirate trapper in the description field yet
 
Whats a pirate trapper?
 
*trapped
 
also nixos is pretty awful, its like gentoo but with shitty packages that can't "see eachother" and non-standard paths that break upstream.
 
laughs in wandows
 
5:59 PM
@Morwenn I'm trying to not punch a monitor because of a deployment and other stupidity
 
@Mgetz That's time better spent here :p
 

« first day (3797 days earlier)      last day (1134 days later) »