« first day (1231 days earlier)      last day (3731 days later) » 

4:00 PM
He's in the trenches
 
@TonyTheLion nah, that's not him. Too many questions and doubts.
vlad is never doubtful
 
Stupid orc with a wand
 
what?
 
only smart people have doubts
 
4:02 PM
One day I'll win
one day
 
so I'm smart?
 
you can't know for sure... remember?
 
@EtiennedeMartel Is that what she said?
 
if you knew you were smart you wouldn't be smart anymore
 
4:04 PM
oh great, I got my self stuck in a loop. "I shouldn't post stupid shit that I was about to post stupid shit"
 
reddit admin sent one of the subreddits I moderate a message saying he tweeted about us.
 
@TonyTheLion lol, great site name
 
pretty weird
 
@Rapptz what reddit is that?
 
/r/butts
 
4:05 PM
what's us?
 
there's nothing to laugh about
 
documenting code is boring
 
Documenting non-code is boring, too
 
Non documenting code is boring, too
How would you guys store oneboxing in a db?
for example chat oneboxing
you have posts and then you have link only posts to twitter that needs to be oneboxed and store the information about the tweet (in case it gets deleted)
 
user3010322
4:17 PM
@Xeo Whoa, your anime character is female? o.0
 
user3010322
I thought it was a man!
 
user3010322
TIL.
 
Xeo
no
 
lol
 
Xeo
He's male
the one I had at first was female
 
user3010322
4:18 PM
Oh.w
 
user3010322
I don't think I saw that one.
 
Xeo
and people here bitched about it
 
@R.MartinhoFernandes Well, my girlfriend does like it quite a lot, yes.
 
user3010322
@Xeo ...They... bitched about your avatar? o.0
 
How can I get GCC to compile a .h file and then throw away the resulting object if it succeeded, whilst keeping the error messages on STDERR if it did not?
 
Xeo
4:20 PM
well, it was mainly the ape that started the humorous belief that I was female
 
g++ -c fields.h results in a fields.h.gch file that I don't want
 
I am trying to

myObject.ReturnIntegerMethod() == 8;

but I get an error C2276: '&' : illegal operation on bound member function expression
 
user3010322
@LightnessRacesinOrbit There's usually a command you can pass that says what you'd like to compile fields.h as. I think it's -x= or something...
 
Xeo
@ThePhD without =
 
Is that "c++-cpp-output"? I can't find much detail on it
 
4:21 PM
nvm
 
Xeo
-x c++
 
OK, but then I get a .o, no?
 
user3010322
It's like -x cpp or something
 
user3010322
Yeah
 
user3010322
What @Xeo said
 
Xeo
4:21 PM
ye, it interprets the file as a .cpp
 
user3010322
Uhm. I think you'll have to run a delete command?
 
Xeo
@LightnessRacesinOrbit well what do you want?
 
2 mins ago, by Lightness Races in Orbit
How can I get GCC to compile a .h file and then throw away the resulting object if it succeeded, whilst keeping the error messages on STDERR if it did not?
I basically want GCC to check my syntax and semantics, then nothing else
This is a sanity check of an auto-generated C++ header
 
user3010322
Can you -o > /dev/null
 
user3010322
I don't know if that's like, a thing.
 
4:22 PM
@ThePhD That's not how shells work
 
Xeo
g++ -x c++ blah.h > /dev/null?
 
@LightnessRacesinOrbit -fsyntax-only
 
@Xeo Output doesn't go to STDOUT
@Rapptz thank you
 
user3010322
Lol
 
Xeo
derp
yea
 
user3010322
4:23 PM
Rapptz saving us from being noobs.
 
Xeo
I'm sleepy
I should just go take a nap
 
@LightnessRacesinOrbit just rm the object vOv
 
@thecoshman that's not clean
And for various reasons it makes my very simple makefile less simple
 
@LightnessRacesinOrbit do it with ...; rm file.o
 
4:24 PM
My next issue is how to get boost::unordered_map to accept an enum as a key type, goddammnit
I guess this is why scoped enums were invented
@thecoshman now the error code of the line is not the error code of the g++, but of the rm
much better to avoid the file being created in the first place anyway
 
user3010322
unordered_map should have built-in hashes for integral types, no?
 
@LightnessRacesinOrbit vOV grab the error code then rm?
 
@thecoshman right. so why would I do all that if I can avoid the file being created in the first place?
 
@LightnessRacesinOrbit nah, solving problems that result from a bad solution is more enteprise
@LightnessRacesinOrbit ^
 
@ThePhD It seems to want class or namespace
 
