« first day (1560 days earlier)      last day (3374 days later) » 

12:08 AM
@CatPlusPlus But were they inexpensive disks?
 
Probably
 
@JerryCoffin Some people say independent.
 
Fev
ha..there's another luffy here..yohooho
hi
 
Hey.
I am the supreme koala.
But everyone here knows that.
Regardless of whether or not they chose to believe it.
@CatPlusPlus That would hurt your dignity wouldn't it?
 
Exploding kittens.
 
Fev
12:27 AM
Nooble do you like koala?
 
I mean, if exploding koalas were a thing.
@Fev I rule koalas.
 
Fev
I live around zoo , i can steal one if you want
 
@Fev Conspiracy to kidnap a fellow member of the kingdom, eh? Treason.
 
Fev
hehe..
 
I've finally gotten around to installing Ubuntu on this VM
 
12:35 AM
@Nooble Well, we know you claim things like that, anyway.
 
What an elegant OS.
@JerryCoffin My claims are truth.
Unless anyone can prove otherwise, I am a koala.
And the ruler of koalas.
 
@Nooble How old are your parents?
 
12:51 AM
"Zero-cost abstractions", huh? https://gist.github.com/rygorous/c6831e60f5366569d2e9 Yeah well.
I'm getting similar results.
Reading the comments, it seems clang its a VC++ problem, since clang optimizes it a lot better.
 
@Borgleader Try moving the struct inside the nonius block.
Not sure if it will help though.
 
@StackedCrooked Its the complex that's slower
> // Average std::complex<float> : 3.73823E-08
// Average struct { float, float } : 9.32318E-09
 
Hm, ..maybe try changing the order of benchmarks?
Or compile as two separate programs.
But, yeah, it's a really big difference...
Maybe std::complex calls into library code somehow (instead of inlining).
 
@Nooble How often do liars openly admit their claims are lies?
 
@Borgleader How'd you run this anyway?
main.exe gives me a boost::math error lol
 
1:00 AM
@Nooble lol
 
PANIC: clock is on fire
  Error in function boost::math::erfc_inv<double>(double, double): Overflow Error
 
@Rapptz I tried compiling with llvm in vs and i got a compile error in boost
 
RIP clock.
 
@JerryCoffin always.
 
but with VS compiler it works fine
 
1:01 AM
I don't care enough to fix this.
 
@CatPlusPlus It looks beautiful anyways.
I don't know about functionality wise.
 
@Nooble Even if they did, we wouldn't have way of knowing that their supposed admission wasn't actually itself a lie.
 
Unity is so slow.
 
@Rapptz Which unity?
 
@Rapptz Now that i think about it, my choice of range might have been dumb. I went it [-1, 1]. I guess its possible those operations aren't safe near 0.
 
1:02 AM
The only nice thing about Unity is Unity HUD.
 
@JerryCoffin The Liar paradox.
Oh okay, that Unity.
It's not a tech demo.
 
@JerryCoffin >.< Internal parser error.
 
@Borgleader If a liar told you that he always tells a lie, is he telling the truth, or a lie?
 
ah yes
 
Good morning.
GTX 960 looks interesting.
 
1:09 AM
@MarkGarcia Morning.
And really? I mean, it looks like it's either equivalent or less than a 760.
It's got less cores and can only offer power efficiency.
 
It's most likely more efficient though.
 
They even downgraded it from an X04 to an X06
 
@MarkGarcia Whats the ratio compared to a 980? is it more power for the price? or about equal?
 
Of course it's more bang for the buck.
 
@Nooble IIRC the 970/80 has less cores but has higher perf compared to previous generations.
 
1:11 AM
You might be right, I'm not sure. But it's no longer X04.
A great GPU for $200. but not much improvement over the 760.
 
Nvidia number scheme atm is XY0 [Ti]
 
Unless it's mobile.
 
