« first day (1619 days earlier)      last day (3336 days later) » 

9:00 AM
Obviously not completely :v
 
It's GCC 4.9.2 already!
 
Because this issue has been fixed for almost 2 years.
TDM GCC is MinGW not MinGW-w64.
 
Ugh. So what, Clang?
 
MSVC
 
Oh no not Microsoft
 
9:01 AM
I'm going to edit the answer a bit more to be more explicit.
 
I don't even use VS
 
but you're on Windows...
 
I'm on Windows because I should be developing on Windows for Windows users.
 
then use a Windows tool?
 
That's it. I use Linux as well and I prefer Linux if I'm not printing or doing Word
Linux is just... better for development.
 
9:01 AM
@Mikhail lol
 
man
MinGW-w64 not MinGW.
 
Recommending MSVC to people with C++11 support issues.
 
Why should I care about MinGW-w64?
 
You're frustrating me.
 
user1804599
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/cstdio:121:11: error: no member named 'gets' in the global namespace
  using ::gets;
        ~~^
 
user1804599
9:02 AM
aaaaaaaaaaa
 
Just letting you know.
 
GCC should have a freaking standard library function implemented after 2 years.
 
1) ask for advice 2) question advice
 
@райтфолд What's the problem?
 
20
A: Ambiguous call to overloaded function - std::to_string

RapptzMSVC11 lacks the proper overloads for std::to_string so you have to do a static_cast to unsigned long long or long long Note that this bug is fixed in the November CTP 2012. Which you can get here.

 
9:03 AM
@R.MartinhoFernandes std::to_string works fine in MSVC 2013, in fact you get 100% more string for your buck std::to_wstring
 
