« first day (771 days earlier)      last day (4175 days later) » 

4:01 AM
@ThePhD 't was nice knowing you.
 
How to attract people to your sc2 stream: Master Terran laddering with my ex girlfriend. She has boobs. (twitch.tv/thekrawfish)
i lol'ed
 
hello, I'm new here. Would someone clarify something for me?
I asked a question earlier, got an answer but I don't understand it.
 
4:17 AM
I'd like to take this time to warn you that because this is a chatroom and not SO we are not obliged to answer. (Also there seem to be only two people not afk atm)
 
i understand, I was just looking for help.
So you wouldn't take a few minutes to share your knowledge with someone asking for help?
 
Like I said, this is a chatroom and not SO proper. If I/we don't feel like answering, we are not obliged to. See the rules: loungecpp.wikidot.com/owners%3Anewbie-hints
 
i read the rules and it said asking questions was permitted
Thanks alot buddy.....
 
Is it common for computer scientists to also enjoy painting? It seems that way to me
 
@Crowz No, they usually hate it and they spit on paintings.
 
4:28 AM
@Aaron I didnt say it wasnt permitted I said were not obliged to answer. Read again.
"You get far less guarantee about your question being answered on the chat than on SO main." loungecpp.wikidot.com/owners:asking-questions
 
And even if we do answer, half the time it's a troll.
4
 
Hahahaha so true... so so true
 
Question: "How do you do X in C++?"
Answer: "Use PHP and jQuery. It'll solve everything."
Although we usually make it more subtle than that.
 
I wish I still had it, on IRC (from a forum I go to) some guy was asking us about what to modify in a 10KLOC code base he'd downloaded from somewhere. And he got trolled into manually adding a pragma directive between every line of code there was (something about disabling CPU caching of instructions or some BS).
I laughed so hard when I read the chat logs
 
I remember trolling someone into the PHP room to ask a C++ question.
I would've felt bad about it except that the guy was annoying as hell.
Laughed so hard after that...
 
4:37 AM
I don't even know why jQuery is so good.
 
I didn't say anything in that room.
I managed to make someone repost their C++ question in the PHP room.
And he totally fell for it... That was hilarious...
 
That's mean!
:P
 
@ThePhD It just is.
 
Like I said, I asked my question in the other place. I figured since this was the
c++ lounge that it wouldn't be much of a stretch that someone in here might
clarify something that was over my head. I was polite, and figured you guys
would mind sharing.
 
4:38 AM
It is mean. I (almost) felt bad for the guy. Except that he was also spamming us.
 
Justified Trolling.
 
@Aaron We're usually polite on the first random question drops.
But when someone repeatedly starts to annoy us, that's when we start counter-trolling.
Usually a first-time question drop that we aren't interested in just gets harmlessly ignored.
I consider myself a "nice" person. So when I start counter-trolling, you know it's serious shit.
3
 
Hm. I was thinking I could cheat and use Variadic Macros to simulate Variadic Templates, but.... no, it's a really bad idea, roflmao.
Guess I'll just type it out like a regular perso.
 
WTF, Windows 8 setup is asking for my email. They even said, "We won't send you spam." Har har har... I'm gonna enter "fuck@you.com".
 
Roflmao.
 
4:44 AM
lollllll
 
Since when does an OS demand an e-mail.
 
This ^ Also, I hope it doesn't bite you in the ass later
 
=l
Really?
Are you that bored?
 
No animated gif in the lounge...
 
1 message moved to bin
 
4:45 AM
inb4 binned
 
:(
 
:)
 
Alternatively,
L:
WOw, that's one straight jerkass smirk face.
 
Huh, that guy left without asking his question.
 
What was his question anyway?
 
4:48 AM
He never asked
 
( ° ͜ʖ ͡°)
 
He asked if he could ask his question. I told him he may not get an answer. Then hew whined a bit. Then we talked about trolling and then he left.
 