@Borgleader A more suitable comparison would be with the 970 (IMHO the 980's price is too much). It probably is more suitable for cheap SLI. Alone it's more or less equal to the 970's ratio, so it's good if you can't afford the 970.
 
Mobile follows same scheme
Just M appended.
960 is comparable to 760.
970 is comparable to 770.
 
There are also XY5 mobile cards
 
1:14 AM
etc.
 
GTX 765m
But anyway, the 960 really isn't that big of a deal for me.
 
Me too.
 
M is like equal to previous generation X(Y+1|2)0.
 
I'm interested in 8 GB VRAM shit tbh.
Because game developers sure love wasting VRAM.
 
@MarkGarcia Well, this is where it gets a little bit weird, since NVIDIA had 800m's but no 800's.
@Rapptz Sounds expensive.
What I would love is VRAM that increases with SLI.
 
1:16 AM
@Nooble They skipped. It got murky with Titan and others.
 
@Nooble Impossible.
SLI is a waste of money tbh
 
I know :C
The impossible part.
Waste of money? It depends.
Two 970's only cost 20% more than 1 980, but with almost double the performance.
3x and 4x SLI is a waste of money.
Scaling is horrible then.
 
@Rapptz Depends, if you get a second one later on for cheaper it can be worth it
Most of the time though I just end up replacing them
 
Woo server recovered
 
I'm excited on what NVidia/AMD can do with small nodes.
 
1:22 AM
First day on the job :3 (or so claimed OP)
 
Cute :)
 
@Borgleader Which brings up an old riddle: you're supposed to go to the castle and rescue the beautiful princess. On the way to the castle, there's a fork in the road. If you take one road, you get the princess. If you take the other, you die. One each road, there's a guard who will answer exactly one question for you--but one of the two always lies (and the other always tells the truth). What question do you ask to get to the princess?
 
@StackedCrooked ^^
 
@MarkGarcia The guys sitting behind me just (in the last two days) setup a 4 x 4K monitor setup with a 980 in it.
 
1:27 AM
@sehe Confirmed, VS only problem. Thanks :)
 
I have no idea wtf they're doing.
 
@sehe Awesome.
 
And there's a naked 760 sitting on the desk next to the keyboard.
 
@Mysticial 8k x 8k ? On one card? lol.... they might be able to play Portal 1...
 
1:28 AM
So, one of my university teacher just got charged with possessing child porn.
 
...
 
@Borgleader I guess.
 
@EtiennedeMartel yikes...
 
@EtiennedeMartel aaaaand there's a naked 760 sitting on the desk next to the keyboard where Mysticial works. Seems related
 
@CatPlusPlus Cute.
 
1:30 AM
@Mysticial But those beautiful text... Though I wonder 4k text is better than in half the resolution.
 
@JerryCoffin Dunno. Which is worse, getting the princess or death?
 
@StackedCrooked Notice I carefully phrased it as "to get the princess", not "to win" or anything like that... :-) Either way, we'll assume you want to control your fate, not just go someplace random and see what happens.
 
@πάνταῥεῖ Sometimes I think the C++ community is worse than the CSS community. What do you think? — A.R. 1 min ago
 
@JerryCoffin Ah, you covered your bases.
 
@πάνταῥεῖ lol
 
1:32 AM
@EtiennedeMartel What kind of teacher was he?
 
@StackedCrooked No, he'd prefer to uncover his base.
 
I'm suspecting the answer is a very meta question.
 
@Nooble He gave me a project management course.
 
And how did he get caught?
 
I have no clue about CSS community, but they must be bare badasses :)
 
1:33 AM
@Nooble you don't need to know that :) That's classified
 
Is it really child porn, or just some loli Anime? I hear in England they don't differentiate between the two.
 
@Mysticial The guy is French, and he worked for an university in Quebec.
 
oh
 
@πάνταῥεῖ One thing I know is that they have a template for their answers. "Try this: <insert CSS here>"
 
@EtiennedeMartel It would have been more fun if he taught Ethics.
 
1:35 AM
His area of expertise is formal methods.
 
@EtiennedeMartel Yes, but in England they don ... oh
 
@StackedCrooked Canada has officially been independent since 1931.
 
@EtiennedeMartel Yeah with that he could've asked the parents first.
 
@JerryCoffin Cool. Thanks for letting me know.
 
It's still in Belgium though
 
1:39 AM
Belgium secretly rules the world.
 
@CatPlusPlus Wow, forgot about that.
 
You're unworthy
 
Sim
can i ask question on node.js here?
 
C++ doesn't know anything about networking
 
1:46 AM
No.
 
@Sim hm..
 
@Blob Neither does JavaScript.
 
Sim
No one is there
 
1:48 AM
Incidentally also nobody cares
 
There's a two though.
@Blob I once went to a networking event. And there was not a single C++ developer there.
@FredOverflow Never heard of that award before. But, hey, if Bjarne wins it then it must be good :)
 
Nobody ever heard of that award
 
The award won Bjarne.
 
I only know Dahl from Borderlands.
 