I remembered I had an answer about std::to_string for MSVC too.
(it's fixed now obv)
 
you shure like to-stringing
 
I do!
Top fucking tier function.
In a way anyway.
(I don't like how it works for floating point)
 
Is it really such a problematic function?
 
You asked for advice. I told you how to solve it.
You are willingly choosing to ignore it.
 
9:05 AM
In 2012.
 
Out of my hands.
 
Your advice was to simply install another compiler.
 
Do you expect your current install to magically start working?
 
Yeah one that has it fixed and is actually supported.
 
That's like saying, "How do I fix my virus-filled computer?" "Switch to Linux"
 
9:06 AM
@Cinch STOP DOING THE THING THAT DOESN'T WORK AND DO THE THING THAT WORKS
 
It’s more like the same compiler but in a different wrapping anyway :v
39 secs ago, by Luc Danton
Do you expect your current install to magically start working?
 
Uh, no, I ended up using std::stringstream anyways.
Fixes my problem.
 
lol
 
You manage to simultaneously complain that there are issues and solutions. You’re fucked.
 
If not I can turn to boost::lexical_cast or something like that.
 
9:07 AM
This is amazing
 
But I mean, I'd like to know: is there any particular reason why it hasn't been fixed in over 2 years?
(according to you)
 
Okay I don’t think you understand how any of this works.
 
I can use std::to_string just fine.
 
@Cinch The answer clearly shows it has been fixed for over 2 years.
 
9:08 AM
But I downloaded a fresh copy directly from GCC
 
I will hook you.
I'm glad I saw this without it getting it approved by robo-reviewers
 
wait wait wait wait.
So MinGW is not active anymore?
And MinGW-w64 now maintains it?
What's the deal?
 
It’s more of a separate project. I think?
@Cinch Software comes and goes.
 
MinGW is still active.
 
Then why MinGW-w64?...
 
9:10 AM
But due to political ideology differences it diverged and got forked.
 
FFS, 7GB of Visual Studio.
 
So there's MinGW-w64 that actually works and fixes issues.
 
Why can't I opt-out from C# and stuff anymore?
 
@Rapptz You should add this to your answer.
 
There is a link to MinGW-w64 already.
 
9:11 AM
This is important information to know why the supposed "base" MinGW hasn't fixed their own bug.
 
I literally link it.
 
Yeah, but I think the reason why you should switch or use the linked compiler is important
 
Also in the answer.
 
I'm a noob here and I'm telling you that I didn't switch because I thought it wasn't a "standard" distro
 
tl;dr you didn’t read the answer
 
9:12 AM
By the way.
I want you to compare our conversation to the one I had earlier: chat.stackoverflow.com/transcript/message/22237457#22237457
About the same exact issue.
 
> This issue has been fixed in MinGW-w64 distros higher than GCC 4.8.0 provided by the MinGW-w64 project. Despite the name, the project provides toolchains for 32-bit along with 64-bit. The Nuwen MinGW distro also solves this issue.
Right?
 
Yes.
 
Where am I going to find 7GB of free space at this time? :(
 
Right.
 
@R.MartinhoFernandes ram disk
 
9:14 AM
@R.MartinhoFernandes Delete videos.
 
All I'm saying is that maybe I should add another small snippet that MinGW-w64 has fixed this AND is still widely used and a fairly standard flavor of GCC. Fair?
 
I'll edit my own answer.
 
@Rapptz There's pretty much nothing but Windows on this disk (it's a virtual machine).
 
@Cinch No.
 
Okay.
 
9:15 AM
The answer is fine.
 
The answer says that you need to switch to another flavor.
 
@R.MartinhoFernandes Guessing you're not using one of those dynamic HDDs VirtualBox has?
 
It doesn't really state a higher reason for "should"
 
because the issue is fixed there
duh
 
Yeah but why should I download an entire new compiler just to solve one problem?
 
9:17 AM
@Rapptz Those still come with a fixed size. They just don't allocate everything at once.
 
Or is it safe to?
 
I'll have to grow it.
 
Will my other projects still work with the new flavor?
 
10 mins ago, by Luc Danton
It’s more like the same compiler but in a different wrapping anyway :v
 
@Cinch Because you want a compiler that works?
 
9:17 AM
That's the questions that might go through novice people's minds.
Obviously the right answer is to switch but newbies don't know this.
Or why.
 
@Cinch No one ever knows.
 
well, fuck em
 
@Cinch Because it works.
 
^
 
This one doesn't work. That one works. Why should I switch to that one?
 
9:18 AM
Ugh I'm sorry I'm a stickler for documentation and clarity so I tend to try and be really anal about this sort of thing.
 
About what? The answer already explains that one doesn't work and another does.
 
@Cinch Which is fine. What’s aggravating is that a) the answer contains everything b) the link that the answer contains has even more things c) no spoonfeeding.
 
It cannot be clearer. If you add more stuff, it becomes less clear.
 
c) no spoonfeeding? What do you mean?
@R.MartinhoFernandes Yeah I think it's the pinnacle of clarity.
 
@Cinch RTFM, basically.
 
9:19 AM
Ya know I think I'll just add a comment.
@R.MartinhoFernandes ...I can't decide whether this is ultimate a good or bad thing in the big picture, honestly.
 
@Cinch If you still have MinGW, does this compile on your toolchain?
 
@Cinch The more you spend (not) reading the chat instead of reading whatever it is you should be reading (like the answer and the link) the less benefit to everyone involved.
 
Been a while since I've used vanilla MinGW but back then this didn't work.
 
@Cinch I thought you were a stickler for documentation.
 
@Rapptz No, actually.
 
9:21 AM
Wonder why.
 
No namespace, no?
 
"But shouldn't vanilla GCC be okay?!" says Newbie Cinch
inb4 no it's not
 
You are very confused.
 
inb4 "Why" says Newbie Cinch
inb4 because MinGW is badly maintained?
 
@Cinch Well, the reply is "Is it? (what is 'vanilla GCC'?) Didn't you just complain it isn't?"
You're still not reading anything.
 
9:24 AM
I'd help you but I honestly have already repeated this.
If you didn't read the first time I don't see the point in repeating it again.
 
So, does this mean that I should automatically shun the main MinGW GCC like the plague?
 
