« first day (1244 days earlier)      last day (3929 days later) » 

00:17
why is flask messing with my front end development?
00:36
1928. Sliced bread.
The greatest forward step in the baking industry since bread was wrapped.
@Rapptz welcome to general availability software from 1999
hey man I never bothered to look it up until today at 19:18:50
if I have a base class with a virtual destructor, do I automatically get one too? Assuming I don't define mine.
01:01
@Rapptz yes...
thanks...
you're welcome....
godliness incoming
> [C++11: 12.4/9]: A destructor can be declared virtual (10.3) or pure virtual (10.4); if any objects of that class or any derived class are created in the program, the destructor shall be defined. If a class has a base class with a virtual destructor, its destructor (whether user- or implicitly-declared) is virtual.
trivial to look up, it turns out...
see how I did it in approx 1min 13sec
including copy/paste time and Adobe loadup etc
formatting for SO chat markdown
slow for me
Secret storage. Lately I find myself wanting to use this.
Oh, that shared_ptr could have been unique_ptr. My bad.
I think...
Not sure if unique_ptr<T> is implicitly convertible to unique_ptr<void>.
Ah well.
@StackedCrooked I dont see why you would need this
01:10
It's secret.
:P
If you don't know the type then you can't get it.
mSecrets should be private btw.
First time I used something like this is when I have a list of image files a lower-layer code and I wanted the higher-layer gui code to store thumbnail objects (Gdiplus::Image or NSImage) inside them.
Back then I used boost::any. But shared_ptr<void> works wonderfully.
@StackedCrooked y u no type_index?
I should use that once we upgrade from GCC 4.5 to GCC 4.7 at work.
oh. :E
01:16
:D
I wish I could use 4.8.
Ahahaha xD
Name lookup should have returned eggs because it was defined later.
Bad programmer.
@Borgleader That joke's actually pretty ancient. I remember hearing it when I was like 8.
No
:v
01:22
@Rapptz: np
oh you wrote more, I alt tabbed. Sorry.
Thanks.
@LightnessRacesinOrbit You're measuring your standard quoting speed?
Isn't that a bit... too much?
Bad question of the day:
-3
Q: C# HOW TO SUBTRACT TWO DATETIMEPICKER THEN GET THE DIFFERENCE BETWEEN MONTHS

John Mark QuizonHI I WOULD LIKE TO SUBTRACT TWO DATETIMEPICKER.DATE AND THEN GET THE DIFFERENCE BETWEEN THOSE MONTHS PLEASE HELP ME WITH THIS, IF THIS IS POSSIBLE , THNX - JOHN

> i like true people.
01:26
@R.MartinhoFernandes welcome to Stack Overflow?
I like Cylons.
Tempted to post:
> This question appears to be off-topic because the OP's caps lock button is broken.
True Cylons?
PLEASE HELP ME WITH NOT HAVING A STROKE WHILST READING YOUR POST PLZKTHX — Lightness Races in Orbit 7 secs ago
01:26
says you
"John Saunders" is doing a very good job removing tags and thanks, leaving all the other shitecopterness intact
I like Cassini.
100th flyby of Titan soon.
-8
Q: HOW TO SUBTRACT TWO DATETIMEPICKER THEN GET THE DIFFERENCE BETWEEN MONTHS

John Mark Quizonwould like to subtract two DATETIMEPICKER.DATE AND THEN GET THE DIFFERENCE BETWEEN THOSE MONTHS

@R.MartinhoFernandes Well you are one so duh
It's getting there....
@LightnessRacesinOrbit facepalm
01:28
lol
Gotta love the name "Lounge<Canadian Politics>"
he's trying.
lol at chat flag
o.o what got flagged
01:31
@Mysticial Hahahaha xD
@EtiennedeMartel Wtf...
01:49
night
night
@John Topley The perverse part of me likes the idea of a Posthumous badge, but I worried about the completionists committing suicide to get it. — Chas. Owens Feb 8 '10 at 21:48
^^ ahahaha
can flask app routes get in the way of static approutes?
02:11
no, room numbers are in base 2.
02:38
0
Q: When does the order of template argument substitution matter?

Filip RoséenC++11 14.8.2 - Template Argument Deduction - [temp.deduct] 7 The substitution occurs in all types and expressions that are used in the function type and in template parameter declarations. The expressions include not only constant expressions such as those that appear in array bound...