@BartekBanachewicz Yeah, you should talk.
 
1:53 AM
@CatPlusPlus It's an award by French people.
Hence why.
 
French people?
I had heard they died out.
 
@Sim No one is here.
 
Sim
lol
 
@StackedCrooked It's the best award relating to OO, or so I read somewhere. The names are of the people who made Simula, which Bjarne used before making C++.
 
1:55 AM
Dat edit (I rolled back the crap out of it)
 
@Borgleader You did a good job. Keep doing so!
 
lel
 
If I had 9900 more rep, that'd be great.
 
@Nooble I got to 10k, so can you.
 
@Nooble Um, you can still edit now?
 
1:56 AM
@Borgleader Looks like he just wants to delete the thread.
 
@Blob Oh, so his appreciation for Simula was reciprocated. That's kind of nice.
 
@Blob He should flag for deletion, not insert random crap
 
@MarkGarcia I just want to be called modoala.
 
although im pretty sure hes just pissed he got downvoted
 
@Borgleader I don't have nearly as much programming experience as you, therefore I can't really answer a lot of questions. The only thing I can (remotely) try to answer questions in are OpenGL questions, and those are hard to come by.
 
1:59 AM
@Nooble Damn, them solid grooves (Thanks for reminding me of this track :P)
 
@StackedCrooked Unintentionally :P
 
@Nooble In fact there is a lot of OpenGL questions I'm coming along every day. What tag filters do you use?
 
@rygorous Data points: clang -O3 on x86_64 http://downloads.sehe.nl/stackoverflow/bench-complex-vs-struct.html using https://gist.github.com/Borgleader/38e3b17b5489a7b3de08 HT @Borgleader #loungecpp
 
@πάνταῥεῖ C++, OpenGL, GLSL.
And also, I haven't been actively seeking rep anyway.
 
@sehe Neat!
 
2:02 AM
@Nooble May be try just OpenGL
 
Being a bit paternalistic maybe. Though I can't help more than that
 
-O2 probably is good enough
 
@StackedCrooked probably. Haven't tested :)
 
#loungecpp is a thing?
 
@StackedCrooked what does God say?
 
2:04 AM
I would use it if I had twitter.
 
He says you should give all your moneys to StackedCrooked.
 
@sehe Whatever you want him to say.
 
Nice
 
@StackedCrooked All I have are eucalyptus leaves.
 
2:05 AM
@StackedCrooked I tried before. It didn't fit
 
k, better than nothing
 
Looking at #loungecpp, I found this gem
8
im still laughing
 
heh
 
2:22 AM
Is it possible to set a compiler flag (g++ or clang) from inside a .cpp file?
some #defines?
 
Just for diagnostics.
 
That's unfortunate :C
I want to hand in C projects written almost entirely in assembly and -masm=intel would be nice
 
@Borgleader Holy shit.
Robot's a genius.
 
0
Q: How can I avoid parent class destructor to set its private data member

chang jcclass parent { virtual ~parent(); private: int father_private; int common; } ~parent() { common = 1; } class child: public parent { ~child(); private: int common; } ~child() { common = 2; } with the logic above, the following steps are expected: 1. ~child() is cal...

I've tried to answer this, but actually I don't really feel being able to do so.
It comes out completely unclear.
 
@πάνταῥεῖ example?
 
2:35 AM
@Blob For what?
 
your "completely unclear" attempts at explaining
 
@Blob Sorry, the question is actually completely unclear, therefore its not really answerable.
 
ah
 
2
A: How can I avoid parent class destructor to set its private data member

Drew DormannThis code: class child: public parent { ... int common; } Defines a distinct int named common in the class child. Because the base class has any symbol named common, that base symbol is simply hidden. It doesn't matter if the base symbol parent::common is an int or std::string or a f...

It's done correctly now, I just didn't really spot those misconceptions from the OPs prose
Sign for bedtime :P
 
@Mysticial ikr /cc @R.MartinhoFernandes you wondrous fucker
anyway, bed time gonna teleport to friday
 
2:51 AM
@Borgleader no
 
@Borgleader Good night.
 
@Borgleader please don't bite but