Xeo
4:26 PM
heh, milewski has a post titled 'C++17: I see a Monad in your Future'. Nice double entendre.
 
So I got a few OpenGL news :3
 
user3010322
Also, why boost::unordered_map versus std::unordered_map?
 
user3010322
Implementation benefits?
 
@thephd you will like GL 4.5
 
user3010322
If DSA isn't core I don't particularly care.
 
4:27 PM
@ThePhD probably because it's C++03 vs C++11
 
You don't know yet so you should care :3
But yeah a lot of cool stuff coming
Also WRT xml api specs you should be able to get any version, but those files are a tad borked /cc @Borgleader
 
@Abyx woot - finally you got an upvote here http://stackoverflow.com/a/20219932/85371
Well deserved
 
Also if everything goes well I might be fulltime employee before GL5 gets closed
 
user3010322
Great. Maybe you can force intel to be more comfortmant and implement DSA.
 
Wait for 4.5. It will be worth it
 
4:31 PM
@sehe thanks now I got three :)
 
Also I got some news about VOGL and GPA
 
@LightnessRacesinOrbit -o /dev/null
 
user3010322
@R.MartinhoFernandes I said that, but apparently it's not a viable option as g++ doesn't post its object file to STDOUT ?
 
Also we talked briefly about DX 12
 
Xeo
@ThePhD -o vs >
 
4:33 PM
But that's lame dying technology so...
 
user3010322
Still easier to learn than OpenGL, IMHO.
 
Low level graphics api is not supposed to be easy to learn
 
lmao
 
It's by definition the hardest way to display stuff on screen
 
next time I make a shit API, I'll be sure to call it "low level"
 
4:35 PM
It's mostly mandated by use of implementation and performance, not ease of use
@Rapptz you are encouraged to send your proposed API to khronos
If you think you can make better API then go for it
 
Are you serious?
 
user3010322
I'm just wrapping all the gross and ugly up in my engine. :3
 
You can never tell.
 
I am half-serious.
 
Malaria is interesting.
 
4:37 PM
You could submit your proposals, but that requires more knowledge than "I used opengl once and it sucked"
There are a lot of other factors involved that people overlook
 
You make it sound like improving the OpenGL API is an extremely difficult task.
 
It kinda is.
 
my uni still teaches gl_begin gl_end vOv
 
user3010322
My uni did the same.
 
user3010322
4:39 PM
The reason I was so behind on all my assignments is because I did everything the new GL way.
 
Suckers.
I didn't learn OpenGL in school.
 
@ScarletAmaranth Apparently not even that properly, since it's glBegin and glEnd :P
 
@R.MartinhoFernandes teeheeheee :)
 
user3010322
Which was incredibly painful.
 
user3010322
My TA was slightly upset with me.
 
4:40 PM
@R.M you can laugh all you want. That is my view based on observing the khronos work for the past year
 
user3010322
"Why don't you just use display lists and glBegin glEnd?"
 
user3010322
Also, isn't the gl API kind of specified in terms of C data types and structures?
 
@BartekBanachewicz I think it's trivial to prove that improving the OpenGL API is not hard.
 
@thephd no.
 
There are several well-known defects that can be easily fixed.
 
4:41 PM
@r.m some parts of it are obvious alright
 
There you go. QED.
 
user3010322
DSA should have been core since long peaks~
 
If that was your point, then you win
 
user3010322
I have no clue
 
user3010322
4:45 PM
about why this is behaving as it is.
 
UB~~~~~~~~
 
user3010322
I think my plane equation is too ambiguous.
 
I fixed it for you already :)
 
user3010322
0 = ax + by + cz - d doesn't... really have enough inormation about whether it's 40 units south of the origin and pointing up with a Normal of 0, 1, 0 or it's 40 units north of the origin and pointing 0, 1, 0 up from the origin.
 
user3010322
@ScarletAmaranth ?
 
4:47 PM
Y U NO use point and normal?
 
user3010322
Because the shortest equation is normal + distance. :c
 
I have to start thinking about 3D Glisha
 
user3010322
But the obvious flaw is that... well, yeah. I don't think 0 = ax + by + cz - d actually defines a unique plane? :c
 
@ThePhD what
 
user3010322
But I could have sworn it does.
 
4:48 PM
@ThePhD Er, it does.
 
why would it not?
well, it doesn't define "back" and "front"
if that's what you mean
 
It does too.
 
user3010322
It's not back and front that I'm confused about. It's why this plane looks like it's moving in the direction opposite from what I'm specifying.
 
no it doesn't
 
Planes don't... move?
 
user3010322
4:50 PM
When I change "d" and keep the normal the same, I mean.
 