what do you guys think of that one?
I think about downvoting.
why
are you grumpy again?
@DeadMG someone already did it seems (unless that was you), why are you thinking about downvoting it?
well it took me a second to see that he wasn't answer trolling because he already answered it
but then I left it in place because he asked three questions instead of one, which is Bad Form™
@DeadMG alright, I'll make it.. one question
02:50
don't
"three questions" are okay
look at a random sample of questions and you'll see a few
many of which I'd probably also downvote for that exact reason if they weren't written by people I normally consider friends
or maybe I'll revert it back then.. I mean, it's one question which implicitly involves all three
also, not to put too fine a point on it, but they're c++-faq questions and this is not.
puppy's just being grumpy I think
he is, but I see his argument and I fold
02:52
I went to brush my teeth and spent half an hour standing in front of the basin waiting for the urge to spit out my teeth plus the contents of my stomach to pass.
anyway now "your question" is just repeating the title
@Rapptz isn't that allowed?
it is
it is.
Than I'll quietly sit here and wait for @DeadMG to remove that downvote of his (not so quietly that I won't write this message though).
02:53
eh
I'll read it later.
I still don't know why you felt the need to dump your question and answer upon us.
@DeadMG because I wanted feedback on it, that's why I felt "the need"
ah!
I thought it was an interesting topic and worthy of a proper discussion
since you posted both the question and the answer, I can downvote you twice instead of once.
see? grumpy
I bet he doesn't even know you visit this place
02:55
I most assuredly do not.
could be a timezone thing though because I've been a bit better over the last few months and haven't generally been around at this time
This is what happens when you change nick and avatar
@DeadMG I'm refp (which I'm not too sure is to my aid in this case)
oic.
I didn't change my avatar though, just the nick
honestly maybe this is just me being short-sighted but it's just kinda a gray blob.
02:56
I'll change my nick back, tired of being treated as the scum of the earth..
I thought that refp had some multicoloured bars thing for an avatar?
Display name may only be changed once every 30 days; you may change again in 3 days
damn it..
@DeadMG that was a long time ago
> I've been a bit better over the last few months and haven't generally been around at this time
anyways I undownvoted you
I mostly save that stuff for people that I don't like.
@DeadMG in three days we will be friends again.
3
A: Simple "nullable" template class. Are there weaknesses in the implementation?

Loki AstariDon't see the point in: using std::swap; It adds a line. It is also longer to type than just prefix each swap with std:: As pointed out by @Matt below. There is a good reason to do this. Read his links below for a more detailed description. No point in doing copy-swap idium for a class that ...

I'm surprised Loki doesn't know about ADL, or well, didn't.
03:05
honestly it feels as if ADL is one of those hidden treasure features that seems to get lost in the dark by so many developers out there
I'm mostly surprised because iirc he has well over 50k rep and frequents
I've only taken C++ in the equivalent of high-school, but I can't remember ADL ever being brought up in class
yeahh... 9k in
ADL is obscure as fuck
@Rapptz looking at where all that rep has come from it's not as surprising
03:11
SO is offline
2 messages moved to bin
instabin indeed
03:40
blechhh
did I tell you I have to wait till May 20th to see the consultant again?
03:51
night lounge
04:35
fuck i so sick
anyone here is a pro server admin?
I finally got my VPN code to work
apparently windows is smart and doesn't actually send messages if you send it to localhost
It takes forever for me to log on to the server (authenticating I think ...) but the site loading is fairly fast
52 mins ago, by nightcracker
night lounge
wtf happened to that :P
I meant it as in "evening lounge"
a greeting
04:44
Oh
:P
so I have to test with external machines for this
There. Retracted. :P
even a VM doesn't work
Anyone else seeing the new Google results style?
saw it yesterday
04:45
saw it yesterday
wow
You two have telekinetic something?
6
Q: Minor bug in Your Community Section

NimeshWhen select any community then click more than one time quickly. The community added multiple times. However, it does not allow me to save this settings. It gives error "something bad happened, Please try again." Following screenshot shows the problem. I have selected Stack Apps and clicked on Ad...

^^ completed and no-repro
Anyway, I saw it like two weeks ago. Similar experiment to that huge ad banner.
lol ... still?
We are glad that you survived last time & you are still alive :p
04:49
why are you selling furniture
1 message moved to bin
I couldn't bin that to the Android room. lol
they should play this: wowimg.zamimg.com/hearthhead/sounds/VO_EX1_382_Play_01.mp3 every time a question gets binned.
Not that they would've wanted it anyway.
05:09
@ScottW that's racist
wat
@ScottW why did i read "racist wanker"
did any of you guys ever code something with ethernet layer 2, in particular a switch?
all you have to do is pass along stuff to the right MAC and the all-ones MAC to everyone, right, or am I missing something?
06:13
@nightcracker I guess that sounds reasonable. What is the problem?
@wilx there seemed to be no problem
however some obscure message getting dropped is hard to detect
if you're not actively looking for it :)
06:30
@CatPlusPlus, @R.MartinhoFernandes: Please add me to the Steam group.
If cat++ & robor are a couple, then who is the wife?
07:02
@sudorm-rfTelkitty I have a feeling that I've seen it before
but I'll star it just in case
@sudorm-rfTelkitty Well Cat++ is a pussy so...
4
starred for completeness ...
morning
08:10
-11
Q: Java vs C++, which language is more speed?

