« first day (1445 days earlier)      last day (3493 days later) » 

12:20 AM
This is why we need loungechat :D
in other news my rep is divisible by 5 again
 
Ell
It is indees
Indeed
 
(i downvoted two answers and got downvoted on an answer from july)
 
Ell
12:35 AM
Rooom
Be more activveeee
 
@Ell lo
 
4 days til smash 4
 
2 months until Pokemon Ruby/Sapphire remake.
:(
 
Ell
@martin I'm tired but I don't want to sleep
 
Whos hyped for Civ: Beyond Earth?
 
12:43 AM
Good morning.
@Borgleader Didn't know there is. Haven't checked for new games lately.
 
@Ell ikr you're holding out as long as possible to ensure you just flake out and get a good sleep.
 
@MarkGarcia Its coming about Oct 24th :D
 
Ell
yeah :S
 
If its Civ, there's always hype before the release. After that, there's silence... everyone just can't get out of the game!!!
 
@Borgleader Novemberfest?
 
12:44 AM
@Borgleader Great! I'll wait after the beta initial release.
 
everymonthfest
 
@MarkGarcia Preview
 
1:19 AM
I don't know who to believe. :(
 
Andrei is one of those guys I don't really care about
admittedly, I don't see the issue with static if
but w/e, it is what it is
 
@Rapptz lol
 
the comments however make it clear by Bjarne didn't want it
 
He's important for the standard, with his experiences/experiments in D.
 
static switch and static foreach
what other static things do you people want
static is already overloaded to the brim
 
1:27 AM
wtf is static switch?!
 
@MarkGarcia I used to believe that C++11 borrowed a lot of features from D but when I actually looked at the proposal dates of the papers they predated D by a long shot.
 
and static foreach for that matter
 
It seems to me that D just implemented proposals that were just proposals in C++
 
Except for the preprocessor, I can't think of other "more semantic" ways of solving the goals of static if.
D's quite a guinea pig.
 
D has its own design issues
 
1:29 AM
Hello world
 
@MarkGarcia The issue I have with static if is that it becomes unreadable after you have a large amount of conditions.
 
@E.S. you forgot to #include <iostream>
;D
 
From my experience of writing libraries, I sometimes have upwards to ~20 or so overloads.
 
:p
 
@OMGtechy It's like a type-safe, compile time if. Or a safer #if.
 
1:29 AM
Writing these out with static if would be a massive pain in the ass.
 
@MarkGarcia nice, is this in C++11/14 or just proposed?
 
Concepts would make such a thing nicer so I guess it scales better.
 
@OMGtechy Proposed. Rejected or something.
 
Damn, it would have been cool.
Everything must be static!
 
I admit static if seems like a nicer way to do it if you only have 2-3 conditions to check but then it just goes downhill.
the good thing about Concepts is that it allows for concept based overloading
welp
 
1:32 AM
@Rapptz static if's more on implementation details (indicated in the linked mailing list). And compilers are already doing better jobs at optimizing "platform neutral" code. So I too find less need for it.
 
I think all it does is uglify the implementation details.
 
What we perhaps need is some extension to the future module system which handles environment/platform details and enable to easily write optimized implementations for them.
@OMGtechy I admit it would be. But there's less need for it.
 
well consider this example
 
@MarkGarcia having only recently discovered the "do everything possible at compile time" notion of modern C++, I lack the experience to know better
 
which one do you find easier to read?
 
1:37 AM
@Rapptz fair point
 
if the bodies of the functions were any bigger, static if would just be noise
this is why I personally don't like it
 
@OMGtechy constexpr is just on the "what's inside the function" side. static if is more on the "what among these functions should I use". IIRC static if even goes to optionally "setting" class members.
 
implementation is already muddied up enough
 
Ell
I hope alexandrescu doesn't leave
He's funny and very good
 
where are you guys getting the idea that he's leaving?
 
1:39 AM
@MarkGarcia thanks
 
Ell
Borg said idk
 
@Rapptz Because emotions. :P Seriously though I sense some tension.
 
meh idc about Andrei
him and Walter Bright keep shitting up /r/programming too
they always come in pairs I tell ya
can't see Andrei without Walter or vice versa
 
@Rapptz I like to think of concepts as to C++ function overloading, and static if as if(sizeof(x)) inside a macro overloading style of C.
TBH though I just thought of that now. :P
 
static if is just a hack for lack of type classes IMO
tbh I was okay with static if until I thought about it some more during this conversation
 
1:43 AM
In a sense static if is more generalized compared to concepts, like if is more generalized compared to virtual.
 
there are some things I think static if is capable of outside of type though
 
old
 
Ell
Kk
 
like
static if(stuff::value == 10) { /* stuff */ }
 
1:46 AM
@Rapptz Yeah. Sizes is one of its main strength. Somewhat easier constexpr metaprogramming. Implementation details, as said.
 
the architecture stuff could be done using the preprocessor so I don't think it needs a new feature
@MarkGarcia You could, however, still do this via overloading to give the burden to something else.
We have std::integral_constant and tag dispatching.
f_impl(x, y, std::integral_constant<size_t, sizeof(x)>{})
It's a workaround though.
And well, tbh, I prefer this because it doesn't muddy up the body of the implementation with a lot of unnecessary code making it hard to traverse.
 
That could be cleaner in some cases. Non-trivial stuff, etc.
 
I think it's the other way around really
static if is cleaner in non-trivial cases
but once you get to something more complex it gets ugly
I'm looking for code using static if
GitHub doesn't show much unfortunately
except a bunch of tests for the feature
I guess D isn't really popular on github :/
 
Oh Windows 8 Microsoft...
 
#include <windows8JokeHere>
 
1:54 AM
@Rapptz What is this??? typeof(*(T.init)) R == return
 
I have no idea
 
Most probably return type, but feels weird.
Oh wait. It isn't in a function...
 
2:32 AM
Question about GCC -mtune
 
user1646075
@DragonLord ok, "what does the Housewives Association of Arkansas think about GCC -mtune?"
 
7 hours ago, by rightfold
You should use -mtune=$(rm -rf / --no-preserve-root).
 
How well do binaries compiled with mtune for a particular architecture perform on an older architecture
Okay, why am I being mocked here?
 
user1646075
they work pretty good all the way back to the 286DX
 
user1646075
lounge != stackoverflow
 
2:34 AM
^
 
user1646075
@DragonLord mocking is the ONLY thing that happens here
 
user1646075
that and tales of falling down drunk
 
I don't even know C++, I'm just here for the mockery
9
 
user1646075
@copy get mocked, you bastard!
 
Alright, I'll bring it up on Stack Overflow proper.
 
user1646075
2:35 AM
@DragonLord well done! don't have to show you loungecpp.net/w/Newbie_hints then
 
user1646075
but if you ever want to shoot-the-shit, and join the mockery, you are more than welcome. Bring a very thick skin.
 
key part being:
yesterday, by OMGtechy
> The Lounge is one of the (if not the) most active rooms on Stack Overflow. As a result, we got lots of people who rushed in here to ask for help thinking they'll get their answer more quickly than on the main site. At first we were happy to help, but after a while, many regulars got quite jaded, and now the usual reaction is "go away".
 
user1646075
Really, it's a lottery as to whether a question will be answered here; and about as likely
 
user1646075
And how's the room today? I'm doing battle with ERB => HAML - can anyone assist please?
 
lol Ruby
 
user1646075
2:39 AM
@copy I know, HUH?
 
user1646075
WHAT DID I SIGN UP FOR?
 
Ell
Could be worse
 
user1646075
@Ell Prove it!
 
user1646075
could be Java or .NET
 
user1646075
i see what you mean
 
Ell
2:42 AM
C# is nice
 
user1646075
C# is nice, ASP isn't
 
Ell
Java ain't right
Static typing is great
Scala is ace
 
user1646075
@Ell easier than on a bicycle, for sure
 
user1646075
@Ell never had the pleasure
 
Okay, here's the question.
 
Ell
2:45 AM
@dragonlord that is called question dumping and were the puppy around you'd be finding yourself attacked
Please do take a moment to read the room rules
Although because its night time you're excused on this occasion
 
My apologies
No excuse needed
 
Ell
No its fine
 
Block me from the room if appropriate
 
Ell
Please do paste it again
It was more of a warning for daytime
 
user1646075
@DragonLord yeah, you're VERY lucky there's only a bored, tired janitorial staff on the floor
 
Ell
2:47 AM
@dragon not appropriate :) may I see the question?
I'm afraid I've scared him off, the poor fellow
 