Maybe I came down a little too hard... :(
 
@Mysticial The real problem is installing Windows 8.
 
Is it this question?
1
Q: c++ counting number of lowercase letters in a user inputted line of text

AaronI have only been doing this for 3 months and currently at a stand still. I am not sure what I'm doing wrong. I would appreciate any help pointing me in the right direction. I am not asking for anyone to do my homework for me. I am supposed to write a program to accept from the user one line of in...

 
4:52 AM
I guess, it seems like the guy so his last question would be a likely candidate
Like I said he never asked his question or mentioned what it was about. All he said was that he didn't understand the answer.
 
Doesn't look that hard. Maybe for me since I suck at C++ and I don't know C. But we could ping him back in.
 
The answer is pretty clear though =/
 
@Aaron Is this the question you wanted something clarified about?
 
Oh right you can ping people that way...
I always forget
 
Mods can actually super-ping that I think immediately dropped a red icon on their multicollider. So we'll have to wait for this one to time-out before be comes back.
 
4:57 AM
o.O The more things I learn about this site the more I like it.
 
@CatPlusPlus Win8 is already pissing me off before I'm even done setting up my new laptop... geez
 
@Mysticial Get rid of it :P
Or do you need it for something?
 
Who's idea was it to get rid of the start button? I mean, that's like getting rid of the steering wheel in a car.
@Borgleader Brand new laptop. Eventually I'm gonna have to learn this piece of shit. So I might as well start now...
That laptop itself is nice though. And at a black friday price.
 
Ah cool. Which one did you end up getting?
 
17 in. Dell inspiron, Core i7 3630QM. 8 GB, 1TB, some decent GeForce card. 4 USB3 ports, 2 HD slots.
 
5:03 AM
Nice nice
 
Ram is lacking. I''ll probably upgrade that to 16GB at some point.
And I'll put in an SSD later on as well.
 
Its the easiest bit to upgrade most of the time so if theres something thats a bit on the lowside might as well be that.
 
@Mysticial How much did that monster cost you?
 
$870 before tax.
 
Wat.
 
5:04 AM
Finally a laptop that I can write and test AVX code on.
Has a nice turbo-boost for compiling...
 
AVX?
 
Advanced Vector Extensions
Currently only one of my desktops has it.
 
o_O
Well, okay.
Whatever that means.
 
Now how the fuck do I hibernate this thing? They took out the fucking start button.
 
Quick questions: can you nest Macros inside of Macros?
 
5:06 AM
yes
You can call them. But you can't declare them inside each other.
I have to google how to hibernate/shutdown in Win8... This is sad...
 
lol
 
Logout is the new signoff.
 
It takes an entire article...
 
@Mysticial Or just Win + I
 
5:10 AM
hey guys... I'm new here and not sure if this is appropriate to ask... but I have a SO question that's been open for a while and I'm a bit stumped with it... can anyone suggest a course of action that I could take to try and progress toward an answer?
13
Q: Quantifiable metrics (benchmarks) on the usage of header-only c++ libraries

Homer6I've tried to find an answer to this using SO. There are a number of questions that list the various pros and cons of building a header-only library in c++, but I haven't been able to find one that does so in quantifiable terms. So, in quantifiable terms, what's different between using tradition...

 
@Praetorian That is not obvious...
 
You should google windows 8 keyboard shortcuts and learn a few of the new ones if you're gonna keep using win 8. It's infuriating otherwise
 
Ahahaha "Just hit the pc power button."
 
I never said it was obvious :)
 
People are just amazing.
 
5:12 AM
When you make a product where people need to fucking use Google to figure out how to turn the damn thing off. Then you're definitely doing something wrong...
 
Windows 8 is a travesty.
Windows 9 should be better.
 
user406009
Stupid OSs that try to merge tablet and PC experiences.
 
user406009
Unity and now Windows 8.
 
I mean seriously right? FFS, I build computers... And yet they made it so hard that even I can't figure out how to turn the damn thing off without Google.
*Aside from holding down the power button.
 
maybe it's a feature... "never turn it off again"
 
5:17 AM
What I find amazing is that MS claims they have usage data showing that people weren't using the start button for much
 
user406009
And of course their stupid idea of showing that sidebar when the mouse hovers on the top right corner falls apart on a two-monitor setup.
 
@Homer6 Yeah, that would be a turnoff.
 
I thought the whole ribbons thing in Office was bad enough. Windows 8 just made the office ribbons look tame.
 
@Mysticial Have you opened up a Windows Explorer window yet? :)
 
@Praetorian That sounds like a really bad idea...
 
5:22 AM
@Homer6 Place a bountty on it?
 
@R.MartinhoFernandes I have an open bounty of 400 on it.
 