Wait, is this an aeroplane?
 
user3010322
Noo, a math plane!
 
it's a PhDplane
 
@ThePhD d is a dot product.
That equation defines the set of all points P whose dot product of the vector OP with the normal equals d.
 
user3010322
Maybe my camera is just upside-down, then.
 
user3010322
4:55 PM
Because the planar math lines up.
 
user3010322
It's hitting all the right points.
 
user3010322
Just. Blargha. ;~;
 
What is the problem?
 
man. I don't think I get how assembly code works... I'm trying to do something very simple though.
 
user3010322
Maybe it's not just the plane. Maybe the entire coordinate system is upside-down.
 
user3010322
4:57 PM
Which is slightly baffling. Let me make some scene changes and check.
 
I have a number, T, which was already calculated and now in GPR2. Now I want to do (2*T - 100) / 200 and save that in GPR3.
 
oh, @R.MartinhoFernandes it seems that it does indeed define even back and front
 
@ScarletAmaranth There are two unit normals that define the same plane.
 
user3010322
WELP
 
@R.MartinhoFernandes yeah I am an idiot, why the fuck are you always right
 
user3010322
4:58 PM
Made a change to a base template
 
user3010322
Gotta recompile for 10 minutes.
 
BTW, I declare March the month of Barteks being nice to derpstorms
 
@BartekBanachewicz alrighty Barket
 
Yeah.
Feels like a right thing
I have to fix my issues.
So long for not acknowledging personal suckage
 
Sam
Higuys...!
 
5:03 PM
Hi Sam
What's up? How was your day?
 
Sam
whassup?
 
I have learned exciting news about OpenGL.
 
Sam
@BartekBanachewicz Cool So gooood it was! :D You tell...
 
Androidoautocorrect
Or auto fuckup really
BTW, I am still not in the myo alpha developer program
Apparently I am not as good as the other guys who wanted in.
 
5:10 PM
@R.MartinhoFernandes that makes sense
@ThePhD -o > /dev/null is not the same as -o /dev/null
> ends the string of command arguments and starts redirecting output, but -o requires an argument
fortunately this one would do ;)
-fsyntax-only is great though
 
o.o that is amazing
 
user3010322
That aactually makes me want to itch myself.
 
user3010322
http://puu.sh/7dHPj.png
~~~~ SEPARATOR ~~~~
http://puu.sh/7dHSo.png
 
user3010322
Wht the hell did it coalesce both pictures into one box.
 
user3010322
There we go.
 
user3010322
5:15 PM
@ScarletAmaranth @R.MartinhoFernandes ^ from the above pictures, you'll see that the sphere which is given a positive y value (radius 50, position 0 50 0) extrudes down, compared to when its at a y-value of 0.
 
user3010322
The strange thing is, the lighting is shown as properly coming from above (directly above: 0, -1, 0 directional light)
 
user3010322
So it's not as if the image is flipped
 
user3010322
just... the coordinate system for the objects themselves?
 
omg please implement antialiasing already
 
user3010322
5:16 PM
So it's not really the plane or the circle equations I'm using. There's something wrong with the actual coordinate system, and I don't know why.
 
user3010322
@ScarletAmaranth Not until I solve this!
 
oh, i know WHY, because you screwed up alright ^^ but what, that I don't know! :)
well, I'm off to a party, I'll get back to you when I get home :P
 
user3010322
The camera is above the plane and the circle (0, 60, 300). So it's supposed to be looking down at it, not flipped upside-down looking down at it.
 
debugging code always makes me feel like an idiot. More often than not it's an incredibly stupid mistake on my part
 
You use dynamically typed languages and they typically require more debugging
 
user3010322
5:21 PM
I'm so confused...
 
That's a good thing. You are learning the most when you are confused
 
user3010322
No, I just pander about writing down equations and checking code.
 
