« first day (2612 days earlier)      last day (2343 days later) » 

12:02 AM
Save memory too:
#define class union
#define struct union
12
 
sbi
12:50 AM
@sehe Good point, although this isn't required in the context where this will be used.
@sehe Currently (2am, just returned from a birthday party) trying to wrap my head around it...
@melak47 Yeah, it misses a critical +1. Did I ever mention this code was un-compiled? *sheepish_grin*
@melak47 That's fine, the more boring they are, the faster this will be. (So far this code copies from a std::deque into a std::vector to be able to pass all items at once. It occurred to me that a queue might, on average, be not much less chunky than a vector, and we'd be shorter one container copy operation.
 
So there's no way to lambda capture this as const.
 
sbi
On a side-note: Shouldn't you work at your thesis, @melak47?
@sehe OK, I think I got this now. Nice abuse of adjacent_find().
Well, I think I'll try to plug this in after I had some sleep.
Good night!
 
1:14 AM
G'night
 
1:54 AM
`auto this_const = const_cast<const decltype(this)>(this);` then pass `this_const` to the lambda?
`
 
@Mikhail Yeah that's what I've done instead (passing as parameters)
I'm using lambdas to prevent isolate stuff in a massive initialization routine.
 
you can use a #define at the start of each lambda
Fuck, so I have no work to do, and I just realized I have no life. Anybody need me write C++, or maybe fertilize some eggs?
 
Are you a fish?
 
No.
 
@Mikhail add_const_t plz
 
2:09 AM
too poor to include additional headers
 
not including headers is why youre poor
reinvented wheels dont sell for much
 
takes too long to build
Sad part is that somebody else does the embryo work for me, so I probably don't actually know how to fertilize them...
 
3:12 AM
Well this is going to be a problem. I blew out the fuse benchmarking 4 computers at once with 3 humidifiers running.
 
That's cheating, because the specific increased specific heat capacity of the air improves the cooling efficiency.
 
I'm gonna need to run an extension cable over to my bedroom to take some of the load.
Winter is literally just starting and I can't be blowing fuses this easily.
 
 
4 hours later…
6:53 AM
So there are three types of floats
hard floats
soft floats
and fake hard floats
floats = fpu
obv dedicated fpu is best
but soft float vs fake hard float (no-op exception trap) is pretty tricky to benchmark
 
 
3 hours later…
9:36 AM
half, single, double, and that 80 bit abomination which was a good idear but confused everybody because code would randomly convert betwix them.
 
10:10 AM
who washes their children in laundry tubs?
 
 
2 hours later…
12:30 PM
"nonsubbed"? "this subclass in another package"? Huh. I thought I knew Java. — sehe 6 mins ago
@Telkitty How to tell who hasn't got children. I mean, I've never seen this kind of washing tubs - don't know what is in them or what they're used for, but they look very very convenient indeed.
 
nwp
1:29 PM
@jodocus and Christian Hackl, It don't have to be const char. I am new to c++, I copied first thing from internet for declaring strings. — some_guy 5 mins ago
 
 
3 hours later…
4:55 PM
@Mysticial You obviously need some 440 V, 3 phase industrial wiring...
 
Ell
5:55 PM
@Telkitty no need to fill a bathtub for something the size of a baby
 
 
3 hours later…
9:17 PM
 
lol
 
It was our first day of snow indeed
 
9:38 PM
Where have you guys used std::futures? I've used them mostly as objects to join() calls to std::async... Do people really build large lists of futures and then process them out?
 
> really
I wonder how a scientist can have so much trouble wording a neutral question
I use futures with asio or promises (optionally through packaged tasks).
 
std::future's usability is a bit limited by lack of .then
 
And, no, that usually doesn't involve large lists of futures.
@milleniumbug Yeah, Boost Thread FTW (although in practice I jumped that and used Asio + Coros)
 
9:51 PM
Hmm, do you think.then might be a good way to implement chained operations? The concern is that, constructing the chain seems to have some overhead compared to just using a bunch of if statements...
For example, in my work, I have to apply a bunch of image transforms depending on a settings object. Convert the settings into bunch of chained std::futures?
 
10:13 PM
I implicitly gave my answer.
IME there's enough warts (e.g. unpacking/sharing futures, volatile APIs) to make it ... iffy.
Then again, I was certainly going to use when_all to await distributed transactions (given the chance).
So, for all tools, there's a niche where it will do nicely.
@Mikhail Isn't that just regular functional composition. Really not dependent on what value is being transformed, right. What is the gain of passing futures instead of the products?
 
11:01 PM
Woman tries to kill bed bugs with alcohol, sets fire that leaves 10 without a home
 
nwp
I can adopt 1 of the bed bugs. Together we can take care of all 10!
(also that woman is a monster)
 
at least she tried to get the bugs drunk first
 
@BBCWorld @TheJohnSudworth Big Brother is watching Yu
So bad, it's great
@Telkitty Cruel to those 10 bed bugs
 
11:41 PM
there is a clan of crows/ravens moved into neighbourhood, don't want to see them on the internet as well
I mean, I loved crows/ravens until they moved into area
 

« first day (2612 days earlier)      last day (2343 days later) »