« first day (356 days earlier)      last day (4598 days later) » 

9:00 PM
i had read some chapters of it , but that ebook is really good
 
Ah thanks dude
Yeah might as well read it :)
 
@LewsTherin and you know how to get it free and from where ( no need to use any HP spells :P )
 
@MrAnubis oh, all I have to do is go to Borders, cast an Imperius curse on a staff and bam! a free book :P
 
@LewsTherin lol , that won't work, i was busted last time due to this trick ( they have giant cocks to catch ya lol )
 
anyone with socket programming (UDP) experience here?
I'm just having a real annoying bug
 
9:05 PM
@MrAnubis simple, Reducto! :P
Oh damn, I'm so gonna reread the series
 
I send 1000 UDP packages to an echo server, server successfully response to all messages. when trying to receive echoed messages after around 80-90 messages recvfrom returns SOCKET_ERROR with error invalid arguments.
 
@LewsTherin but still can be blowjobed lol
 
the worth part is if I just put a simple printf in my loop, the problem gets fixed.
 
@MrAnubis mmn....
Avada Kedavra! everyone and just walk out with a free ebook
 
@LewsTherin that should work
 
9:10 PM
or I could just do Obliviate! after taking my book.
 
its obliviate, you'll surely get banged with these mistakes lol
 
yeah damn you lol
That could've killed me :(
@Gajet sorry dude...no idea wait for the masters to return
 
i am anubis , can get to you from hell anytime
 
There's a bug in Windows 8 if you log on while caps lock is on it makes things caps when you haven't got it on and vice versa :L
 
I am He Who Must Not Be Named, fear me or perish
@KianMayne lol typical
 
9:13 PM
@LewsTherin you won Mr.He Who Must Not Be Named :P
 
@MrAnubis of course I won muggle. :P
 
darn you better start using some abbreviations for He Who Must Not Be Named lol
 
You may call me Voldemort
xD
 
@LewsTherin that is so contradictory lol
since you can't be named
 
@KianMayne That's a bug?
Who the heck uses a Caps Lock key for Caps Lock?
 
9:16 PM
and i am not muggle , i am god of death and hell -> The Anubis
 
@RMartinhoFernandes Me rarely for when I need to write a longish passage in capitals
 
@RMartinhoFernandes Good edit; I was just going to comment that I use the caps-lock key (mapped as "control") on a regular basis. My first programming was on dumb terminals that used control-h to backspace, and that's what I still prefer.
 
@MrAnubis I can't die..god of me you are not :)
 
@JerryCoffin Exactly (though it's Esc here. Damn useful when vimming.)
 
Anubis () is the Greek name for a jackal-headed god associated with mummification and the afterlife in ancient Egyptian religion. In the ancient Egyptian language, Anubis is known as Inpu (variously spelled Anup, Anpu, and Ienpw). According to the Akkadian transcription in the Amarna letters, Anubis' name was vocalized as Anapa. The oldest known mention of Anubis is in the Old Kingdom pyramid texts, where he is associated with the burial of the Pharaoh. At this time, Anubis was the most important god of the dead but he was replaced during the Middle Kingdom by Osiris. He takes names in ...
 
9:19 PM
@RMartinhoFernandes I don't understand...you said the super keywords creates the base class object and initializes the variable and I'm ok with that...But what about calling the overloaded this() constructor
 
I thought Anubis was a Goa'uld.
 
@RMartinhoFernandes ahhh so you know some Stargate after all :)
yeah, a filthy parasite trying to act as a god lol
 
hey, question
 
@JohannesSchaublitb I asked first
 
int &f() { static int n; return n; }
if one calls f()
 
9:20 PM
@LewsTherin Was rather decent entertainment.
 
@RMartinhoFernandes Hmm..."useful" and "vim" in the same sentence...
 
does it create an unnamed reference!?
 
@JerryCoffin Shush.
 
is there such a thing as an unnamed reference?
or does it just result in an lvalue?
 
@RMartinhoFernandes yep I miss the shpw
 
9:21 PM
the spec does not seem to mention unnamed references anywhere.
 
@JohannesSchaublitb The return value of any function that returns a reference?
I would guess that they simply aren't treated differently to named ones, understandably really
 
