« first day (1328 days earlier)      last day (3620 days later) » 

9:00 AM
@rubenvb you can write F# using VS. You can also write F# using any other text editor or IDE.
 
You must be a funny guy.
In Russia.
 
@rubenvb just to spell it out: NO
We're not funny. You weren't looking for the answer
 
Oh mono. Hardly an alternative :-/
 
@rubenvb Go away.
 
9:04 AM
lol
I'm kidding.
 
well ruben I finally figured out what the cause of the bug was
 
Oh. You must be a funny guy.
In Checheny
 
Sheesh. Do you guys have stock in mono?
 
Get F#cked.
6
@WilliamAndrewMontgomery Yes it is
 
@rubenvb No. We got a question about whether it was tied to VS.
 
9:05 AM
struct camera
{
glm::vec4 world, orientation, up;
float xr, yr;
};
that was the culprit
 
user3010322
@LightnessRacesinOrbit Should be the official conference name.
 
uninitialized floats
 
@rubenvb Are you a common language runtime platform racist?
 
@AaronKyleKilleen They're only uninitialized if you don't initialize them
 
@rubenvb Yeah, meta has no separate rep now, just like every other site-specific meta. You get separate badges though.
@ThePhD Yep.
 
9:06 AM
@BartekBanachewicz lol is that a thing?
 
@rubenvb apparently it is :|
 
it would have been nice if the compiler had told me I was using them uninitialized, the code worked unchanged plenty of times
 
@AaronKyleKilleen Write a friggin' constructor then.
 
user3010322
I really fucking hate how almost every goddamn std::basic_string is inaccessible by GDB
 
user3010322
I don't get it. ;~;
 
9:10 AM
-O0
 
-Og: Optimize debugging experience.
 
user3010322
I am!
 
user3010322
 -O0 -DEBUG -g
 
user3010322
just to be extra sure
 
it's -DDEBUG
 
9:11 AM
std::basic_string<Lounge>
wtf is -DDEBUG? surely the lack of -DNDEBUG is enough
 
user3010322
Can never be too sure.
 
@ThePhD you ridiculous macro abuser.
 
Well, yes, you can be "too sure" (see: Bartek, DeadMG)
 
@LightnessRacesinOrbit Some people use #ifdef DEBUG macros. I'm not one of them though.
 
user3010322
@rubenvb -Og made things worse.
 
9:15 AM
give an SSCCE
 
@ThePhD haha lol.
So much for optimized debugging experience.
 
user3010322
Still can't see a std::basic_string that's in the guise of a T&&... or in general, actually
 
user3010322
I dunno.
 
user3010322
Maybe they just don't have visualizers for std::string
 
user3010322
... But calling param.c_str() works....?
 
user3010322
9:19 AM
GDB, I don't understand you. I don't think we can ever be friends.
 
user3010322
... I don't know how to see the return value of a function I stepped over.
 
@ThePhD there's them python pretty printers.
 
user3010322
Well, this just bites.
 
user3010322
@rubenvb QtCreator loads those automatically.
 
no repro
sorry m8
 
user3010322
9:21 AM
vOv
 
I used this
#include <iostream>
#include <string>

template<typename T>
void f(T&& t) {
    std::cout << std::forward<T>(t) << '\n';
}

int main() {
    std::string str = "hello world";
    f(str);
}
 
user3010322
Maybe my thing's just configured wrong.
 
works just fine for me
 
@ThePhD there aren't many debuggers that show that
 
gdb pretty printers are neato
(gdb) print str
$1 = "hello world"
 
9:22 AM
almost like Show instances
almost.
 
user3010322
 
user3010322
@Rapptz ^ Dunno what to say, man.
 
user3010322
My thing must be rigged to shitters.
 
 g++ -g -O0 -std=c++11 dev.cpp -o dev
these were my flags btw
 
@ThePhD Windows or Linux?
 
user3010322
9:23 AM
Windows
 
That might explain it. I find debugging better on Linux.
 
(gdb) s
f<std::string&> (t="hello world") at dev.cpp:6
6 std::cout << std::forward<T>(t) << '\n';
I'm on Windows too btw
@rubenvb Yeah, I agree.
 
Huh, what toolchains are you guys using.
 
We're both on the same one.
i.e. GCC 4.9.0 from Mingw-w64
 
user3010322
mingw-4.9.0 from mingw-w64, got from the installer from mingw-builds inside the mingw-w64 project
 
