« first day (1824 days earlier)      last day (3125 days later) » 

3:00 PM
@AndyProwl Are you a frequent user of those
 
absolutely
I thought your mom told you
 
my mom doesn't use viagra
i'm confused
 
try viagra it helps
 
Xeo
@JonClements why would we?
It's an endearing term!
 
Indeed! It's always fun being here @Xeo :p
 
3:05 PM
oh ffs why is a null reference being passed to __lhs.compare(__rhs)
 
> null reference
UB
 
I have some great news btw @Xeo - can you and other RO's be available in the next few hours for a chat?
 
@JonClements wait... are you implying we're not fun to hang out with? :P
 
If I had to make a prediction, there's gonna be more work to do in the upcoming weeks since our troll seems to have returned.
 
Hmm, question on readability; should the following answer be split up into two posts - containing one "story" (in with that explanation) each?
43
A: Why does the order of template argument substitution matter?

Filip Roséen - refpAs stated C++14 explicitly says that the order of template argument substitution is well-defined; more specifically it will be guaranteed to proceed in "lexical order and halt whenever a substitution causes the deduction to fail. Compared to C++11 it will be much easier to write SFINAE-code tha...

 
3:06 PM
@Mysticial :(
 
@JonClements given that you are a moderator, maybe you can answer the above question?
 
Xeo
@JonClements I'll be home in around 1.5h, so not until then
 
@JonClements I'll be around
just ping me
 
I'm at work, so I can't chat much. But I can lurk.
 
actually, I'm lying
I have to go later today
 
3:07 PM
It goes through 5 stdlib stackframes before that
 
@FilipRoséen-refp I'm not a C++ expert - why should being a moderator make that any different? Cos it doesn't
 
> submitted by Dunning Kruger
 
@JonClements it has nothing to do with being a C++ expert, it's about splitting up an existing answer into two separate because it now (in some sense) contains two redundant sets of explanations
 
@FilipRoséen-refp well - that's something the C++ community can suggest and do then
 
3:10 PM
I've been thinking about this in the past, since there has been times where I explain things in two different ways to make it easier to understand - but including both in one answer makes it very long
 
grab your peers - coordinate and effort and re-arrange what needs be
no need for a mod to get involved in that
 
I'm busy with cake and glue.
 
It seems like the reference gets nulled somewhere between std::_Rb_tree<>::_M_get_insert_unique_pos and std::operator<std::string>
 
@R.MartinhoFernandes Sounds like some drug thing
inb4 space cake
 
Drugs is a lie
 
3:14 PM
Or does it? This sucks monkey cocks
 
> How can I generate a random compiler warning?
> How could I do that, using only the predecessor?
yes the predecessor yes
 
#in the name of my ancestors be warned
 
#you who disturb the silence of my grave
 
#pragma git gud
 
#pragma tik
 
3:23 PM
@JonClements I'm also at work, so I can't chat a lot, but I don't have any meetings scheduled for this morning, so I can probably at least lurk.
 
what's a smurve?
 
singular of the plural of smurf
 
Smurvii
 
@thecoshman A smooth curve?
 
I submitted my first optimization request to GCC. Because having to perform optimizations on the user side is boring.
 
Ell
3:26 PM
@Morwenn what is it?
 
0
Q: Should one split up long answers with redundant information into two?

Filip Roséen - refpIntroduction I very often find myself writing long posts that explain something in more than one way, often through the use of some silly simily or with additional code examples to pin-point why something is the way it is. Sometimes I end up writing two different forms of "additional explanatio...

 
should refp stop spamming his posts in lounge
 
@Ell ...dragons?
 
@FilipRoséen-refp how about not put redundant info into answers?
 
@JonClements what about after 2000 CEST? Most owners are Europeans.I'll have the kids in bed by then
 
3:28 PM
home time :D
 
@Ell Something trivial: if (y < x) std::swap(x, y); could be faster.
 
@thecoshman that's one way of looking at it, but as I tried to explain in the question there are times where one explanation might not relate to some type of people. I mean, given a question on math, an equation suits those who know how to decipher it, whereas a worded explanation is better for those who.. well, do not fall in the latter category
 
That's not redundant.
 
for some it is like introducing a sentence in french and then explaining what it means in english.
 
@R.MartinhoFernandes what would I call it then?
 
3:31 PM
I'd just call it the answer
 
@R.MartinhoFernandes if two different entities explain the same thing, isn't one of them redundant in such case?
 
SO already accepts multiple answers
 
@Morwenn Link or it didn't happen
 
Its goal is to broaden the audience
Remove it and it doesn't stay the same
So, not redundant
 
3:32 PM
@AnalPhabet wat
 
Think of the reader, not the answer
 
@R.MartinhoFernandes as you just stated; should it then be one answer, or two? (thinking about the reader)
 
@Morwenn yer momma s/Link/\1 to optimization request/
 
3:33 PM
@Morwenn hvala
 
I'd only make two answers if they're different answers, i.e. not essentially the same
Too busy to put that on meta
Glue is drying
 
@R.MartinhoFernandes Watching glue dry definitely keeps you busy...
 
I think there is only one time where I answer a question with two answers.
And it was to one of my own questions.
 
-1
A: Can atomic loads be merged in the C++ memory model?

DamonYes, in your particular example (no otherwise). Your particular example has a single thread of execution, foo has static storage duration and initialization (that is, before main is entered) and it is otherwise never modified during the program's lifetime. In other words, there is no externally ...

I sometimes get surprised how people interpret the memory-model relations, and think that they mean something which they don't
 
Aren't they volatile, though?
 
3:40 PM
@R.MartinhoFernandes atomics? no
 
> Breach of Contract: Deaths
Learning contract programming the hard way.
 
Oh they're overloaded
Of course
 
@Morwenn "Breach of contract; two weeks of debugging" <- that should be stated everywhere one talks about concurrency
 
Oh whenever all - let me know your rough availability and I'll plan my time around it
(sooner rather than later though would be great though)
 
I'm gluing cake and then I have a date, so not very likely today
High on glue is probably not going to be popular with the gf
 
3:44 PM
Well - it's only good news - and that can wait longer than bad... so I'll leave it to the ROs to try and plan a time (and involve their community) and give me an invite - does that work?
 
I hope the date uses the ISO format.
 
ISO format is kinda bad here
 
It's a chat
It's asynchronous
 
I love how people constantly say humanity is doomed and how they have no faith nor hope about that.
 
You can just type things you want to type and then people will read and reply when they're here
 
3:49 PM
@Morwenn What's lovable about it
 
@GregorMcGregor About humanity?
 
About saying humanity is doomed and how they have no faith nor hope about that
 
@GregorMcGregor It makes me laugh.
 
Yes but why
 
Because it's true~
 
3:52 PM
I think we're doing pretty ok.
 
lol do you ever read the news or travel the world
 
@elyse Seems like you still have a lot of code to write :)
 