things like (int const&)0 do not seem to create an unnamed reference. they just result in an lvalue
 
@JohannesSchaublitb Looks lvalue-ish to me.
 
a cast is done to a reference type
 
I say lvalue too.
 
9:22 PM
which uses the rules for reference binding
but no reference is created it seems
and that I think is logical
 
@RMartinhoFernandes what does this() do really? I can't imagine it creating an object...calling constructor means creating an object..what if I did this() and then that constructor does this(10,12) 2 objects are created what the hell? :S
 
I think you should get a Java book.
"calling constructor means creating an object" <- making too many assumptions here.
 
I have one...it doesn't explain it
just said it calls the constructor
 
Constructors initialize objects.
 
From what I learnt a constructor is called whether one is defined or not...and on its successful return an object is created...
 
9:26 PM
Constructors don't return anything.
 
I mean when it finishes or exits
 
It doesn't return anything.
 
I know but like when control jumps back to where it was invoked
 
When it finishes, the object is initialized.
 
a constructor is only called when one is defined, except when in an unevaluated context
(sizeof, ...)
note that one can be defined implicitly
 
9:30 PM
@RMartinhoFernandes so the object is created...and then initialized by the constructor
 
Wth
 
Why is my FileStream and WebResponseStream going out of scope in the finally part of the try statement?
 
I'm going to sleep.
Bye, everyone.
 
bye
 
9:32 PM
@RMartinhoFernandes Bye :)
 
and thanks :P
 
Sorry if I ask stupid questions btw, but I have never actually done any kind of course - just self-taught from books and the internet. I never realised that you didn't actually do programming even at A-Level
 
@KianMayne post code or no cigar
 
@DeadMG It's C#
Are objects declared in a try statement automatically disposed?
 
1 min ago, by DeadMG
@KianMayne post code or no cigar
 
it's called = null;
 
@KianMayne That site strikes me as not good. It forgot to mention using.
@DeadMG That disposes nothing.
 
it does solve the initialize problem mentioned if you just declare it first
 
@RMartinhoFernandes If it goes out of scope it's fine just that behaviour is weird in my opinion
 
@RMartinhoFernandes Go to sleep.
 
9:46 PM
Oh, that.
 
9:59 PM
@RMartinhoFernandes You.Sleep(2880000)
 
When a constructor is called....I assume the object is created, then it is after that it begins initialization using the constructor body.
 
the object is created when the constructor returns
and not before
 
If I derive a class and do ChildClass():ParentClass() I assume the objects of childclass and parent class are already created, so the constructor is called to initialize the instance variables. but how does ParentClass()not create another object
ok so the instance variables are only created when control enters the constructor body...so ParentClass() creates the base object before going on to create the derived object
cout << "y/n?" << endl;
 
a chunk of memory is allocated, but is not yet an object. the constructor's job is to turn that memory into an object. until the constructor returns, all you really have is a semi-initialized bunch of bytes.
 
char *s1 = "Hello" will not be put on the stack but rather on a static data-area, right? Instead what is stored onto the stack is a pointer to that data-area?
 
10:11 PM
yeah an address is in s1 and that points to a const string
 
pretty much. aside from the fact there might not be a stack at all... :)
 
@chao meaningless as in the allocated memory contains undefined variables...so all the constructor does then is to initialize...give them meaningful values
 
pretty much, yeah
the parent class's constructor runs first, and sets up the values for the parent class...then the child class's constructor runs, setting up whatever new stuff the child class added
 
ok, I get that. But what I don't get is when doing this ChildClass:ParentClass() and ParentClass is not abstract, why does it ParentClass()not create a temp object..
 
example? what you have there doesn't make much sense on its own
 
10:16 PM
Let me guess..the compiler knows how to differentiate a constructor call to create an object and just to initialize
do you know Java?
 
yes
 
ok cool please give me a few
@cHao I just quickly wrote this ideone.com/VysFN
The comments are basically my question...when or how does it invoke with intention to create and just invokes to initialize
 
In C99, can you find another usage for "." other than accessing variables in structures?
 
@ManofOneWay Designated initializers: struct T t = { .member = foo };
 
unless you want to use it as fullstop in strings :)
 