I'll gladly provide more if someone can point me in the right direction. Maybe I'm just not looking in the right places for the solution. I've searched for a long time. Maybe I'll just need to run my own tests and post. Thought there might be a more substantive study already done (even dated ones).
 
That's a pretty awesome question. Unfortunately, I don't know enough to provide any additional insight.
 
@Mysticial Thanks. That means a lot coming from you. BTW, loved your branch prediction post.
 
5:32 AM
Damnit why are there customs fees T_T jinx.com/faqs_home.aspx?fid=60#83 Why....
 
@Homer6 Mystical's like a celebrity. @_@
It constantly reblows my mind.
 
@Homer6 thx :)
@ThePhD No, I'm not a celebrity. I'm just another stranger who wastes too much time on the internet.
I don't even have that much rep compared to the big guys.
 
@Borgleader what country are you in? I'm in Canada and brokerage fees are almost applied to shipments with UPS, but never to Fedex.
 
@Homer6 I'm in Canada.
 
UPS fails almost everytime... I'm convinced it's the shipping company
 
5:37 AM
And I've been burned in the past where I got something shipped and they showed up and were like "Yeah give me another 25$"
 
my friend was charged $150 on a $40 order size... he's like... NOPE... send it back
 
thats outright stupid
 
UPS, of course...
 
He says, the 71.5K counter next to his name sitting there in bold defiance of his statements....
 
Well, modesty disarms. So, maybe that's why he's mystical. :-)
 
5:44 AM
Its Mysticial with an extra i.
 
I was using mystical, the word. :-)
 
Mystical Mysticial
is a Mystery.
 
...
 
wastes too much time on the internet? like this? xkcd.com/386
 
lol... except that I usually don't care if somebody is wrong.
 
5:53 AM
@Homer6 Truth, this is.
 
template<typename T>
void foo(T t);
bar& b = ...;
foo(b);
Is that calling foo<bar> or foo<bar&>?
foo<bar>, right?
 
user406009
 
user406009
Seems to be by value.
 
Hm, ok. Thanks for testing.
 
Wth Windows 7 just reverted from Aero theme to Basic theme
 
6:01 AM
means your graphic card is turning to shit
 
Its brand new
Oh its back
 
it's telling you to pay M$ more money and move to Win8
 
Oh I think I know why then.
Windows 7 has this scheduled event thing at 1 AM.
It really fucks up with my CPU and graphics until I disable it
 
Ohhh
 
It's when it recalculates your fucking score or whatever
 
6:04 AM
that makes sense
 
Yeah I remember when I had it, confused the fuck out of me until I googled it.
It happened every week at 1 AM sunday
Coincidentally, that's when it happened for you
@Borgleader Do you want to know how to disable it, or you don't care?
 
Nah I dont really care it lasted like 2 min
 
Annoying as fuck two minutes, tyvm.
 
Why is it that wireless mice can't work like a PS3 controller and recharge when plugged in :/
 
6:19 AM
@chris Rechargable mice exist. They just cost a shit-ton.
And they're really big. I can't use them.
 
Exactly, although I guess the PS3 controllers are expensive as well.
But it's literally the perfect solution, putting wireless power aside.
I hate scavenging the house for batteries when I'm in the middle of something intensive and the mouse dies.
 
How did Xeo fix that youtube freezing mid-video until you press pause and play again?
Because I'm getting it now :|
 
6:35 AM
I just scroll it a few frames forward
to force it to rebuffer
 
Time to head to the airport. Finally time to catch my 4-time delayed red-eye flight...
 
Omg... the chat search function sucks...
And... no HxH this week T_T
@Mysticial going back to school?
 
@Borgleader Yeah... lol just got delayed by another 20 min...
meh... I should be heading to the airport anyways.
 
2 days ago, by Mysticial
@Insilico Are wa C++ ja nai!
@Rapptz: Mind proof-translating this? ;)
 
Eh I know what he's trying to say
 
6:47 AM
Me too, was just wondering if the sentence was correct or not.
 
it isn't
ja nai isn't proper japanese anyway
 
Really?
o.O Learn something new everyday I guess
 
Can anybody help me with this question:

http://stackoverflow.com/questions/13548290/why-does-cin-getline-assign-to-character-array-but-using-will-not/13548322

