« first day (3081 days earlier)      last day (1850 days later) » 

4:19 AM
Hypothetically, you have bought a SEO tool, it turns out to be a spamming program that targets its audiences. Would you be in this dilemma because if you use it, you will be spamming people. But if you don't use it, you have wasted your money?
 
5:17 AM
I'm trying to write a generic way to copy between containers of different allocators. The first step is to write a generic way to find the type of a container if it instead used a given allocator type. e.g. with_alloc<std::vector<int, A>, B>::type == std::vector<int, B>. Is there a sensible way to do that, other than specializing for every STL container?
 
 
5 hours later…
10:10 AM
@Maxpm Why does the allocator matter at all?
 
10:49 AM
std::copy?
 
 
2 hours later…
12:24 PM
While as I admire what the person is doing, I am absolutely turned off because same kind of drum is used to store rain water and fermenting poop.
Imagine living in a 10 square meter house with a few massive drums of poop next to the place.
Oo gosh I am too faint hearted for self sustainable living.
I like to fantasize about living in a tiny house and doing self sustainable living. But I don't think I will end up doing it voluntarily because I love the modern sewage system too much. Sewage system must one of the best modern invention.
 
1:12 PM
Hello! I want to make serialization and deserialization using the article https://playfulprogramming.blogspot.com/2016/12/serializing-structs-with-c17-structured.html
I could have made structured bindings for user-defined classes(using a bunch of different blog posts) and therefore they support arity function. However, I dunno how to make serialization and deserialization having such things. It has to be binary format thus "<<" shouldn't be used according to ISO guys who recommend using .write and .read method of streams.
 
 
4 hours later…
5:13 PM
dear god I have been debugging a multi threaded application for the past three hours and I am still not sure what's going on
 
nwp
5:39 PM
You have a race-condition.
Don't even need to look at the code.
 
5:57 PM
well duh
that was my first assumption too, until I turned it into single threaded and same issue arose. Turned out to be something related to iterators and libxml node pointers. I just fixed it by refactoring all the code that didn't pass the smell test.
 
6:20 PM
 
@Mikhail std::copy will not work for nested containers. Also, I'm trying to avoid the boilerplate of having calling code set up the copied-to object, with its potentially complicated template parameters.
 
 
3 hours later…
9:36 PM
I'm confused. std::copy would work forstd::vector<std::vector<T>>
@A.H. I like to draw diagrams. Although from personal experience there are maybe 4 or 5 locking mulithreaded patterns, and once you've done them once it gets easier.
 
he wants to also change the allocator of the nested container I would guess
which is not really safe to do implicitly like that
 
From afar it looks the real issue is that the guy isn't able to produce a cogent problem statement.
Use a sterling engine to charge your laptop from a cup of coffee
So, some of my settings objects have gotten large and hard to manage. For example, I'm routinely doing something like this settings.modulators.front().mode, I'm wondering if maybe doing something like settings.get('mode',0) might be a better strategy. In the later case you could have incomplete settings.
 
10:16 PM
definitely bad
the original was better
you're "fixing" the problem by just hiding it in a bad way rather than dealing with it
 
My faith in static typing is wavering
 
10:41 PM
I want to take a perfectly good system programing language and turn it into dynamic programing monstrosity, mostly because of compile time and needing to rewrite tests. I suspect the paradigmatic way is to use lua or something.
 
10:59 PM
made token change to header, waiting for code to compile, spend next 10 minutes browsing /r/circlejerk complaining about dystopian future where js is used for everything
 
nwp
11:51 PM
Get some more CPUs.
 

« first day (3081 days earlier)      last day (1850 days later) »