Let's say I have the following:
if ((bordercharacter == '\n') || (bordercharacter == '\a')){
cout << "SetBorder() error: Illegal character " << bordercharacter << " detected, resetting to default..." << endl;

If I had `bordercharacter = '\a'` and I wanted to print it, it won't let me, but it will produce a sound. So I tried `to_string(bordercharacter)` and it gives me an int value, i.e. 10....but I want to print `'\a'`. How can I do this? Google returns NULL;.
 
@DonLarynx Do you wish to print the literal \a? as string?
so literally '\' followed by 'a' in the output stream?
 
@Blob I wish to print the string "SetBorder() error: Illegal character \a detected, resetting to default..."
So it has occurred to me I can just get the char array between index 1 and index size - 2...
 
k
 
3:00 AM
Suppose I want to get the size of fillcharacter == '\a'. Is the size 2 or 4? Also, I don't know what command does this (.size()) leads to a "must have class type" error)
@Blob
 
\a is one byte but "\a" is 2 bytes if they're both ascii.
 
@DonLarynx Er... #include <string>?
 
I did.
 
Then that string should have a class type.
Are you doing something like this: coliru.stacked-crooked.com/a/5c073817b4e6e720 ?
 
no, I hesitated entering this but fillcharacter is a char.
 
3:05 AM
Oh.
An array of char?
 
@DonLarynx Character array or character?
 
I'm not sure. fillcharacter = '\a'
 
has to be declared somewhere..
char fillcharacter or char fillcharacter[]
 
the first one
 
Why not just use string? I mean you're already including the header for it.
 
3:06 AM
it holds one byte
 
Use either char[] or a string
 
My professor wants them as chars
 
Why the hell would he want you to test the length of something that is fixed as 1 byte?
 
What exactly is the goal right now? I answered the previous question with the printing \\a or \\n.
 
It's gotta be char[] then. In which case, just use sizeof(array)
 
3:10 AM
Why do all C++ professors seem to only teach C? :|
farthest they go is classes
and avoid the STL from what i've seen
 
Because they need to be hit with a giant clue stick.
 
@Blob but what if fillcharacter = \d, \b, or some other letter of the alphabet? I can make cases for all of them, but is there a shorter way?
 
uh
not aware of any builtin for that
oh wow i just used "builtin"
all these random crappy languages i'm having to learn are getting to me
 
3:30 AM
Thanks @Blob.
 
@Blob Because (in most cases) "C++" is used as an alias for "low level programming", so that's what they teach even though it's a lousy way to use C++.
 
4:06 AM
@JerryCoffin Why don't you just edit the post? (>> instead of <<)
 
4:36 AM
Why do things like HTTP/1.1 and IRC protocol user CRLF instead of LF?
 
pretty sure http/1.0 does too
 
@Rapptz Double assurance that it's supposed to be a line break? :D
 
On a related note
Do you guys know any good socket libraries in C++?
That work in Linux and Windows.
 
ASIO? (I know, I know ;)
 
"good"? Can't tell, don't really use sockets much. I used sfml at some point and it was pretty simple.
not sure if it's considered good, though
 
4:40 AM
SFML's network interface is abysmal.
Also not sockets.
They have an HTTP library which is pretty terrible.
And then they have their good sf::Packet class.
Which is actually pretty good
But I heard it uses so much magic that it's buggy :p
 
@Rapptz google says it can be traced back to tools.ietf.org/html/rfc158
blame telnet
 
Python's import socket is pretty good
As far as sockets go anyway
It's bad if you want a higher level interface obv.
@user30997 Of course ASIO won't work on gamecube, nor would it be plausible to have it try to work on PS2, Xbox, DS or the PSP. Don't be ridiculous. — Qix Nov 27 '12 at 12:34
lol
 
@Rapptz It's not like any of these platforms has a decent standard library implementation, anyway.
 
Yeah I don't get the comment by the guy he's replying to.
 
5:01 AM
omg
Abdullah died??
he was in Voyager once!
no wait
that was the king of jordan. never mind.
 
They should add a [[bitflag]] attribute
So you can stick it in enums and it gives you free operator overloads
[[bitflag]] enum class options : int { one = 1 << 0, two = 1 << 1 };
Idea somewhat stolen from C#.
 
Are you, are you coming to the Tree?
 
?
 
Strange things did happen here, no stranger would it be
If we met at midnight, at the hanging tree
@starmole: Use "@username" notification syntax to create notifications that actually alert users to your replies. Otherwise they can only run into them by chance. Please spend some time reading Stack Overflow's Help Centre and FAQ to learn how it works. Sadly, despite having been a member for almost five years, it seems you have some things to learn still about our model. — Lightness Races in Orbit 50 secs ago
How can people be so ignorant? Madness.
 
5:19 AM
@sehe @Borgleader Have you guys seen this? It seems pretty neato.
 
I would agree except I wasn't invited
:)
nn
 