Also all the other (non) conversations.
 
'Morning! :D
 
TDM-GCC and any original MinGW distro refuses to fix issues with MinGW. I'm not adding this to my answer because it's off-topic. I'm not here to convince people that MinGW is the devil's work on SO because that's ranting and off-topic there.
The original MinGW distro refuses to fix issues like thread support and C99 support and 64-bit toolchains.
 
@Rapptz But how is that baseless ranting? Objectively, MinGW is broken.
 
9:26 AM
Politics has no place in SO.
 
@Cinch That has been established in the question. Were it not broken, there wouldn't be a question.
 
You can infer that it's bad from the question body.
 
Remember, SO is Q&A.
It’s not like Quora or Reddit.
 
@R.MartinhoFernandes Yes but I'm not sure what course of action to take. And no, I am not directly compelled to switch just by that answer alone.
 
It’s very matter-of-fact and to the point.
 
9:27 AM
@LucDanton Hm...
 
@Cinch Well, if "this works" is not compelling enough, I don't know what is.
 
14769
A: Why is processing a sorted array faster than an unsorted array?

MysticialYou are the victim of branch prediction fail. What is Branch Prediction? Consider a railroad junction: Image by Mecanismo, via Wikimedia Commons. Used under the CC-By-SA 3.0 license. Now for the sake of argument, suppose this is back in the 1800s - before long distance or radio communicati...

Compare this answer to Rapptz's answer.
Which style is preferred?
 
sighs
 
@Cinch The one that doesn't include unnecessary information.
@Cinch That answer describes the problem, just like Rapptz's does.
(The problem is that that distribution is buggy; the problem is not the history of MinGW)
 
Starting from the very first sentence.
 
9:29 AM
The answer could've been a lot shorter, though.
But that doesn't really matter, both answers are fine.
 
I don't know what you've been complaining about, then.
 
What I'm saying is that is it always bad to add more?
It's not always bad, and it's not always good... so...?
 
Is that surprising?
 
lol imagine if every answer on SO had an analogy
 
I can’t. What would that be like? I need to relate this to something else!
 
9:32 AM
Mysticial already took all the good ones.
 
@Rapptz And the entire history of whatever thing it talks about.
 
Like std::flush for flushing the toilet
 
oooooo
 
Meh there is always a fine balance between reason and history to create minimal good understanding of a topic
For example I would've never switched to MinGW-w64 before today because through this discussion it's been implied that MinGW is bad.
 
The question is "Why doesn't std::to_string work?" not "Why doesn't std::to_string work and what is the history behind this failure?"
20
A: In simple terms, what is the purpose of flush() in ostream

MysticialIn all likelihood, the word flush comes from exactly what you'd flush in real-life. A toilet... So let's try a toilet analogy: Flushing every time a new one drops into the bowl is very time-consuming and a complete waste of water. That's a big problem today where everyone's trying to be environ...

 
9:34 AM
@Rapptz Interestingly enough history is often an important part to understanding the "why" but that may or may not apply here. I'd say I agree with you, but I'm still going to make that additional comment so that people like me are pushed to change toolsets.
 
Lovely.
 
Oh wow. I never realized reference_wrapper's implicit conversion to T& allowed much more intuitive code
 
this kills the snake
..probably
 
@StackedCrooked impressive. Imagine if it were trapped on the inside. It might live. For a while
> that snake's ass is grass.
 
9:36 AM
@Cinch As Rapptz said, discussing the merits of the various GCC Windows flavours would be off-topic.
 
@Cinch Keeping age old bugs is what makes it objectively bad. Nothing else is needed to assert that.
 
@sehe Yeah if it didn't have it, it'd make it a total pain to use.
 
tl;dr I love your answer but I was still tripped up b/c I'm a noob and so I wanted to put something in there so that people like me don't trip up in the future because this is about the 3rd time I've seriously encountered this problem.
 
and also you don’t click links, or read
 
