« first day (877 days earlier)      last day (4070 days later) » 

6:20 AM
@ThePhD It sounds diesel?
 
Hello all.
I need some help haha.
 
No.
@ThePhD Deferred rendering is quite easy
 
6:37 AM
Any 10ks here?
 
Is *argv[] and ** argv the same thing? Please explain either way.
 
@Daedalus What do you need?
 
stackoverflow.com/questions/15332363/c-program-biriyani for some delete votes on this question. Its either trolling, or a user has a serious misunderstanding about what code does
 
@JamesDyson Under normal circumstance (argv being a parameter) they're the same, because an array is passed as a pointer to the first element of the array.
 
@JerryCoffin so **argv is a pointer?
 
6:39 AM
@JamesDyson char **argv is read right to left: "argv is a pointer to a pointer to char".
 
@JerryCoffin I suppose this would make better sense if I understood the meaning of a pointer :P
 
Thanks for that.
 
@JamesDyson A pointer is a variable that holds the address (location) of something else. Roughly equivalent to somebody's phone number written on a slip of paper. It gives you access to something (like you can call them), but isn't that something itself (i.e., what's on the slip of paper isn't the person, only their phone number).
In this case, maybe it would make more sense to think of it as the address of somebody's hose written on a slip of paper -- only instead of referring only to that one house, it's giving you the address of one house, but really referring to all the houses along that street until you get to the next cross street.
 
@JerryCoffin Very useful. Thank you for taking your time to explain. So I take it the use of the * is a direct access to the value?
 
@JamesDyson Yes -- int *x; means "x is a pointer to an int", and *x is the int that x points at.
 
6:48 AM
@JerryCoffin Thank you very very much. You cleared up a lot for me.
 
Glad to help.
 
:8192785I tried accessing the question but it was deleted, may you recite what it contained?
 
7:21 AM
@JerryCoffin I prefer a slightly more literal 'address' analogy, but this works just as well.
 
Ell
Awww Damn.
 
Xeo
Uwah... morning
 
Good morning
 
Xeo
I think I'm actually truly awake for once.
 
7:43 AM
Anyone with delete privs here?
 
@BartekBanachewicz Deferred Rendering is easy. Deferred Rendering with Order-Independent-Transparency isn't, or with any kind of transparency at all.
 
ok w/e
-2
A: Object-oriented design pattern to avoid if/then/else statements

RadioactiveSHIT– Radioactive I THINK U SHUD QUIT PROGRAMMING JAKASSS

plz to delete/flag/burninate as appropriate
 
@nneonneo only mods have those, normally people can only vote
off to work for me ¬_¬
 
Have fun!
 
@thecoshman 20kers have delete privileges.
But it takes three votes.
Also fuck Monday.
Fell in the snow, hurt my hand; got to work and one of my screens appears to be dead.
3
A: Representing any universal character within the range of 0x00 to 0x7F in C++?

bames53In C++11 the restrictions on what characters you may represent with universal character names do not apply inside character and string literals. C++11 2.3/2 Additionally, if the hexadecimal value for a universal-character-name outside the c-char-sequence, s-char-sequence, or r-char-sequence ...

Also, it seems that GCC has been messing with me.
Bastards apply the restriction in string literals.
 
8:03 AM
Ahoy
 
@R.MartinhoFernandes Good morning, nevertheless :)
 
8:22 AM
Hiya folks!
How are you all doing?
@ereOn : Yo!
 
@sehe "Good".
 
Vectors, Quaternions, Matrices <--- What is this all... called?
 
@R.MartinhoFernandes Aww, that's horrible. :c
I would give you a hug, but I'm not there.
 
Xeo
@ThePhD Complicated Shit.
 
8:26 AM
Just out of curiousity, is there a matrix class in C++?
Since there's a vector! :P
 
@ThePhD Are you after "linear algebra"?
 
Uh. I think so.
I'm trying to name a class that does... Math-y stuff.
 
I was going to make VectorMath, QuaternionMath, and MatrixMath, but... uh.
Thought I could figure out a common name and roll it all up into one thing.
 