user3010322
9:28 AM
x64 toolchain, SEH exceptions, posix threads
 
Huh, that is weird. I'm flabbergasted.
(awesome word by the way)
 
That answer is simply wrong: Tools > Options > Text Editor > C/C++ > Advanced > IntelliSense — hfrmobile 1 hour ago
sigh
 
@rubenvb Might be something Qt Creator does
iunno
 
@Rapptz huh, don't you need to std::move that?
 
no
 
T&& is a universal reference
so you forward it
 
not move it
 
FUCK that rule
 
user3010322
They overlapped r-value ref and universal ref syntax.
 
9:32 AM
@Rapptz You can see what how the compiler is called in the "compiler output" tab at the botom.
 
user3010322
Which honestly just makes it confused as all hell.
 
@ThePhD isn't universal ref something that just happened?
 
universal references isn't really a thing
just a fancy name for reference collapsing when you use T&&
iunno I don't get confused but it is a bit silly
I don't like it or hate it. I am "meh" towards it.
 
user3010322
Lol
 
more typing though
so meh indeed.
 
user3010322
9:34 AM
Reverting my gdbinit to its original installed state didn't help
 
user3010322
But telling GDB to not load it at all seemed to fix the problem.
 
qt creator might do something related to configuration to support automatic prettyprinting
 
user3010322
Maybe.
 
prettyprinting typically requires you to modify the gdbinit file to include a few lines of python on linux
 
user3010322
I'm just not going to touch it.
 
9:36 AM
iunno on windows though
 
user1804599
@ThePhD It's a coincidence. It's not a special rule.
 
cause I have it..
maybe mingw-w64 does it automagically for me
 
user1804599
Just like decltype((x)).
 
@rightfold No, it's definitely a special rule, as is decltype((x)).
here's an interesting thing
 
user3010322
Fucking GDB.
 
9:41 AM
I got a message through Careers, and the guy opens by offering a relocation package
that's new.
 
Where to? That's good news btw!
 
user3010322
I query it for all the "source" files it has loaded.
 
Gunchester
er, Manchester
 
user3010322
Haha, Gunchester.
 
Oh, Saudi Arabia
 
user3010322
9:42 AM
I query GDB for all the source files it has "loaded". It tells me: C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\x86_64-w64-mingw32\inc‌​lude\c++\bits\move.h is one of them. So I say:
 
user3010322
skip file [File name]
 
user3010322
And you know what it tells me?
 
user3010322
Basically.
 
user3010322
9:42 AM
"Not a loaded source file: ignore file pending future shared library load? [Y/n]" and it ANSWERS N FOR ME.
 
have you tried pressing Y really fast before it has a chance?
 
@DeadMG Oh shit I have messages to reply to
 
@ThePhD How'd you get this info? :v
 
@AaronKyleKilleen \o/
 
user3010322
@Rapptz QtCreator has a "View" that shows you all the source files GDB considers its loaded
 
user3010322
9:49 AM
I could figure out the command for it though and punch it into the debugger log console
 
I think those are just your open files bud.
 
^ yup.
 
user3010322
No, I'm pretty sure it's not, since none of these I would ever open.
 
user3010322
Like, iosfwd
 
You sure you didn't "open" them as you're stepping into the code..?
Cause it does that.
 
user3010322
9:52 AM
I know it does that, but there's a difference between that and the massive cockfull of headers it's listing here.
 
:v I don't know how to get this information
 
user3010322
Here's what a fresh session looks like, no stepping:
 
user3010322
 
that looks like the files inside your gdbinit
 
user3010322
that used to be inside my gdbinit*
 
user3010322
9:54 AM
But yes, it does.
 
user3010322
So I'm perplexed while skip file '[File Name]' isn't working
 
user3010322
It does have spaces in the name, but I put quotes around the file names.
 
user3010322
It should... be just fine.
 
user1804599
Never use spaces in file names.
 
user1804599
If you do it anyway, you deserve things to break.
 
9:56 AM
pretty sure mingw64 doesn't have spaces
there are no spaces there, it shows you the full path
 
user3010322
 
user3010322
> Program Files
 
Oh. You're a nub m8.
 
user3010322
:(
 
I have mine in a c:\mingw folder, it's probably a good idea
 
9:58 AM
me too
 
user3010322
If spaces are the problem, then I don't want it to work.
 
user3010322
Fuck programs that can't handle spaces in filenames.
 
That's a lot of them, because people are idiots
 

« first day (1328 days earlier)      last day (3620 days later) »