@Cinch They shouldn't. All they have to do is read.
 
9:37 AM
So, on the scale from pantoona to Jerry, how safe is to design power network in an apartment, being qualified from internet guides unqualified?
 
@sehe comfy bedding. only lacks oxygen
 
I mean come on dude if you experience the same issue 3 times don't you think it's time to switch?
 
@BartekBanachewicz dafuq. Is that even allowed?
 
@Rapptz Actually <sheepish-grin/> I hardly used it because I find the tedium of using .get() where required ... tedious. In fairness, it only works with explicit signatures (type deductions will still DTWT)
 
9:38 AM
@Rapptz No, because there are workarounds and I've been using GCC for awhile now and I don't feel that I'm experienced enough to switch whenever I feel like it.
 
@R.MartinhoFernandes of course not vOv
 
@sehe And I thought a dislike of including the whole of <functional> was a stupid reason!
 
I'm only a year-old programmer and this are the types of problems we face and yet we still don't have the right solution.
 
do I look like someone who stops for traffic lights
 
@BartekBanachewicz Can you guess what the reason for that is?
 
9:38 AM
@Cinch You would have switched from GCC to GCC.
 
@BartekBanachewicz Wait, you don't have electrical engineering or computer engineering exp?
 
@LucDanton It's a bad header to place it in and you know it!
 
@LucDanton Hehe. When I even have the "urge" to use it, it's already included (hint: boost).
 
@R.MartinhoFernandes that's for the majority of people that could fuck themselves up no
 
It came up in my latest answer
 
9:39 AM
@Cinch I made a circuit with a battery and a light bulb once.
 
@LucDanton I would've switched to something else that was different from what I've been reading through tutorials online and using to do everything else. So no.
 
It's gotten to the point where I'm gonna make my own reference_wrapper. I'll show you!
 
@BartekBanachewicz I'm going to say "no." I'm a freshmen EE and I'm going to say nooooooo.
 
@LucDanton I suppose it has to do with (proposed?) specification of INVOKE handling for reference_wrapper? I don't know whether that actually got in
 
@Rapptz I have one for rvalue references actually.
 
9:39 AM
Unless you have experience really working with it, then get someone with exp?
 
@sehe It has to do with the special typedef machinery I think.
Which no one uses afaik.
 
@sehe Sort of. There’s still a call operator though.
 
I recently shocked myself in a lab lol
 
@BartekBanachewicz You mean like you? (That you had to ask that question should be enough of a sign that you shouldn't do it; if you cannot assess the danger or difficulty, you're probably not qualified)
 
Well the point is I've seen installations done by them so-called technicians and man what the fuck
half of them can't ground properly
the half of the remaining ones will hook up lights to sockets
 
9:41 AM
INVOKE doesn't really mention reference_wrapper.
 
@Cinch This will never end. Until people (like you?) start to uctually care and improve things. See: Nuget. Docker. That is, if they're not too busy writing the umpteenth tutorial that lives with the state-of-affairs :)
 
@BartekBanachewicz Welp IDK just be careful.
 
It's just a matter of using its implicit conversion to avoid copies.
 
@sehe Welp I'm going to edit my own right now and retool to either Clang or MinGW-w64
...MinGW-w64
 
@R.MartinhoFernandes hurm durm.
 
9:42 AM
@Rapptz I was thinking bind(ref(f), …), which requires that a reference_wrapper be invokable. Hence why I mentioned the call op.
I’m not even sure std::bind supports that though!
 
there's also the argument_type and what not typedefs..
 
@LucDanton I believed it did. But maybe I misremember.
 
kinda lame
 
@Cinch All in all if you’ve had a hard time with GCC on Windows I don’t think it’s the time for Clang on Windows. No first-hand experience though.
 
yeah Clang for Windows is big man territory
 
9:43 AM
I was thinking the functional header might have been related due to bind(&T::member, ref(obj)), actually
 
@LucDanton Duh. That's been the reason I've been adamant in not switching to anything else because I can't even compile a header-only library and pull remote repos from git.
 