10:26 PM
the quick and simplistic answer: Java knows super(...) is a call to the parent class's constructor (in fact, that's its only possible meaning), and this(...) is a call to another constructor of that class (again, no other meaning can be inferred, since java doesn't allow function objects or operator overloading)
 
Right....so in this case it doesn't invoke the constructor with intention to create a new object.
cool
 
an even more simplistic answer: you don't see a new anywhere in there, do you. :)
 
Yeah I wondered that lol
I didn't say anything because in C++ you don't need it lol
@cHao thanks :)
 
any time :)
 
You never go on to the Java room lol
 
10:32 PM
it always seems to be dead when i'm picking rooms :)
 
My words exactly :( And the books said Java was popular yet no one ever there
 
Java sucks
it's such a constricting language, there's no choice to discuss
 
@LucDanton You're right, thanks
 
So far it seems easier to understand than C++
and I don't care about restrictions or not lol
 
you will. :P
 
10:39 PM
well, when you want to close that file automatically instead of manually, you will
or when you want to create a list of ints
 
there is no list?
 
there is, but java generics can only work with objects (that is, reference types). so there's lots of boxing and unboxing going on
 
Fortunately I just read that so I know what that means..wow stupid
 
there's lots to be hated about java generics, really. the objects-only thing, type erasure...i don't like the syntax either, but that's just my annoyance at having to think about what <? super Thingie> means as opposed to <? extends Thingie>
 
well, also, the whole INHERIT ALL THE THINGS! attitude is just
owch
 
10:48 PM
i don't get that
I don't get why I have to extend a Jframe class
it isn't abstract
 
why do you have to? i'd think you could just create one and set stuff in it if you wanted to go that route
 
@lews is this still about generating graphics in java?
 
@chao my lecturer did it, the books does it, apparently I have to as well..but it doesn't make sense to me.
@AlfPSteinbach yeah
 
ok i just now googled "java graphics demo" and got right to some stuff
you can probably use Canvas and so on in a console program
there should be no need to involve a window
however, i haven't done it so i can't say i'm more than like 93 percent sure about this being in the java "standard" library
 
is it awt or swing?
 
10:56 PM
dunno, but i think that functionality must have been there already with awt, before swing
 
extending JFrame simplifies some things, but afaik it's not necessary at all
 
yeah swing extends awt
i think awt is deprecated now...I have no idea...I am just learning java basics first
 
it's not deprecated...it just doesn't look as polished as swing does, and some things are slower, so it's not as popular
awt is closer to the native window system than swing is
 
What ever happened to wxJava?
 
native window system what's that? what's wxJava
 
11:02 PM
wxWidgets for Java
Those widgets look amazing.
 
@LewsTherin the gui of the os that's running the jvm. like gdi/user32 for windows, or x/gtk/etc for *nix
 
oh yeah so the gui depends on the system it is run on
 
@digitxp According to its Sourceforge page development ceased about a year ago.
 
@JerryCoffin Sad.
 
@digitxp If you're excited enough about it, you can jump in and re-start the development yourself. One of the niceties of open source. At the same time, yes, I realize that's not much of an option for most people.
 
11:06 PM
@JerryCoffin true true
 
not a fan of the wx series anyway
they're perfectly happy for you to let them render w/ OpenGL but my, I hope you don't want to use DirectX instead
 
does anyone recognize that? :-)
 
no, why would I?
there's nothing even remotely distinct about the image
it's a bunch of birds by a cliff
 
@DeadMG birds?
 
@DeadMG And therefore, it must be a dramatic sea scene from a movie.
 
11:09 PM
i have to sleep goodnight
 
@DeadMG What exactly would you gain by rendering via DirectX instead of OpenGL? As far as I can see, they'd have to do quite a bit of extra work, just to produce code that was less portable. Admittedly, Microsoft seems to be doing their best to much up OpenGL on Windows, but it remains fairly usable nonetheless.
 
@JerryCoffin Possibly because, for example, OpenGL's API was designed thirty years ago, and DirectX's only fifteen?
 
directx seems to be faster on windows
 
@digitxp well you can probably see that it's a movie, from the black borders atop and below
 
then you note that DirectX holds about 95% or more of the x86 games market
 
11:11 PM
(surprise, surprise)
 