Web is fucked up therefore there's no hope
 
@GregorMcGregor Yeah, I do read the news. But still.
Many predicted that we'd have collapsed at this point. And we still have room to move forward.
 
We'll see
I personally couldn't care less about humanity anyway
 
3:54 PM
I care as long as I'm part of it.
Fortunately, when the day comes, I can still be a burrito instead :3
 
Now, cake, glue, and magnets!
Excitement!
 
I'm planning buying a bunker somewhere in Iceland to hide when WW III breaks
Iceland not ICEland
 
Iceland is nice but ew cold
 
There's a reason it's not called Lavaland, even though they have it
 
When WWIII breaks we'll call it WWX because too many things have already been called WWIII.
 
3:57 PM
Nintendo WWIII
 
Windows War III
 
@R.MartinhoFernandes what is it?
 
What is what?
 
I finally found the issue
 
Using phone
 
4:00 PM
5 mins ago, by R. Martinho Fernandes
Now, cake, glue, and magnets!
 
Assembling electrodes
And eating cake
 
Turns out some antivirus DLL hook loaded dbghelp.dll and did some weird stuff with it before it was initialized and that caused issue if your executable had a dependency on dbghelp /cc @R.MartinhoFernandes
 
Ell
meh. why don't games support arbitrary resolutions?
in general
 
@Ell likely because of standard definitions
 
Because fullscreen modes are prescribed by the driver
And for windowed mode it's an overkill
 
4:02 PM
@Ell I guess they are thoroughly tested at specific supported resolutions
 
@AndyProwl See, global warming is a good thing. My investments in northern Greenland real estate are going to make my grandchildren rich!
 
Since most game engine code is full of hacks and workarounds you probably have weird bugs if you don't use one of the resolutions that have been tested
 
@Ell Because developers are lazy and testers are lazier still.
 
Android gamedev is terrible because they have to test their games on all form factors that comes with the devices in the market. iPhone devs don't have this issue.
 
Now they do
 
4:05 PM
There's like two possible resolutions right?
 
@R.MartinhoFernandes Still to a much lesser degree than Android devs. Despite this, from what I've seen, they do a worse job overall (though it could also be that my kids just pick games that work particularly poorly on iPhone).
 
Android resolutions are less fragmented than people think
 
There's essentially one screen size and four densities
 
> but even though a chunk of scientists believes in what they describe as the gay-gene
"A chunk"?
 
4:10 PM
Literally a chunk.
Like a kebab
 
Don't say that word while I'm hungry
 
a kebab of scientists
 
kebab
juicy kebab
with meat sauce
melting on your tastebuds
 
Xeo
@R.MartinhoFernandes I had a nice Döner yesterday.
 
Haven't had Döner in a while
 
4:12 PM
Does one need to use Allocator::construct/destroy to construct/destroy objects in allocator owned memory?
 
I'm ordering in an extra large lamb shish, with a "messy burger" :p
 
Since I started cooking seriously
 
Ell
@Mr.kbok yeah I suppose
I just want proper res on CS while not being fullscreen :V
ah well
 
I'm trying to find this in the standard but allocator requirements just say that allocators need to provide these in C++03 and might provide these in C++11 (but then allocator_traits kicks in and provides some defaults)
 