lol nn
You don't seem like a Boost.Spirit kind of guy.
 
I have no spirit, it's true
(please ignore the ridiculous auto-playing American over-the-top dramatic news anchor)
(she needs a damn hobby)
 
@Blob Simple matter of courtesy. He might prefer to edit it himself. If he has a chance and prefers not to do so, I might decide to edit it directly instead.
 
5:33 AM
@LightnessRacesinOrbit Sorry to upset you so much :/
 
5:47 AM
hi
 
Hi everybody
 
bored. no interesting questions to answer anymore. :/
 
Let me start...I have used Factory patterns so many times. But what is the best Factory pattern that needs to be implemented. I mean one that does not violate SOLID principles
@starmole Simple parametarized factory violates open/close principle
 
Morning, righteousness warriors!
 
I have no idea about that. Ask about graphics :)
 
5:59 AM
@LightnessRacesinOrbit What does Lightness Races in Orbit mean?
 
When I hear Factory it's often people hiding global vars somewhere, so bad taste :)
 
@starmole No its not about that. It is used to hide internal details of implementation and expose interface only
 
Sure, can be used like that. Funny, I think I made a factory yesterday. And now that I think about it it's bad. No good reason for it.
 
@starmole lol
 
A MakeMeOne ( enum kind ). new ThatKind is just as good
 
6:06 AM
@starmole Thats simple parametarized factory. That violates open/close principle of s/w design
 
What's a good factory?
 
how can I see how many LoC my code is in total?
 
"cat [filename] | wc -l"
wc probably takes filename argument too
but who can bother man paging each command
 
wc -l file indeed
Also, redirections.
 
just use bytes/80 :D
 
7:10 AM
@Blob everybody
@corvid sloccount, and others which evade me
@starmole at the bottom of the ocean? (nervous question mark smile)
@RonakPatel uhuh not if you don't use it
@starmole in that vein, why don't you just 3d print it and weigh the result? That way you get a much more realistic metric anyways (since > should weigh more than ., e.g.)
 
@sehe Exactly. It's a useless vanity or managment metric. So why not bytes? :)
 
@Rapptz no I didn't. Thanks for that (why the heck does it not refer to any existing library. I guess that's not required, but the lack is a a real indicator for me. I'd have taken it much more seriously if the library put itself into a context.)
 
One somewhat good metric is executable size increase. Feature adds 10k? Great! 20mb? Why? Also encourages removing dead stuff.
 
> I absolutely agree, and I’m properly chagrined that this happened. I’ve updated the post to reflect this oversight. -- that's some Rule-Of-One crediting apology
@starmole Sadly it's wildly inaccurate in the world of C++ and generic code (that in itself is excellent reason to "profile" executable sizes during development)
> Oh, and the invoice for my absurd fee is in the post. This month I demand armadilos
 
Of course it is. Any rule is. But huge increase points to complexity. Adding new libs. Again just a rule of thumb
Also if your C++ templates bloat the code that much, and you can't shrink that - usually points to a problem.If the big version is faster than the small one, go for it! But it generally encourages keeping things simple.
I can add 10 loc + a 10mb vendor sdk. That does wtf. Just a simple metric and suprisingly accurate
 
7:40 AM
Aaaaand, Friday's compulsory morning video
 
please no
 
@Rerito Excellent! I almost forgot about this!
 
eh, Visual... make an enum in a header file with #pragma once and it will complain that it's defined multiple times :/
errors everywhere
 
@starmole Yeah, I was a bit gloomy talking to myself like "shit, I'm tired" and then it hit me: it's Friday!!! And bam... Rebecca Black
 
@Rerito There are also some great death metal and punk covers of it around!
 
7:44 AM
And goat covers like the ones of Taylor Swift?
 
okay WHAT THE ACTUAL FUCK. Visual C++ was trying to >>>compile<<< a header file
 
@Gizmo that's because you asked it to. Duh. Also, what's so special? People include the headers all the time, in order for the compiler to compile them o.O
@StackedCrooked This might be the weirdest contribution by you in this lounge; and that's even realizing all the weird music you've posted in the past
 
If separately compiling a header causes errors, then you’ll have similar errors when compiling separate TUs that include that header.
 
I've just retagged all (?) SOLR questions tagged over to
 

« first day (1560 days earlier)      last day (3374 days later) »