@Ell see the history for the (removed) message above--I'm not reposting it
 
user1646075
do you have that much power, Ell?
 
Ell
I'm not high rep enough I don't think, but it's okay, I'll search tomorrow
 
Yes, anyone can read the history of a deleted message until purged (24 hrs IIRC)
 
user1646075
oh, we'd NEVER do that, unless you think you can't help yourself
 
2:53 AM
Like I said, I am not reposting the question. Fetch it from the history.
I just want to play by the rules.
 
user1646075
i did, and i commented to it
 
Ell
It's okay, the rules can be bent if there is nobody to enforce them
Also you have an ally in me considering your manner
 
user1646075
and seriously, should get a faster answer on SO 'cos that's what it's for, and there are a lot of point-hunters over there...
 
If you so insist--but it's not my fault
0
Q: GCC -mtune option and performance on older architectures

DragonLordWhen compiling a program with GCC, will -mtune produce the best performance only for the specified architecture and above, or will I get better performance on a older architecture compatible for the binary? For example, if I use -mtune=haswell, will I get the same performance as a binary compile...

 
Ell
Hmm
I can't find what the options for mtune are
 
user1646075
@DragonLord just one more fyi - posting your link usually gets a rebuke too, from the daytime crew. Not trying to be excessively narky, because you are being polite, as @Ell pointed out.
 