@EtiennedeMartel They really intended to talk about chunky scientists. Thinner ones apparently disagree.
 
Ell
4:13 PM
TIL CS:GO doesn't pause when you tab-out :L
 
Fuck you guys
 
Gonna eat Russian meat quiche for dinner
Whatever that means
 
@R.MartinhoFernandes It means you'll be gaining weight soon.
 
Nah. I'll sexercise afterwards
 
@R.MartinhoFernandes At around 600 calories per hour it takes some serious stamina...
 
4:16 PM
no need for sportsing anymore
 
I read chat while sexercising once, was not all popular.
But it was fp.
 
Ell
@JerryCoffin 600 calories per hour?
gosh
 
ten calories total
3
 
Ell
that seems like a lot
 
not that gosh
 
4:20 PM
Damn
 
Beer time again. See you later.
 
@Ell Seems like a number I've seen thrown around at times (but it undoubtedly varies, of course).
 
That would explain the missing Sunday.
 
user1804599
Hello!
 
@R.MartinhoFernandes Do we need to send out search parties? "Missing: One day, formerly regarded as holy, but now mostly used for sleeping in and recovering from Saturday."
 
4:28 PM
# THE HACKER WAY FOR
# Linux installation

$ curl -s https://... | sudo bash
> THE HACKER WAY
cc @Elliotte
 
hackers in the mainframe
 
Hacker way as in "you'll get hacked" way
 
what's the non-hacker way?
 
user1804599
Mainframe? That would be $ CURL -S HTTPS://... | SUDO BASH.
 
The simple, elegant and wrong way.
 
4:33 PM
@BartekBanachewicz A real hacker positions the machine to get cosmic rays to flip bits correctly to produce a working OS. Note: development speed depends on the sunspot cycle; please plan accordingly.
 
Ell
@BartekBanachewicz actually wget would be more hacker
 
@milleniumbug it's just as safe as downloading to a file and then running it.
Which is the de facto standard way of doing it in Windows, for instance
 
@R.MartinhoFernandes except when you run the file you don't necessarily run it as root
 
Er, you will if you want to install it system-wide
 
In windows you might get some certificate check thingy though
 
Ell
4:39 PM
Certificate check?
 
exe can be signed
 
you can sign your executables
 
windows checks those
 
woo it prices
 
What happens if it's not signed?
 
4:40 PM
UAC still works
 
That's sudo, silly
 
@R.MartinhoFernandes binaries can/should be signed though. I imagine the domain/local policies can enforce this (dunno about defaults on various versions)
Oh I see the point is being made
@JohanLarsson fp?
 
@sehe you should start lurking ping if you need an invite
 
why
 
@R.MartinhoFernandes windows defender grinds on your exe for 30 minutes
 
4:44 PM
do you guys like cock porn?
err popcorn
 
Do I look like I have excess time :)
@orlp I do
 
@sehe the list
@sehe yes
 
5
A: Java animation stutters when not moving mouse cursor

Simon LaburdaTry calling this method when you are done drawing: Toolkit.getDefaultToolkit().sync(); This flushs the graphics buffer which some systems like Linux use. See the Javadoc: http://docs.oracle.com/javase/7/docs/api/java/awt/Toolkit.html#sync()

I have been trying to fix a similar bug for 3 years!
 
@fredoverflow Your own fault (for using Java, obviously).
 
Scala, actually
 
Ell
4:47 PM
TIL if you place a bounty on a question and it gets no answers, you still lose your bounty :(
 
During one of my lectures I got a question asking why range (A, B) did not include B in the resulting range (why is it [A, B) and not [A, B]). Of course the answer is that you would not be able to represent an empty range with [A,B]. If one were to ask such a question on stackoverflow, what would be the appropriate tags? The question applies to more than just range (the equivalent C++ question would be why ranges are [begin, end) and not [begin, end].
 
@fredoverflow Still your own fault (though, admittedly, a lesser fault).
 
or maybe a question such as "Why do programming languages most often denote ranges as [a, b)?" would be too broad?
 
seriously though
can anyone explain that in human words
@BartekBanachewicz, to cover all hom-functors is somewhat ambitious (perhaps someone else can really explain this?). You can generalise profunctors to enriched categories, so a profunctor between two $V$-enriched categories $C$ and $D$ is a $V$-functor $D^{o} \otimes C \to V$, where $\otimes$ is the monoidal structure of $V$. — zxv 4 hours ago
because I don't know how to tell him that I don't really it.
 
@FilipRoséen-refp Yes. In theory that's the sort of thing that should probably belong on Programmers.SE, but in reality, they close such a high percentage of questions so unpredictably that it would probably be closed there as well (but the exact reason would be much harder to predict).
 
4:51 PM
161
Q: Why are Standard iterator ranges [begin, end) instead of [begin, end]?

PuppyWhy does the Standard define end() as one past the end, instead of at the actual end?

 
@fredoverflow indeed, there exists such question both for C++ and the equivalent python - a broader question (involving "all" languages with this semantic) would probably suffer from what @JerryCoffin wrote
 

« first day (1824 days earlier)      last day (3125 days later) »