Xeo
@ThePhD Stahp
A "class that does Math-y stuff"? What would make it a class?
 
8:30 AM
How about this beautiful web page: Permalinks Redefined
 
@Xeo Being a collection of sets.
 
Xeo
@R.MartinhoFernandes Don't try and go all math-y here. :P
 
I really only use classes in this scenario so that I can reference functions that are declared after the ones that are using them.
 
Xeo
Seriously, as soon as nobody has his eyes on @ThePhD, he goes and runs with scissors, plays with fire, jumps from roofs...
 
;~; It's not that baaad.
Maybe I could call the class Calculus.
Because... why not throw all my users for a loop?
 
Xeo
8:33 AM
Maybe you shouldn't make it a class at all.
 
But then I'll get stuck. :c
 
MathManager
 
@R.MartinhoFernandes I'm not that crazy. D:
 
Xeo
Are those things templates?
@ThePhD Says who.
The evidence suggests otherwise.
 
@ThePhD Declare them before the ones that are using them...
 
8:35 AM
I can't be held down by function/declaration order, man!
 
Xeo
1 min ago, by Xeo
Are those things templates?
 
@Xeo Uh. Yeah, most of them will be.
 
Xeo
Well, atleast you have that excuse going for you.
@ThePhD So.. what about your usual .h and .h.inl split?
 
Which excuse?
 
Xeo
@R.MartinhoFernandes Not splitting in .h and .cpp
 
8:36 AM
There is no excuse.
 
morning fellows
 
@Xeo You can still split declarations and definitions in a header.
 
Wait a second. You can't .h and .cpp split functions that are free in a namespace!
... ... can you? o_O;
 
Xeo
58 secs ago, by Xeo
@ThePhD So.. what about your usual .h and .h.inl split?
 
this is going to be a looooong week
 
Xeo
8:37 AM
@ThePhD non-templates, sure
 
@ThePhD why not?
 
Seven days, I heard.
 
Xeo
@R.MartinhoFernandes Unbelievable
 
Oh.
 
@Xeo you can do it with templates too, but you have to mess around with explicit instantiations and stuff (which implies you need to know in advance which types it should be instantiated for)
 
8:38 AM
I thought free-functions had to be delcared AND defined where they stood.
TIL.
 
@ThePhD declared != defined
 
Perhaps I've been reading too much C...
So, I guess I should just make a Math namespace, then?
 
@ThePhD Not even in C.
 
.h: namespace foo { void bar(); }, .cpp: namespace foo { void bar() { /*do stuff*/ } }
@ThePhD that would make sense, yeah
 
Ooh!
An if I put it in a namespace,
 
8:39 AM
@R.MartinhoFernandes or five depending on how you like to consider it
 
using namespace SexyMath <3
 
@thecoshman looooong
 
@R.MartinhoFernandes that's what I mean, only mods can outright delete a post all on their own
 
blarghgl. Someone wants me to do their stupid java assigment for them. "develop a class that provides 5 buttons", "use the observer pattern to process events from the buttons", "use the MVC pattern"...and the whole source is in German. Kill me now...
 
Hm.
@melak47 Just run around with some Scissors. :D
Or a knife.
Pointing inward.
 
8:43 AM
who the fuck writes source code in German >:@
 
@melak47 Germans!
So, my original math class is called Mathema.
 
And they have their own German linked list class, of course
 
It does stuff like abs, etc etc.
For my linear algebra math class...
....LinalMathema?
@melak47 They couldn't use the library?
 
@ThePhD You should name it Gym, then.
(Also, you still insisting on a class?)
 
@ThePhD LinAlgRoxxorLib
 
Xeo
8:45 AM
@R.MartinhoFernandes We seem to have enlightened him.
 
1 min ago, by ThePhD
For my linear algebra math class...
 