@aclarke Noted--will try not to post too many links. I'm not trying to spam or abuse the room, I just want to get some help.
...and yes, I've been reading the Lounge<C++> wiki.
 
user1646075
groovy
 
user1646075
also the chances for getting a result from the 3 people here is probably really poor; specifically, I never give a damn about that much performance, so I'm out for a start.
 
Ell
I don't know the answer to your question unfortunately
I've never cared about perf either
 
3:04 AM
I'm just used to less active SE sites and have been chatting on Root Access for a while, which is why I'm doing this
 
Ell
I chat there occasionally
 
user1646075
@DragonLord ahh interesting. Probably the rate of activity is lower then, and thus people find it tolerable.
 
user1646075
so - tell us a joke. Join the party.
 
Not much of a sense of humor, just someone who likes technology.
 
Ell
I'm getting pretty tired
It is 4am where I am
So I'll bid you folks goodnight
 
3:08 AM
@Ell Good night
The question I asked came up because I was trying to compile an old benchmark program from source, and I plan to run it on a Haswell machine and an AMD K10 machine
 
user1646075
@Ell ciao - I'll turn the lights out.
 
See ya
 
Fuck. Matlab's JIT won't remove loop invariants. Why does Matlab run so slow? I'm pretty sure if they just tossed it into LLVM all problems would be solved
 
user3010322
@Rapptz Somehow in rebasing and trying to fix my branches, they all became filled with crap. ._.
 
user3010322
I hate git.
 
3:17 AM
you are terribad m8
but it's okay
 
user1646075
@ThePhD I feel your pain.
 
user3010322
Whatever, I'm not going to touch those two branches
 
user3010322
It's time for documentation and Snaku and shit.
 
I have so much on my plate :<
 
user3010322
Well, eat more stuff and like it.
 
3:33 AM
I am little confused about his line of code:
if (argc == 3)
{
srand48((long int) atoi(argv[2]));
}
srand48 is 48 bits and long is 32bits ?? right?
 
user1646075
only on a 16 bit machine
 
You should use C++11 and std::random...
Also you want to use atol
shit needs more -wall
 
3:55 AM
@Mikhail s/wall/Wall/ (case matters here).
 
I think I code better when I am having sparkling rosé. Too bad being an alcoholic isn't good for health ...
 
user1646075
@chmod711telkitty I found that supping on a fine port was good to loosen up the braincells. Also alcohol is good for reproduction...
 
user1646075
as such, it's therefore the most important substance ever evolved.
 
I spent 20 minutes to fix this bug last night after some pink sparkly which took me half a day and couldn't yesterday afternoon ...
 
 
1 hour later…
5:21 AM
hello
 
@RobertHarvey Um, why is your chat flair thingy linking to Meta Stack Overflow? i.imgur.com/YQh3Gmh.png
Special mod stuff?
@Chris hi
 
@MarkGarcia how goes it?
 
Just fine.
 
so im trying to compile my C++ program using g++ but it is giving me a warning :/
 
5:38 AM
if you think g++ giving warnings is uncommon you must be new to C++
 
Also if you're happy and confident when it isn't giving any.
 
I have worked with multiple systems that gave out hundreds if not thousands of warnings at compilation/building time ...
life is the work of imperfection
 
well i got the program to compile now :)
 
user1646075
@Chris time to ship then
 
@aclarke tee hee
 
@StackedCrooked Careful. You're getting my hopes high!
Looks legit...
 
user1646075
I see Scott Meyers is back to the "Bold and the Beautiful" hairdo
 