The guy answering is telling me one thing, while the guy commenting seems to better understand my question and also answers it - but I'm not sure which one is actually right.
 
Well wtf... currently playing on DI.FM - Electro House: Robots like to have sex. I wonder if it's a special request from our resident @R.MartinhoFernandes.
 
@Borgleader I think I probably would have gone with C++ できません for simplicity
 
6:51 AM
What about " ja ne yo"? :p
 
hm you mean "nai" right?
nah wait, ja ne yo makes sense I guess too
 
"ne" intentionally. The more slanglish version of "nai".
 
I usually always try to avoid colloquialism. :|
 
@Howdy_McGee Most likely what cin.getline does (I think) is doing a character by character copy of the stream input. So it starts at the beginning of the array, and copies the first character and then moves up one "spot" and repeats the process until the input either end or the max is reached (in this case 50).
It is true you cannot assign char arrays. But you can assign to the individual characters within the array
But don't quote me on that.
 
@Borgleader hahahah if I can't quote you on that then i'm still back at square 1
@Borgleader so should I mark the guys answer as correct since it technically is correct or not since it doesn't hard answer my question?
 
6:58 AM
Praetorian's comment is the more accurate answer.
imho
 
That's what I was thinking, thanks for your input :3 !
 
The advice to use strings is a good one
but Praetorian's comment answers your question directly.
 
Ok, I will leave it alone for now.
 
In fact, @Praetorian 's comment should have been an answer, and the answer should have been a comment.
again imho
@Rapptz Will bust out the Japanese book, I'm getting rusty.
 
dekimasen
C++ dekimasen, "Can't C++"
 
7:01 AM
I remembered "de" and "n"
=.=;
 
@Borgleader Yeah I was really hoping he would convert it into an answer so I could just end the question entirely, but since I don't really like the answer presented it just kind of has to sit in 'unchecked hell' sorta speak. :/
 
@Borgleader Listen to japanese music.
good practice and anime usually have furigana.
then you can be like
shit son, I know the lyrics to this song
and confuse your friends
 