@DeadMG And? Despite being newer, DirectX is a much worse design with quite a lot more cruft.
 
Here's a challenge: what's the most secure way to store a password that you actually need to decrypt, say in a scraper?
 
you cannot get a worse design than "Oh hai, magic invisible variables!"
 
@cHao It used to be 5 years ago or so, but that advantage has almost entirely evaporated.
 
at least DirectX has heard of objects
 
11:12 PM
@digitxp scraper?
 
and proper types
HRESULTs suck but they're much better than GLUints
 
@TonyTheLion Website scraper
 
and they attempt to use them properly
 
@DeadMG opengl has too...supposedly 3.0 was a rewrite of the whole api to make it more oo
 
and to boot, you can write a five line custom deleter to enable RAII in all the COM APIs, even if you hate ATL and won't use CComPtr provided by Microsoft
 
11:13 PM
@DeadMG Heard of them, but demonstrated that its designers were clueless, and have no idea about how to do a decent OO design. Ultimately, the OO part of it makes almost no difference, because essentially everything is in one object.
 
good luck doing that for OpenGL
@JerryCoffin Really? Because I distinctly recall using several different objects
Device? Context, for DX11? Texture? Vertex buffer? Index buffer? Shader?
that's at least six
 
@DeadMG You don't need it for OpenGL, because they don't force you to use their ugly internals that should never have been exposed in the first place.
 
oh, you're right
OpenGL should magically clean up it's objects for me, when it magically knows I won't use them anymore
don't need RAII for that at all
 
@DeadMG Sure, you use half a dozen poorly thought out messes, but most of them end up just being during initialization. 99% of the real work goes through the "surface" object. In the end, the "object-ness" of them accomplishes nothing useful.
 
well, for example, you can share textures and surfaces between multiple Direct3D devices
how would that be possible if you couldn't have multiple devices, a'la mister "I like invisible variables" OpenGL?
 
11:18 PM
@DeadMG Oh, there's no question there are things that need cleaning up, and yes, RAII works nicely for that. The fact, however, is that the "objects" in DirectX are mostly (among other things) at such large granularity, that doing RAII on the objects themselves accomplishes very little. You end up needing to do just like with OpenGL, and creating lots more (much more granular) objects to make effective use of RAII.
 
and I personally find that the object-ness of things like Textures is very useful
 
@DeadMG Who said anything about not having multiple devices? The problem isn't with having multiple devices, the problem is that MS has done a poor job of that, and COM makes using them excruciatingly clumsy.
 
hey, I will gladly admit that COM is hardly the best thing since sliced bread
but I'd rather reason about exposed internals than internals that aren't exposed but I have to reason about anyway
like matrix stacks
 
OTOH, since you've already started to try to put words in my mouth (I didn't say anything about liking or even approving of hidden variables, for one example) it's clear that you're utterly irrational on this subject, so attempting an intelligent conversation about it is obviously a futile waste of time.
 
personally, I was thinking of trying to write a new rendering system from scratch in AMP anyway
@JerryCoffin I never said that you did. I merely said that I found them to be an awful lot worse than COM.
 
11:23 PM
@JerryCoffin i think taste is very subjective. u guys talking likes and dislikes => taste
?
yes?
btw. the picture was from indiana jones crusade movie, where sean connery downed a german fighter by scaring the birds into the air (flapping his umbrella to scare them) :-)
 
never seen it and have no desire to see it
 
@DeadMG the birdie scene is quite enjoyable
 
no
 
no
 
11:26 PM
well, there is an extreme disconnect between the start of the film, and the rest. that's true.
 
lol
 
@AlfPSteinbach Sort of, but there is factual basis for much of the taste involved -- and in this case, much of what he's said about the factual basis is distorted or outright false.
 
hey
unless you want to argue that OpenGL does not use a ton of invisible magic variables, or incredibly weak types, I fail to see how what I've said (being that I dislike them and find even arduous COM to be superior) can be false
 
in c++/cli, i must always repaet keyword "virtual" in all inherit class methods (in all methods which are virtual in base class) ?
 
@Srle probably not, but it's a microsoft language that is different from c++
 
11:40 PM
it seems probably yes :(
 

« first day (356 days earlier)      last day (4598 days later) »