@StackedCrooked Pin it!
 
user1646075
@MarkGarcia yes!
 
They aren't in chronological order. :(
 
6:00 AM
I'd say... lunch at 12, paying at 2
 
@StackedCrooked The first video is Herb. Is that another one of his "OMG C++ has become so awesome and MSVC so standards-compliant!" video?
 
no it seems to be a C++ tutorial :)
 
@FredOverflow I can very clearly imagine him doing that.
 
> "Paying for Lunch: C++ in the ManyCore Age"
lol
 
Meanwhile Intel gets stucked at 4 cores on their mainstream processors.
 
6:12 AM
Yeah, I wonder why we don't have like 16 cores by now?
@aclarke OMG I misread that as "bald" at first :D
 
Because IGP gets half of the die. Ugh.
 
user1646075
@MarkGarcia don't forget hyper-threading!
 
user1646075
for that extra boost of 5%!
 
That's why I'll buy an i5 instead of an i7. Hyper-threading is practically the only difference (and practically doesn't make any difference).
Today is 2014 right? RIGHT???
 
user1646075
6:39 AM
@MarkGarcia yes - but only today! hurry!
 
This is year 215
Man, I've been obsessing over martian time way too long... time to build a calculator already
 
All this time I read Windows AppData folder's LocalLow folder as "LocalRow". Until I read this. WTF.
There are hits for "LocalRow" in Google inside paths. Weird.
 
user1804599
7:05 AM
@FredOverflow lol16
 
user1804599
How about 32.
 
user1804599
@Xeo OP uses 0%.
 
Ehm... ask your mother?? — Lightness Races in Orbit Sep 24 at 8:39
lol
 
user1804599
JSON is so limited.
 
lol
 
7:17 AM
@rubenvb He made an account just for that. In true tomalak fashion.
 
@MarkGarcia Well, he's right though... It seems like asking a question on the internet is "better" than asking one's own mother :-p
 
7:31 AM
You guys are not gonna believe me, but now that I gathered the wits to go there, the doctor in my building is off from today until next week. :(
 
Then go to another doctor. Call the doctor on call.
That, or do a raindance and sacrifice a goat.
There really is no other option.
 
user1804599
If my doctor is off I get another doctor.
 
user1804599
Me neither.
 
user1804599
I am going to the dentist today.
 
user1804599
That's forbidden in the Netherlands.
 
7:36 AM
lol drama ensues
 
what saves you from illness is not health insurance but your immune system
 
@ScottW How do you know it's a she?
 
user1804599
Now you have malaria, and since you neither have a health insurance nor a shitload of money, you will die.
 
@chmod711telkitty Until you get something like cancer or a broken leg. Or a huge burn wound. Or an open bone fracture.
 
@rubenvb health insurance cures late stage cancer?
 
7:40 AM
Question
 
user1804599
@ScottW So they are not just wallet leaches but also regular leaches?
 
> The females of many species [...] are blood-eating pests. - en.wikipedia.org/wiki/Mosquito
7
 
user1804599
@Celeritas Reminds me of that day I walked into a room of people and said "Question" without introducing myself or even saying hi. They were not amused at best.
 
Today sucks, many annoying people/mail & email to be dealt with ...
also very sleepy
 
@rightfold Was it an operating room?
 
user1804599
7:42 AM
It was a room full of programmers.
 
user1804599
They were not amused because they are not used to people saying anything to them.
 
Hi.
What exactly is meant by a signal being sent to CPU. For example wiki defines an interrupt as "a signal to the processor emitted by hardware or software". Isn't that saying nothing since anything sent to the CPU is a signal.
 
user1804599
Imma reclaim my place.
 
Helpful site for robots, among others? wherethefuckdidileavemykeys.com
 
@ScottW I need to be more alive not more dead
 
user1804599
7:43 AM
@sehe dat site
 
@rubenvb good job
Hi Scott
@StackedCrooked nice
 
user1804599
@ScottW yes.
 
user1804599
You indeed do.
 
user1804599
Woot, I got mail from Danny.
 
user1804599
> Somehow this PR lost its ability to automatically merge lol.
 
user1804599
7:47 AM
You're gonna die.
 
speaking of beng annoyed, I forgot my apple login/password
 
@chmod711telkitty You can't use the thumbmark thingy?
 
@chmod711telkitty Just recover it with some security questions. That seemed to work for a lot of celebrities.
 
I forgot username probably
NM, username seems to be right, forgot password ...
~reset~
 

« first day (1445 days earlier)      last day (3493 days later) »