Apple's software is getting more and more annoying :I
just went through 4 popup screens to get a movie I already bought on my account, then it said "your screen doesn't support this resolution" (three monitors and one's a cheap TV) then it exited out
 
> Reverted a previously applied hack because it fixes nothing and might break something else.
Question for you guys. Let's say I have this: x == y, where x and y are two arbitrary boolean expressions. Is the evaluation order of those specified in the standard, or is that up to the implementation?
 
Sam
5:38 PM
ok... time to go... bye bye
 
left to right
 
user3010322
Welp.
 
user3010322
I still don't understand what I've done wrong. =[
 
Xeo
@EtiennedeMartel impl
 
user3010322
Sadface is sad.
 
Xeo
5:40 PM
no sequencing introduced by ==
 
oh wait, the associativity is left to right
 
user3010322
Maybe my shading is incorrect, and it's giving me the wrong impression.
 
hmm is it possible to type erase a pointer-to-member-variable? I'm in a bit of a pickle with auto-generating code. I want char MyType::*x where MyType::x could be a float, or int, or anything
 
@ThePhD So what's the error?
 
As long as I know the sizeof(MyType::x), I can just memcpy through that pointer, right?
 
5:41 PM
@Rapptz Associativity doesn't govern order of evaluation. It just means that something like x == y == z parses as (x==y)==z, not x==(y==z)
 
yeah I kinda misread
 
@ThePhD I mean, what plane is that, what axis is "up", all that stuff?
 
Xeo
@LightnessRacesinOrbit prolly possible, sounds really weird though
 
@Xeo Thank you.
 
@Xeo I realise :/
 
5:42 PM
@LightnessRacesinOrbit memcpy it to a buffer, and then back.
Careful though.
 
Xeo
memcpy a member-pointer?
 
I'm trying to build, from config file, maps of everything I need to know about a bulk of data that needs to be handled throughout this application. The type for internal storage is included in that config.
 
Computing the right size for the buffer is not easy (at least not for arbitrary ptms).
 
user3010322
@R.MartinhoFernandes Up (reference_up) is defined as 0, 1, 0. The plane has a normal of 0, 1, 0 and a distance of 0. The camera is above the plane and the sphere at 0, 60, -300. I should probably draw a 2D diagram of how this looks so I'm not just making a derp choice.
 
@Xeo Why not?
They're PODs, no?
 
Xeo
5:44 PM
I don't think there's any kind of description on what member-pointers actually are
You could just type-erase the writing part into a std::function, though
storing the member-pointer in the functor, and taking the data as a char-array/vector input
 
@Xeo ah, yes, that's it
 
@Xeo Hmm, I just noticed they are not listed in 3.9. Types.
Or am I not seeing them?
Wait, found 'em.
 
@ThePhD Y is up? absolutely disgusting :v
 
Xeo
@melak47 eh
 
@Xeo that's great because said function only needs to be void(field_key_t), for all fields — I can auto-generate the body of each function, and so the body of each function can use the proper type to do its work
now I only wish I had access to lambdas
 
user1804599
5:51 PM
@thecoshman yes, why?
 
@ThePhD I'd like to help, but since you don't want me to see furrovine I can't~
 
@melak47 His raytracer uses furrovine?
 
@LightnessRacesinOrbit You can write a simple reusable template to adapt the member pointers (like std::mem_fn)
 
@Borgleader last time I checked
 
@ThePhD The camera is above the plane?
You need to fix your idea of "above"
 
user3010322
5:55 PM
I drew a purrrrty purricture.
 
user3010322
 
@R.MartinhoFernandes Well, it turns out I don't need the member pointers at all
 
Yeah, your "up" is wrong.
 
Maybe I've asked you guys before, but what's the deal with POSIX missing sane endian conversion functions, particularly for 64-bit values?
 
@LightnessRacesinOrbit lol
 
user3010322
5:56 PM
Up is not supposed to be ( 0, 1, 0 ) ?
 
I know what the type and the name is of each field, at the auto-generation stage
Since I can confine all use of that information also to the auto-generation stage, that's sufficient
I'll just have a shit-ton of auto-generated functions that are used internally
 
@ThePhD Up is whatever you want. That's what projection transforms are for.
 
That's kind of like templating ;)
 
@ThePhD But you made up be (0, -1, 0).
 
Is (0, -1, 0) the light poynting vector, or "two's complement unsigned" RGB for green?
 
user3010322
5:56 PM
Um. No I didn't? :c
 
@R.MartinhoFernandes Thats light direction
 
@ThePhD Your screenshots prove otherwise.
 
user3010322
=[
 
@ThePhD first thing i'd check is your camera....stuff
what are you using for that these days
 
@Borgleader It's many things. Including "up". Just look at the screenshots.
 
5:58 PM
It should probably be (0, – c, 0).
 
user3010322
Quick check: direction_to( vector from, vector to ) == to - from, right?
 
Yes.
If moving a sphere from y=0 to y=50 moves it down, then "up" is clearly y=-1.
 
@ThePhD Sorta depends on the coordinate system. For mathematical vectors in a vector space, yes.
 
Your transformation is buggy somewhere.
 
@R.MartinhoFernandes Or maybe he inverted a cross product? that would return -whatIsExpected
wouldnt it?
 

« first day (1231 days earlier)      last day (3731 days later) »