7:27 AM
@Rapptz I watch 2 anime series a week. And I usually recognize a few words here and there. I should really practice more though.
(Naruto Shippuuden & HunterXHunter)
I used to watch Bleach but it stopped airing :(
welp g2g
 
Have fun.
 
7:45 AM
Shit that took me forever to get through security...
 
Welcome to America.
 
3 laptops + a double HD ext that need to be taken out.
At least it wasn't as bad as when I tried to get through with a USB watch or when I had 70 pounds of textbooks.
 
 
3 hours later…
10:47 AM
lol
 
11:22 AM
@Xeo It's not possible to unwrap, or really 'adapt', as that's an operation that depends on two types only one of which is erased. What this buys however is that if(foo) foo(); will only ever throw std::bad_function_call if the underlying functor does. (E.g. something as daft as [] { std::function<void()> f; f(); }.)
 
Ell
11:33 AM
morning all
nvidia drivers installed, w00p
 
I keep getting tripped up by my unique_function not being default constructible, heh. Supposedly that's a good thing.
I guess the real dumb thing is why I bothered making them contextually convertible to bool in the first place. I mimic std::function's interface, but not too much.
Yeah, screw that part of the interface, it sucks.
 
is there any function is boost that breaks seconds to hours, minutes, seconds ?
 
I remember reading about how terrible capacity() and reserve() are for std::vector
but I don't quite recall why
anyone got a piece about this to hand?
 
reserve is important to have I think.
 
from http://cpp-next.com/files/2012/09/N3418.pdf :

> Generic lambdas have precedent in other useful statically-typed languages:
> C# 3.0 (2007) : x => x * x;
> Java 1.8 (~2013) : x -> x * x;
> D 2.0 (~2009) : (x) { return x * x; };

^ see? Haskell and other FP aren't useful!
 
11:48 AM
template<typename _Functor,
	       typename = _Requires<_Callable<_Functor>, void>>
	function(_Functor);
Quite the modern style in my Standard library!
 
@DeadMG on the contrary, they're necessary for practical use
 
Ell
has anyone had experience setting up multi monitor on linux across gpus? e.g. 2 connected to graphics card, another connected to integrated graphics?
 
Is std::function<void(std::unique_ptr<foo>)> f = &foo::bar; supposed to work? It doesn't with libstdc++ and I'm still prodding around trying to figure out why. Anyone with libc++?
Neither GCC nor Clang gives me a reason why the appropriate constructor candidate is SFINAE'd out, although they do in fact mention the candidate. Convenient.
 
Xeo
@LucDanton Do you use libc++ with Clang? This might be relevant.
 
No, it's all libstdc++.
 
Xeo
12:02 PM
Hm.
 
Also I tested with std::shared_ptr as well.
 
Xeo
Oh, wait, you're thinking std::function<void(foo*)> vs std::function<void(std::unique_ptr<foo>)>
 
Ya.
 
Xeo
Hm.
 
Okay got it, it's a flaw with libstdc++'s std::mem_fn implementation.
 
Xeo
12:05 PM
It should theoretically, since INVOKE is defined to call ((*a1).*f)(a2...) if a1 isn't a ref to class-type of f
 
std::function<void(Ptr<foo>&)> f = &foo::bar; f(p); is accepted fine.
 
Xeo
And shared_ptr isn't?
 
Namely the fallback operator() of the std::mem_fn wrapper takes T&, not T&& or T& and T const&. So when std::function<void(Ptr<foo>)>::operator() perfectly forwards its parameter it doesn't bind.
 
Xeo
ew
 
To be fair that bit of code was written pre-rvalue refs, so should have worked fine with an older std::function that forwarded everything as an lvalue.
Moar bug reports.
 
12:29 PM
How much of this c++11 stuff this is header only and how much is implemented in libstdc++?
Or is it just new language features that are in libstdc++?
 
Language features are in the compiler. libstdc++ is the Standard library implementation (roughly) that ships with GCC, and it is not header-only.
 
So if I build my code using std::shared_ptr on a c++11 compiler with dynamic runtime and then try to run that code on a "pre-c++11 libstdc++ system" will it fail to start/crash?
 
I would expect that a sensible system will notice that e.g. the installed libstdc++ isn't recent enough, and so it won't start. A not so sensible system might try to start anyway.
 
Ok. So, perhaps, it will check the version of the libstdc++ that is linked during "loading" of the executable.
Is there a way to check if e.g shared_ptr is actually in the libstdc++ or if it is header only, like in boost?
 
You can review the code.
Ah, I can compile a program with gcc-snapshot -std=c++11 main.cpp which uses an std::shared_ptr and the resulting executable doesn't contain a reference to libstdc++, so that might be an answer.
 
12:40 PM
@LucDanton You mean review the <memory> include or the libstdc++ source?
Ok!
 
@mantler Well, I was dodging the issue of a header being present or not. Practically speaking, yes, the header.
But it's not practical at all! So practically, but not pragmatically speaking!
 
@LucDanton ok :)
This is an interesting topic!
I think.
Going afk.
 
Well, the usual practice if you don't know if it's reasonable to expect the appropriate runtime binaries to be present on the target system is to statically link.
 
1:23 PM
@Xeo Yay, unique_function<R(C, A...)> f = &foo::overloaded_name; compiles in a lot of situations now!
Not sure why I'm telling you that, but it was fun implementing :p
Oh man, some day I'm going to have to support ref-qualifiers for that as well.
 
Xeo
lol
 
Btw aforementioned 'lot of situations' includes unique_function<R(std::unique_ptr<foo>)> = &foo::bar;. Or you can pass in a member of the smart pointer (although those are not usually overloaded), still works.
 
Xeo
1:40 PM
Why unique_function anyways?
 
Isn't a functor like std::bind(&foo::bar, std::move(unique_p)) useful? Why not store it in a container?
 
Xeo
Ah, I see.
ALthough it seems strange to have an extra container for that special bind case.
 
Extra to what?
 
Xeo
In what way doesn't std::function suffice? Or is it a QoI issue when storing a bound unique_ptr?
 
It doesn't suffice because it doesn't work.
 
Xeo
1:49 PM
What exactly doesn't? I don't have a compiler handy to play around with. :s
 
What happens when I copy?
 
Xeo
Error?
 
And when does that error happen?
 
Xeo
Okay, I can see type-erasure being a firewall for inspecting copyability of the stored functor..
Yeah, nvm my argumentation
 
Ell
2:21 PM
is google sown?
Nvm
I need to learn network programming
is openssl to do with http? or is it TCP level?
 
