« first day (2676 days earlier)      last day (2497 days later) » 

00:02
@wilx I can be as naggy as a mother hen :p
@TelautonomousKitty :D
@wilx I choose procrastination, by telling those guys they need to send me the data in a single excel spreadsheet. I suspect they are too lazy to actually get back to me, and will after a year publish something as-is. This absolves me of the sin.
I have been told by someone older than me to stop nagging ... and ... people started to ignore me or told me 'I already know that!'
00:24
@Mikhail Clever! :D
@TelautonomousKitty You were mansplaining? Ts ts ts.
I searched for the term 'fowl' on wiki, wiki shows me a picture of Australian brush turkey ...
Fowl are birds belonging to one of two biological orders, namely the gamefowl or landfowl (Galliformes) and the waterfowl (Anseriformes). Studies of anatomical and molecular similarities suggest these two groups are close evolutionary relatives; together, they form the fowl clade which is scientifically known as Galloanserae (initially termed Galloanseri). This clade is also supported by morphological and DNA sequence data as well as retrotransposon presence/absence data. == Terminology == As opposed to "fowl", "poultry" is a term for any kind of domesticated bird or bird captive-raised for meat...
those birds are everywhere here now, one tried to steal a bag of my cooking utensil last Saturday
nwp
nwp
The rules are not on the starboard! They are required to righteously yell at noobs! We cannot allow the smugness level to drop!
3
00:55
3
Q: Automatically detect C++14 "return should use std::move" situation

QuuxplusoneMy understanding is that in C++17, the following snippet is intended to Do The Right Thing: struct Instrument; // instrumented (non-trivial) move and copy operations struct Base { Instrument i; }; struct Derived : public Base {}; struct Unrelated { Instrument i; Unrelated(const D...