@R.MartinhoFernandes (I dunno, it feels weird to just drop stuff in a namespace. D: I have free functions, but since my other class is template <typename T> Mathema { ... }, I thought I'd keep the same convention?)
 
Oh gosh, that's horrible.
 
Xeo
@ThePhD why is that other thing also a class?!
 
Why would you do that to yourself?
 
8:46 AM
@Xeo 'Cause, uh. I got constants on it 'n' stuff.
 
a class with static methods? or is this some sort of math singleton? :p
 
Like Pi. And HalfPi. And MinValue and MaxValue.
 
Deprive yourself of sweet type deduction.
 
Xeo
room topic changed to Lounge<C++>: Beware: Confused and violent PhD student running with scissors. [c++] [c++11] [c++-faq] [no-helpdesk]
4
 
q_q I am not violent!
The only reason it has a template is for the constant values.
.... Maybe I could put that in MathemaConstants instead...
Man, I dunno.
I'm confuuused. ;~;
THIS ALL MADE SENSE BEFORE.
 
8:47 AM
why do you want to instantiate your math class to do math :/
 
Xeo
I betcha 50 rep it didn't.
 
I don't instantiate it!
 
so static class?
 
It's just Mathema<int>::Pi // 3
 
Xeo
@ThePhD Mathema<int> // instantiation
 
8:48 AM
I mean your soon to be linalg thing
 
Xeo
Welp, off to work
 
q_q
Now I feel horrible.
@Xeo Have fun.
 
what would the LinearAlgebraMath class do?
 
user142019
Morons y u litter train.
 
user142019
Also, hi.
 
8:49 AM
morning
 
@melak47 ToEulerAngles, AngleTo, FromAxisAngle, etc. etc.
 
@ThePhD but that is what namespaces are for
 
@ThePhD statically, or instantiated?
 
@Zoidberg I'm sure you need to get somewhere too
 
user142019
Is it that difficult to put empty bottles and cans in the fucking bin?
 
8:50 AM
@ThePhD namespace man. You have no 'objects' just 'functions'
 
Plus, making the class a template instead of the functions deprives you of type deduction.
 
morning
 
~Sigh~
 
@DeadMG run man!
 
Welp. Time to rework my math class...
 
8:51 AM
@thecoshman For any particular reason?
 
I'm gonna need to do some breakdowns too.
 
while @ThePhD is committing crimes against C++, I'm about to touch java. noooooo~
 
@DeadMG you are likely to start shouting :P
there is class abuse going on
@ThePhD not a huge amount of work, you only need to convert it to a proper namespace
 
Mathema<T> <-- class, templated, holds constants like `Pi`.
Math <--- namespace, will hold mathematical function for `T` (with specializations)
LinalMath <--- namespace, will hold linear algebra functions for `T` (with specializations)
 
@ThePhD KISS
 
8:53 AM
why do you need templates for constants?
 
@thecoshman Because writing out ones for int, short, double, float, schar, sbyte, etc. etc. is.. ... a world of pain?
 
Either stuff all of it into a class template with only static members, and name it Math, or use a Math namespace and template the individual functions
 
hiya
 
Emphasis on one. You don't need multiple namespaces for "math stuff"
 
@ThePhD ¬_¬ double pi = 3.14...; what more do you need?
 
8:56 AM
hi there
 
@thecoshman float pi = 3.14159f :D
 
well, you could do math::linear::<stuff> if you really wanted that sort of shit
@ThePhD phft, nope. I would just keep one double that is nice an precise. If you need other forms, convert as required
 
I actually ran into a subtle problem where if I was using a double it would do some funky rounding and truncation and answers would turn out wrong.
 
@ThePhD sounds more like you where doing something wrong
 
It also fucked up other things, too. ._.
@thecoshman Probably. D:
But technically, what I set up fixed the probleeem. ;~;
Doesn't that count for something?
 
user142019
8:59 AM
@ThePhD narrowing conversion if you really have to.
 
@ThePhD Dude, LinalMath is a terrible name. Just sayin.
 
@R.MartinhoFernandes I figured. ._. Because of it, I'm thinking of just having 3 classes, one for each type of math (VectorMath, QuaternionMath, MatrixMath).
 

« first day (877 days earlier)      last day (4070 days later) »