user3371618Very often I can hear: Java is much slower than C++. What is the true? Are we able to reply for this question in unequivocal way? Is exists results that can confirm it? EDIT: OK, I understand that it depends on many factors. Thus, I'm asking you for any article where it is written. Important to ...

lol
lol at the answers too
The OP didn't clarify on the speed of what. Java and C++ are very different in the speed of the fanboism.
08:37
The start of a beautiful day:
Exception in thread "Thread-26295" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-26296" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message can't create byte arrau at ../../../src/share/instrument/JPLISAgent.c line: 793
Exception in thread "Attach Listener" java.lang.OutOfMemoryError: Java heap space
@Jefffrey really? I'm sorry that I apparently insulted your honor. Want to duel to the death over the matter? I assume that is the only way such an important matter can be satisfactorily settled for you. Or, you could, you know, chill out and not make absurd strawmen arguments. rolls eyes
@jalf lol (btw I'm extremely calm :D)
09:09
I like anonymous lambdas as much as anyone, but I you don't see me getting all poetical about it :)
@Mysticial I find that Java GUI apps (Eclipse, IntelliJ, ...) are noticeably "slower" (or sluggish) than most native apps. I don't understand why this is still the case after so many years of JVM progress.
JBL
JBL
Good morning le Lounge.
user1804599
Hello.
09:24
morning
user1804599
@FredOverflow What is the difference between interface and @interface?
oh fuck, I'm so tempted to say "the @"
morning fuckwits
> C++’s sort virtually always embarrasses C’s qsort when it comes to speed. […] At runtime, sort makes inline calls to its comparison function … while qsort calls its comparison function through a pointer. […] In my tests on a vector of a million doubles, [sort] ran up to 670% faster …
Is there no way to get similar speed in C?
hard-coded tuning I guess..
JBL
JBL
09:33
Why did it say "Ask Linus" in my head, god dammit!
the C compiler could inline as well
@StackedCrooked you can use macros as a replacement for templates
user1804599
@StackedCrooked Yes.
user1804599
Macros or duplicate code. I.e. you can pick AIDS or cancer.
@Jefffrey I guess they could use C++ assembly output and decompile it into C :)
user1804599
09:35
If you have a C++ compiler, don't use C.
2
@StackedCrooked well, AFAIK inlining was not invented in C++ and is mostly a compiler feature
@rightfold Don't tell me what to do homo.
2
C++ indeed has the keyword inline, but almost no one (including the compiler) cares about it, apparently
user1804599
@Jefffrey the point is that it is more difficult because of more indirection being involved.
@StackedCrooked homophobes ITT, quick, call @EtiennedeMartel !
user1804599
09:37
So it happens less often.
@Jefffrey not in the sense of inlining at least.. but inline has other uses, great uses, awesome uses, MAGIC!
@FilipRoséen ODR I know
the compiler can make inline code non-inline, but non-inline code usually can't be made inline by the compiler
user1804599
inline is a great feature with a terrible name.
btw, C compiler can't don't devirtualize and inline pointers
user1804599
09:38
lol inlining pointers.
I use inline all the time
inlining can make a huge impact on performance
both negatively and positively
also I doubt that C compiler can generate two versions of same function 'cuz they'd have same name
09:40
@StackedCrooked non-inline code can be made inline by the linker though
@ArneMertz ah, I forgot about lto
user1804599
@Abyx it cannot introduce arbitrary symbols.
user1804599
But it can inline functions and then do optimizations on that.
user1804599
Such as constant folding and removing unnecessary indirection.
@rightfold so it really can't look at void f(void(*p)()) { p(); } ... f(&g); and generate the f_g "specialization"
i.e. it can't inline callbacks
user1804599
09:44
It can in some cases.
user1804599
3 mins ago, by rightfold
But it can inline functions and then do optimizations on that.
user1804599
3 mins ago, by rightfold
Such as constant folding and removing unnecessary indirection.
@Abyx F&&
the best callbacks have type F&&
@StackedCrooked what?
@StackedCrooked we're talking about C, not C++
09:45
:(
user1804599
@Abyx Given void g(void) { print(10); } void f(void(*g)(void)) { g(); g(); }, the compiler can trivially inline f(&g); to g(); g(); and then to print(10); print(10);.
user1804599
It's simple constant propagation (&g is a constant).
@rightfold it can't do it with non-static f
user1804599
@Abyx it can if it has the source.
user1804599
09:50
Also look up link-time optimization.
yeah with LTO it can
user1804599
Previously -O4 in clang generated LLVM bitcode instead of object files which the LLVM linker could merge, optimize and then compile into a single binary.
user1804599
Not sure what the flag currently is.
but I guess it won't do it with qsort
user1804599
I would not be surprised at all if it actually did.
user1804599
09:52
As long as you compile qsort yourself, of course.
user1804599
It cannot change existing libraries.
user1804599
Though it may still do it because it may know about qsort as it's a standard function.
if you have two different arguments for f() inlining doesn't happen
ah lol
user1804599
Ehm.
actually it does optimize all the stuff
user1804599
09:57
:P
but it doesn't drop dead code (unused functions)
user1804599
No, because you may look those up using dlsym.
user1804599
If you make those static it can delete them I guess.
yeah
@Jefffrey I'm sure, but it seemed to be an almost religious issue to you, which is nonsense. And while religious discussions about religion are fun, they're just tedious when the subject is fucking OOP. And you seemed to have only mental capacity for extreme points of view. Either EVERYTHING MUST BE EXPRESSED AS A CLASS, or YOUR ENTIRE PROGRAM MUST BE A SWITCH STATEMENT
user1804599
10:03
OOP is nice.
And given that I couldn't identify with either of those viewpoints, and you insisted on mapping my statement to one of them, I checked out
@jalf It's not. I've only explained to you the 4 main key points of why switch-based polymorphism is dumb compared to "real" polymorphism.
But I'm sure there are some corner cases that I'm probably not considering. I just can't see any.
user1804599
Multimethods solve everything.
Does C have any kind of polymorphism?
oh yeah, void*, lol
@rightfold oops
user1804599
10:06
@Jefffrey Yes.
user1804599
+ is polymorphic in C as it works on various kinds of integers, various kinds of floating-point numbers and on pointers and integers.
4
user1804599
[] is similar.
user1804599
And *.
That's like saying a is polymorphic, because it works differently when part of an identifier or when part of the keyword break
That's hilarious.
10:09
You just said that the core language has features that interpret source code depending on the context
I think he was joking.
user1804599
And functions like read, although that's more of a POSIX thing.
user1804599
Its behavior depends on the target of the file descriptor, which can be a socket or a file or w/e.
user1804599
Also this kind of thing is awesome:
user1804599
10:14
struct A { int x; };
struct B { A; int y; };
void foo(A* a) { printf("%d", a.x); }
B b;
foo((A*)&b);
@RasmiRanjanNayak wat. Just wat. What did you even — sehe 5 secs ago
:)
@rightfold I'm sure it would be if it compiled.
I'd say it does. Perhaps add a (non-polymorphic a)
@rightfold that's not C though, is it? Don't you need either foo(struct A* or typedef struct A {...} B?
user1804599
@Jefffrey Oh, right.
user1804599
10:22
And change . to ->.
user1804599
But you get the point. Consider it pseudocode.
posted on March 13, 2014

What is the ideal default precision for floating-point output?

user1804599
@Feeds No defaults.
@rightfold also A;?
wouldn't you need to named it?
user1804599
10:24
@Jefffrey You don't have to name it.
nice
user1804599
In Go this is cool.
user1804599
type A struct { X int }
type B struct { A; Y int }
b := B{}
print(b.X) // :)
user1804599
10:36
But Go y u no generics. :((
user1804599
It would've been so awesome.
o_0 I just realised how using 'read' as part of statename is a bit silly. Is that 'you just read this thing' or 'you should expect to now read the thing'.
user1804599
"reading"
10:43
"havingRead"
yeah, I think I need to add some sort of clarification :P
@rightfold "readingNow" and "readingDone" :P
read and read have different pronunciations
one is "reed" the other is "red"
@Jefffrey yes...
it is difficult write driver? keyboard fillter?
user1804599
10:45
"being_read"
@Jefffrey what? no. 'I will reed' and 'I have red'
@thecoshman yeah, sorry in italian you would read "rid" as "reed"
I meant "reed"
@Jefffrey oh right :P
@Jefffrey enters the first acoustic programming language :P
@Klasik yes.
@Klasik yes. what?
10:47
@thecoshman you could say "read (riːd)" and "read (red)" :P
well, I think a basic driver is rather simple, but making something decent and dependable and useable is hard.
the 'i' in "driver" especially. you have to use the right hand only for that letter
a "dreever" or "dreaver" would be easier.
guys where I must start? to learn that kind shit? I heard something about ctrl2cap and WDF or DDK
JBL
JBL
> Alright then, i thought so but reported just in case :).
Dat prudence.
10:57
@Klasik probably learning C or C++ would be the best start, then learn about system programming in general, then about what drivers do and how they do it - and then about which tools can be used. I guess until you get to that point the tools/libraries you have heard of will be replaced by something else..
@ArneMertz yes I know I'm new just with driver developing :) c++ and c not a problem
user1804599
@Klasik Clojure.

« first day (1244 days earlier)      last day (3929 days later) »