inspired by the above
it’s essentially a case of hard-coding in the rules cc @sehe #ExplainToANewcomer
@LucDanton hmmm? Looks expected, no?
Oh. Nah. It should probably just move the rvalue into the argument of by_val::by_val no problem
indeediddy (which is what GCC does if you’re curious)
Why did you mark all constructors constexpr?
I find it a bit weird to have constexpr moves
GCC also complains loudly
nwp
nwp
You didn't watch "Constexpr all the things!"? That's the meme until the next cppcon at least.
I can watch all the things, but that doesn't make me bandwagon
nwp
nwp
01:07
Pfft. So unhip. If I had a social media account I'd totally unfollow you now.
I also don't eat avocados
@sehe habit training
Fair enough
01:48
Has anybody ever encountered memory issues when referencing an array in a struct which is initialised using a smart pointer?
Voting to close
@nobism I'm sure quite a few people have--people write buggy code all the time.
@JerryCoffin I just fixed a bug by replaced a smart pointer with a plain old pointer. My explanation is that the memory of the arrays inside the struct was being moved around by the smart pointer (since the arrays were large).
Does that sound feasible?
@nobism No, not particularly.
@JerryCoffin How come?
02:03
@nobism Mostly because a smart pointer won't normally move anything. It'll automatically dispose of something (when it goes out of scope, has no references, or based on some other criteria), but other than that it's just a pointer.
Warning: absolutely, positively, do not read the rules, especially if you're new around here!
15
@nobism A smart pointer isn't a compacting garbage collector. It doesn't move anything.
02:20
@JerryCoffin @EtiennedeMartel Hmm interesting...
02:34
In C++, memory does not move on its own. This isn't Java.
array copying made easy cc @sehe I keep coming up with these things :(
staring at it really hard
sorry the array stuff were remains from an earlier attempt, check the edit
Ah. So it relies on contiguous memory layout of the destructured vars
I think that's very much UB, right
@EtiennedeMartel I'll have a closer look at it later, but regardless, I fixed a bug by not using a regular pointer instead of a smart pointer. I also tested by allocating the struct on the stack instead and it worked.
by using*
02:42
@sehe destructuring does not involve variables, they’re alternate names to whichever parts of the underlying/enclosing, unnamed thing (<- okay that 'thing' is defined as if it were a variable, but it’s hidden from the user anyway)
@LucDanton but... is that guaranteed if the bindings were by value?
still, the point is to highlight the distinction between auto decay = arr; and auto […] = arr;
yeah, that part was the no-brainer :)
@sehe that is indeed how it works, the auto cv ref stuff at the start does not apply to the bindings (which are not variables) but to the special thing
I'm really surprised destructuring says anything about the memory layout of the copy
02:43
and as it turns out the Standard sez to special-case this to make a copy when it comes to arrays
@sehe it doesn’t, but once you have an array you have an array
@LucDanton Coolness. Mind expanded
@LucDanton I see know what makes that an interesting edge case
yeah short of forbidding auto […] = arr; I don’t think there was another satisfying outcome
I'd say since std::array<> is POD. you could have the same in c++11 by reinterpret_casting to the corresponding std::array<> type
yes except that C++11 reinterpret_cast is under-specified (i.e. it was always meant to be able to do that, but nobody was sure how to word it—so they didn't)
@LucDanton obviously. I know now why I was starting so long. I never realized the mechanics of structured bindings before
02:46
it does feel weird to see an actual C++ language feature for once cc @RobertTroipartrois
can you imagine if the syntax were expanded and we could have e.g. auto enclosing@[...] = arr; to make array copies; now how would you explain that to newcomers!
@sehe my mistake, variables are introduced for the user-defined case involving e.g. get<i>(thing)
they’re also hidden, this is all so weird
@LucDanton again, making sense once you think about it. But yeah.
@LucDanton and pretty useless, because we don't need them icky C compatible arrays anyways
You can already copy arrays using std::array, so it wouldn't shock anybody...
@Mikhail you can’t return them still
You mean without possibly, copying?
@Mikhail look at it from the perspective of a newcomer
03:00
( ͡° ͜ʖ ͡°)>⌐■-■
(⌐▀͡ ̯ʖ▀)
Looks the same...
now that you mention it in C++17 std::array need not involve arrays at all
@sehe so I don’t think you can do that anymore
it’s kinda hell++ territory though
 
2 hours later…
04:35
@LucDanton XD
 
1 hour later…
05:37
A service peacock was denied entry onto a United flight
“Year-over-year, we have seen a 75 percent increase in customers bringing emotional support animals onboard and as a result have experienced a significant increase in onboard incidents involving these animals,”
 
1 hour later…
06:54
What does DR stand for in the C++ standard? DR -aft?
@LucDanton From this.
Cause the answer makes sense to me. But it's a DR, so it's incorrect now? :(
07:13
@DeanSeo it’s a closed Defect Report which associated issue has been fixed, it’s mentioned as a piece of history
07:36
@LucDanton Ah, Defect Report.
So the concept itself in the answer is still valid, with the relative, reported defects having already been fixed.
that’s it yeah
Cool. Thanks.
 
2 hours later…
10:06
@wilx probably not...
 
1 hour later…
11:06
Everyone's complaining about the Pluralsight tests but tbh I didn't think they were that bad
nwp
nwp
They did and explained why.
I didn't know there was such a test and if I did I wouldn't know why I should take it, but I understand that getting a bad score because the test makers are dumb is frustrating.
Fair enough, a question or two were wrong, that's where the feedback button is for right
Ask for a retake afterwards
@JerryCoffin but don't FETs and BJTs function in the same way? they just have differing characteristics?
nwp
nwp
The last "answer" is actually even more worrying. They rated a noob "proficient" because they asked for irrelevant trivia. That removes all potential satisfaction from getting a "proficient" rating.
 
2 hours later…
13:30
Stackoverflow to pluralsight: xkcd.com/1695Tschallacka 4 hours ago
wow
@RickAstley On a scale of 100 to 100 how bored do you have to be?
I'd guess it should be 100.1f
nwp
nwp
He was never gonna give it up.
Why does this not compile in C++? It's so cool!
"Including the C11 standard by reference". Yeah right.
@nwp because that's what templates are for?
or even just basic overloading
nwp
nwp
Actually overloading, but still. I like it. I wanna abuse it.
(don't tell my gf I said that)
13:48
14:16
@nwp I'm calling Child Protective Services on you
nwp
nwp
Hey, I'm not that much of a pedo.
Just a little bit ???
nwp
nwp
Not enough that my gf is a child.
as long as everyone involved is of-age and consenting I don't see the problem
@nwp I was referring to you abusing your kids
"of-age"
nwp
nwp
14:23
Nah, I wouldn't do that. I want my kids to be decent successful human beings. I'll save the abuse for language features.
decent is relative
failing that, you could always try to corrupt other people's kids
 
1 hour later…
nwp
nwp
15:49
That spray of downvotes and the close vote reason baffle me. This is a clear question, to which the answer is actually no. But I guess simply mentioning goto has that effect. — Quentin 7 mins ago
nwp
nwp
@milleniumbug I have lost faith in humanity again.
17:51
BitGrail lost $170 million worth of Nano XRB tokens because... the checks for whether you had a sufficient balance to withdraw were only implemented as client-side JavaScript https://www.reddit.com/r/CryptoCurrency/comments/7wonkf/the_stolen_xrb_has_already_been_redistributedsold/du215tr/
This is ridiculous.
18:14
Hi English speakers. Will you please tell me the name of the horse that lost a race in the last stretch. Around the ~1900s ?
It's commonly used
Ok NVM. I lost
nwp
nwp
Who wants to be a millionaire? I want to use my lifeline "ask in the lounge"!
18:49
Any idea what will happen to cryptocurrencies when Quantum Computers will become mainstream?
If I had a quantum computer, I'd try to make cryptocurrency miners.
cryptobutts don't need quantum computers to crash
but you could use that to get insanely wealthy while it's possible
19:02
Aren't there crypto methods resistant to quantum computing?
@LoïcFaure-Lacroix If you had a working quantum computer, you won't need to mine it. Just steal it. You have access to everyone's wallet.
19:19
It's unlikely a consumer quantum computer is coming anytime soon though
not for the general purposes a current pc is being used anyway
19:42
@Mysticial fair point
I think you forgot to tag C# /s — Borgleader 16 secs ago
19:55
@Borgleader lol nice
 
1 hour later…
20:59
@thecoshman Rather the opposite. They can (but don't necessarily) have fairly similar externally visible characteristics, but function entirely differently.
 
2 hours later…
22:44
I was thinking about it, is there a particular reason to keep equipment sterile when the plan is to send people to Mars?
nwp
nwp
Yes. You don't want to find bacteria on mars and then not know if they came from earth or originated on mars.
Well that makes sense if you want to study something and not interact with it.
On the other hand we could be already trying to grow stuff there
nwp
nwp
And what would we do with the stuff we grow there?
have something to eat when people will arrive there
If you can have working building that is capable of providing life support for a plant it's a good start
nwp
nwp
I'm pretty sure that will take decades and the hopes of some seeds burning up in mars' atmosphere to produce edible food later are not high.
22:52
exactly, even more that some part of our agriculture actually depends on fungus to cooperate with the plant like a symbiose
so in some ways, contamination is almost impossible to avoid
the only way to avoid contamining mars is to stop trying
nwp
nwp
Well, for now we have nothing that grows without water and no water source on mars, so we can delay that for a bit.
Well actually
The water isn't the main problem. Temperature is apparently around -65 degree
and the soil even with water wouldn't be good for growing anything yet. So we kind have to send water from here and a bit of soil and something to have the plants grow in.
As for water, there is water on mars in form of ice so we could make robots that mine water or somehow extract water from the soil.
23:54
@RobertTroipartrois wanna talk about a weird forbidden C++ technique?
Luc explores this one weird technique for losing belly fat in C++. You won't believe what happens next!

« first day (2676 days earlier)      last day (2497 days later) »