ho boy
a function with eight template parameters
how do you actually get the global locale?
 
2:41 PM
std::locale::global() I think?
 
apparently, default constructor
 
That works also.
 
then I don't have to write another eight-template-parameter function just so I can add a locale argument
damn, need char8_t fix badly
 
sbi
Going with my idea of posting messages from the room's prehistory, here's a prophetic one from Roger:
Oct 27 '10 at 22:25, by Roger Pate
maybe each room should have a wiki to clear up basic issues/properties of the room?
 
nah, it's fun to explain rules to noobs
 
Ell
3:00 PM
hmm. hpp vs h++?
 
sbi
hxx
 
Ell
hxx? o.O
 
0
Q: If you are denlan most probably you're an asshole

Bharat ChauhanYou gonna flag this too. But tell me how would it matter to me man? Go boy, wash your face.

lol
flag please
 
@Mysticial i just checked yesterday with an online test, and apparently because i feel surrounded by idiots (50 percent of the world's population has sub-normal IQ, while i think this room is a bit above par) i'm a borderline asshole. i think it's interesting that "nice" today has come to mean much like "fit in". while a famous humanitarian like Fridtjof Nansen was not at all "nice" by today's standards: I think by today's standards he was a full-blown asshole, and should be treated with contempt.
Fridtjof Nansen ( ; 10 October 1861 – 13 May 1930) was a Norwegian explorer, scientist, diplomat, humanitarian and Nobel Peace Prize laureate. In his youth a champion skier and ice skater, he led the team that made the first crossing of the Greenland interior in 1888, and won international fame after reaching a record northern latitude of 86°14′ during his North Pole expedition of 1893–96. Although he retired from exploration after his return to Norway, his techniques of polar travel and his innovations in equipment and clothing influenced a generation of subsequent Arctic and Antarctic...
 
@Ell hpp
 
Ell
3:04 PM
I need to write a lobby server :3
Not sure how users should be updated about new games - should they poll, or should the server inform them?
 
sbi
Ha, if you're >10k, you might enjoy this.
 
@ITNinja nice find :)
 
@Ell inform if there is existing connection
 
@Mysticial ty :)
 
Ell
@Abyx right okay
 
3:07 PM
@Alf which were you responding too? I can't see reply links on my phone.
 
sbi
@Mysticial Didn't you say you have three laptops on you?
10 hours ago, by Mysticial
I consider myself a "nice" person. So when I start counter-trolling, you know it's serious shit.
I think. (I didn't check.)
 
@sbi I'm still at the airport. No wifi, but I have 3G on my phone.
 
sbi
@Mysticial Doesn't your phone do tethering??
 
@sbi I managed to jailbreak it. But I was never able to crack the tether app itself. :(
 
@ThePhD actually you can use variadic macros to do a lot of repetition
 
3:12 PM
I wasn't able to ssh into my phone to overwrite the tether app with a cracked version without the trial time-limit.
 
Maybe not obvious, but this little one-liner:
is the key to variadic macro happiness in Windows (using msvc and g++)
...
because then one can, for example, easily find the number of arguments to a macro:
 
@Cheersandhth.-Alf how do you use it?
 
the #if 0 branch is the original code, the #else works with Visual C++
 
Ell
is enable_shared_from_this in c++11?
 
yes
 
3:15 PM
hello
 
And then one can pretty easily create macros that do things with each argument:
Just with standard variadic macros, no Boost Preprocessor library!
 
i know it's a little bit annoying and the wrong chat room:
but could you please help me cast a vote for reopening my question?
I missed to formulate a real question the first time around...
thx for your time:
http://stackoverflow.com/questions/13514594/i-cant-activate-fancybox2-in-a-infobubble-with-google-maps-v3
 
Ell
@uncleho maybe, just for the awesome name
 
@Ell Thx ;-) I really appreciate your help!
 
Ell
but I know nothing about jquery or html5 and have low rep in the first place so I'm not really much help :L
 
3:21 PM
it would be enough if you could cast a reopen vote...
 
it's already reopened
 
oh i see! thx anyway ;-)
 
sbi
3:42 PM
> In dubio pro fanity. — Tomalak
 
UTF-8 literals are u8, right?
 

« first day (771 days earlier)      last day (4175 days later) »