@sehe By that logic it also belongs in <tuple> :)
 
it belongs in <utility>.
 
@Cinch It’s not 'anything else', it’s GCC.
 
I'll start a petition.
 
9:44 AM
Sad part is that I think I may be one of the top 10% programmers in me C++ class right now.
 
@Rapptz Then one day <utility> will be someone’s <functional>!
 
It already is pretty heavy..
:p
Speaking of other things that belong in <utility>.
 
That’s just fear-mongering :)
 
We had a really bad distribution for our midterm... I got 106/110 because I forgot that passing a reference to a function that passes by value passes the variable pointed to the reference by value.
 
Why is std::addressof in <memory>?
2
Well. It makes sense I guess.
 
9:45 AM
@Rapptz Actually that kind of biases the whole meaning of "flushing". Something can "be flush", and "flushing" carries the meaning of "making it flush". I think that applies to a much broader range of actions/situations that may actually be much better analogies. However.... :( of course "flushing the toilet" has the inevitable PR appeal
@LucDanton True
 
@Rapptz Sorry, was that sarcasm? Noob Cinch cannot tell.
 
no it's a total annoyance.
 
@sehe No, flushing in that context doesn't mean "making it flush".
 
@Cinch I certainly think so. And that's good. You want to be .1% to be relevant anyways
@R.MartinhoFernandes What context?
 
@sehe ikr.
 
9:46 AM
@sehe A few messages below.
 
They actually had us to a list to list comparison function for the bonus.
linked-list to linked-list and then asked if they contained the same set of things...
 
I thought the analogy made sense.
 
I ended up implementing a cached search for values that didn't match up for the first time... on paper.
 
@R.MartinhoFernandes Imagine an assembly line with a "collector" step (yes, that's buffering! but this time, more apt than toilets, IMO). You can just see the robot "arm" or ... you guessed it: flush-bar moving and flushing all collected items into the next compartment
 
I mean, they do their progrmaming tests ON PAPER.
PAPER!!!
 
9:48 AM
@Rapptz Yeah. It makes a lot of sense to keep it with smart pointers, anyways
 
@sehe Yes, and that still means "cleanse" not "make level".
 
and there we go, I can't compile the tests for Sol without to_string.
Time for MinGW-w64
 
@R.MartinhoFernandes I suppose. I spy an etymological relation, but I can't be arsed so, yeah.
@Rapptz It does. I'd just love other sample instance to illustrate what the word "flush" means. I got the feeling the answer said "obviously, to flush means to flush the toilet". Which just feels... poor
@Cinch Toilet paper?
 
@sehe Ugh.
std::flush;
 
It fit with the theme :)
 
9:53 AM
Now the question is DWARF or SJLJ
 
IIRC SJLJ is more common. (?)
 
dwarf
 
It appears that SJLJ appears to be the better alternative as DWARF doesn't play nice with other systems.
 
what
 
If the raptor says "DWARF", you do "DWARF" :)
 
9:55 AM
> A method based on setjmp/longjmp (SJLJ). SJLJ-based EH is much slower than DW2 EH (penalising even normal execution when no exceptions are thrown), but can work across code that has not been compiled with GCC or that does not have call-stack unwinding information.
 
You only need SJLJ if you're linking to foreign code (and not always).
 
@R.MartinhoFernandes Does this include embedded scripting libraries?
 
no
 
Say, something else like libRocket or OpenGL
wxWidgets, etc. etc etc.
 
@Cinch Foreign here means non-DWARF.
And it only matters if that code lets DWARF exceptions escape anyway.
wxWidgets doesn't exceptions at all.
Neither does OpenGL.
 
9:58 AM
See I don't know anything.
I'm probably going to stay away from exceptions until I finish my first game.
 
I use SEH btw
 
Now, posix or windows threads...
 
POSIX
Windows thread is buggy
 
Alrighty.
 

« first day (1619 days earlier)      last day (3336 days later) »