« first day (1080 days earlier)      last day (3868 days later) » 

1:02 PM
wait, so instead of getting fixed, async is getting deprecated? :/
 
Can't be fixed.
 
:\
 
Will possibly be replaced by something not-broken.
 
user784668
What's wrong with async?
 
like?
 
1:02 PM
@Fanael Almost everything.
 
user1804599
What’s not wrong about async?
 
Apr 19 at 15:54, by R. Martinho Fernandes
std::async(std::launch::async, f);
std::async(std::launch::async, g);
// still runs sequentially
// WELL DONE
 
ah, the async/deferred bullshit?
 
0
Q: Error while running simple CPP program using gcc version 2.95.2

user2787274When I try to compile the below code in RHEL 9 machine, with gcc 2.95.2 version. I am getting following error: #include<iostream> using namespace std; int main() { cout<<"hi"; return 0; } In file included from /usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/iostream.h...

We have a new record ^
 
@ArneMertz No, not that.
The "blocks unless you put the future in a variable" bullshit.
 
1:05 PM
@sehe Well, 'Hello world' is just too much typing.
 
@MartinJames did you miss it? The giant clue?
 
why is this Unicode chessboard ugly in Courier new?
 
Our local Courier New expert is @CatPlusPlus.
 
wait.
#1 unicode chessboard
#2 courier new
Why are you surprised it's not pretty?
 
1:06 PM
@R.MartinhoFernandes yuck. ok...
 
@sehe I didn't even look at the error messages :)
 
@sehe lol, I know, but trying all fonts that support it is tedious
apparently, it's much easier in Python
 
user1804599
Envy Code R ftw.
 
@MartinJames Actually, that is more typing than a C++ Hello world, even if you ignore whitespace.
 
@sehe ADDDD MEEEEE! (And you get to laugh at my profile)
 
1:12 PM
Courier New is fine here
 
What's with the Zodiac signs?
 
@sehe what app is that?
 
That's a weird kind of chess.
 
and it's not fine at all, the square are rectangular, not square!
 
And it has Zodiac signs.
 
1:13 PM
the pieces don't fit inside them
 
Hi, I am not able to understand rvalue reference in c++
I have read few articles and tried to understand, can anyone help
 
That's too vague.
 
@TemplateRex My own. Or, rather a competing engine I once wrote as an april's fool
 
@KonradRudolph how did you find sehe on linkedin, lol?
 
@TemplateRex You're being obtuse
@R.MartinhoFernandes Those are the nonstandard pieces (3d bishop and knight)
@Telkitty猫咪咪 pay attention
 
1:15 PM
@sehe Oh, so it's not chess?
 
user1804599
A dialect of chess! :D
 
@pranitkothari if you have a specific question, maybe anyone can help. If you did not understand anything of any article you've read on the topic, then you have either found very bad articles or are a hopeless case.
 
@R.MartinhoFernandes Not standard. Although it does that too
 
@ArneMertz Or just needs to learn other stuff before.
 
@R.MartinhoFernandes or that. #
 
1:17 PM
@ArneMertz I have understand difference between rvalue and lvalue, but what is need of rvalue reference.. and how it is better than normal c++ reference. these are my questions
 
user1804599
> and how it is better than normal c++ reference.
 
user1804599
lol
 
I'm back from vacation and I'm already stealing electrons.
 
user1804599
That’s like asking why functions are better than incomplete types.
 
@pranitkothari it's not better, it's different. And for itself, it does not that much. But if you have two function overloads, one with a normal reference, and one with an r-ref, it shines :-)
@EtiennedeMartel don't you dare
 
1:20 PM
@ArneMertz So, what purpose it solves in overload?
 
It is used to pick between rvalues and lvalues.
 
“disable mouse zoom in Visual Studio” yes. http://visualstudiogallery.msdn.microsoft.com/d088791c-150a-4834-8f28-462696a82bb8
^ #huh ?? how would that be convenient. Apparently, others are bad with mice (like me), but somehow they still prefer to use it?
 
@pranitkothari distinguishing if the thing passed to the function was an l-value that you have to preserve, or an r-value you can happily steal resources from
 
So many morons. It's deafening
@not-rightfold Well, why are they?
 
user1804599
1:21 PM
Read context.
 
go read that
 
user1804599
sehe you need sleep; you didn’t understand the orange joke either.
 
@TemplateRex Thanks.. reading it
 
@sehe because spoons are better than bicycles
 
@sehe That's the single best VS extension ever
 
1:22 PM
@sehe obtuse?
 
@willj It is?
 
@ArneMertz Trying to get something, maybe when we use rvalue, and try to pass args, it needs to copy to another variable, maybe using r-value ref avoids that
 
I didn't even know there was a "mouse zoom" feature.
 
user1804599
@sehe s/zoom //
 
@pranitkothari please, until you parsed that article
 
1:23 PM
@R.MartinhoFernandes (accidentally) hold ctrl while scrolling with the mousewheel. There is no preference setting for this feature :/
 
@not-rightfold that was yes-turd-ay!
 
@TemplateRex Got it. Reading article
 
@TemplateRex well. it's font rendering, after all
 
@sehe anyway, I'd hate to use Cinder as an alternative ;-)
 
@R.MartinhoFernandes I did. And I use it often. Especially when pairing for a few minutes, when moving my chair back a while to read more relaxedly, when browsing (so I can fit more overview) etc.
@TemplateRex this just in bitbucket.org/brechtkets/graphicscpp
 
1:27 PM
@willj how would such a strange thing happen accidentally?
 
@willj What sort of thing would lead to such an accident?
It requires coordination between two hands, right?
 
@R.MartinhoFernandes miscoordination
for the accident
 
@ArneMertz All the time! When I Ctrl+Tab back and forth between source files while scrolling through them, I'm too lazy to release Ctrl.
 
@ArneMertz Right, when attempting what?
 
@R.MartinhoFernandes if you are familair with ctr+click, how can you not have discovered ctr+scroll?
 
1:29 PM
@TemplateRex Because clicking and scrolling the wheel are completely different?
 
@TemplateRex Anyways here's some visualizations I bolted on top of DreamChess: matrixchess.game-host.org/errata.html
 
@TemplateRex What, Ctrl+Click.. woa, that's handy!
 
@sehe nah, Winboard/Xboard is way more suitable for visualizing chess
 
@TemplateRex what was Ctrl+Click for again? have been away from VS for too long :'(
 
@ArneMertz open link in new window. beats the pants off right-click / select "open in new tab"
 
1:31 PM
@TemplateRex Not gonna work for matrix chess though
 
@sehe Ugh, window class.
 
@sehe I find 2d board games challenging enough
 
@TemplateRex Have you tried middle-click?
 
@willj it does really conjure up images of monkeys randomly plucking at keyboard and mice.
Also, why not rezoom to the time of day? Am I the only one that needs to recalibrate to my eyes every 2 hours?
@TemplateRex Yeah. That's not a reason to claim that Xboard is a better match :/
 
@sehe I think I got an intro to Chrome keyboard/mouse accelarators when I installed them. at some point they got into my muscle memory, so I use it in VS or everywhere. most apps support it
 
1:33 PM
@willj Guess I'm too used to R# and its "Jump to File" feature.
 
@TemplateRex hm. looks like I never have links in source code. Or I misunderstood something there..
 
@ArneMertz documentation links?
 
@TemplateRex docuWHAT?
 
@TemplateRex Yup. I was thrilled to find that VS had "silently" added that feature in VS2010
 
@R.MartinhoFernandes If it is really so, I at least can get a knowledge of what exactly the type is; better that ignorance. — Hongxu Chen 2 mins ago
 
1:35 PM
@ArneMertz like "adapted from this open source lib"? "or trick explained in this blog"? "or issue explained in this SO qa"
 
Just read GotW #94. Take-home message:
 
@TemplateRex In VS I have intellisense disabled, so Ctrl+Click highlights a token for me. Same as doubleclick.
 
> auto ALL the things
 
@TemplateRex ah, those.
 
@R.MartinhoFernandes Yeah, you lazy son of a bitch! Better that ignorance. Now!
 
1:35 PM
@TemplateRex tbh, I seldomly have those in my code.
 
Alt+G then goes to the definition of the highlighted symbol (thanks to VAssistX)
 
@KonradRudolph except (until operator auto())
 
@KonradRudolph auto all the way to the bank!
 
@sehe except what?
 
@KonradRudolph IIRC except when using ET
 
1:37 PM
@TemplateRex who the hell does either? just click with the middle mouse button...
 
@willj That doesn't involve Ctrl+Tab, then :S
 
user1804599
@R.MartinhoFernandes lol google style guide
 
@melak47 that I find annoying, because clicking with the middle button can easily also induce scrolling
 
@sehe ET = expression templates?
 
@TemplateRex Ugh.
 
1:37 PM
@KonradRudolph yes
 
^
 
well that was obscure
 
@R.MartinhoFernandes you don't like auto?
 
@TemplateRex not if you have a fancy logitech ~superscrollspeed~ mouse
 
@R.MartinhoFernandes I misreplied!
 
1:38 PM
I guess either every mouse I ever used is better than any you ever used.
 
user1804599
@sehe class ExtraTerrestrial {}; auto ET = ExtraTerrestrial();
 
And I don't give a fuck about mice.
 
auto x = expr(a) + expr(b) --> x is now sum<decltype(a), deltype(b)> or sth like that
 
@KonradRudolph lazy, not obscure. You claimed to have just read that article, isn't that context? Or did he in fact not mention it? In which case, I sincerely apologize for abbreviating prematurely
 
@melak47 That superspeed scrollwheel gives me RSI :(
 
1:38 PM
@sehe Oh, I take it back then. I’m still only halfway thru
 
@R.MartinhoFernandes But! They rule the world!
 
@willj what? how?
 
@melak47 Because it's so much fun that I spend all my time scrolling with it
 
@melak47 I have always used crappy mouses and I don't think scrolling instead of middle clicking was ever a thing.
 
Sometimes my fingers just won't keep up. And I try to find more opportunities for shortening. (See, "opportunities" just now took me 5 edits to get right)
 
1:40 PM
@R.MartinhoFernandes maybe he middle clicks with his middle finger
 
@melak47 yes, you don't ?
 
@sehe even then thou shall auto x = TheTypeYouWant{ expr(a) + expr(b) };, according to Herb Sutter
 
s/it's/you could/
 
@melak47 Tried that once. Mouse manufacturers are assholes and put the wheels in the wrong place for that to be comfortable.
 
@ArneMertz Andrei wrote on the D mailinglist that Herb is about to update the guideline
it's going to be auto x {expr};
 
1:41 PM
@TemplateRex oh noes
 
When a colleagues gets a case of the "runaway scrollwheel" I usually inquire whether they have a bad itch on their scrollwheel. Mighty annoying that. Keyboards for the win. Silent keyboards at that
 
@ArneMertz after lengthy consultation with the prophet Meyers
 
@TemplateRex auto x {1}; - its not int!
 
@TemplateRex nah, either my mice have been designed by assholes, or my ring finger just isn't a clicking finger, I have my middle finger on the right mouse button and use middle and left with the index finger
 
@ArneMertz but auto x = {1} is
 
1:42 PM
@melak47 the middle finger is made for scrolling ;-)
 
Mouse wheels are never right there in the front. Middle fingers are usually longer than index fingers.
 
@TemplateRex and it does not apply to explicit typing like my example
@sehe yes, but T-Rex was explicitly skipping the =
 
@ArneMertz wait until the Prophet Sutter explains his Wisdom
 
My mouse seems to be designed to use two fingers for a left-click
 
@R.MartinhoFernandes yeah, and using the wheel or clicking it with the joint instead of the tip is awkward
 
1:43 PM
@melak47 me too. That is, IFF I use the mouse
 
.. which is quite comfortable
 
@sehe Oooh, so you're a foe. IFF good guys.
 
1 hour ago, by sehe
How is it that I use tools in the ways I see fit and I think it's perfectly normal, and often people stand by in shock, as if "you can't do that!!!". Well, surprise! I just did!
 
@willj or for sausage fingered people :)
 
1:44 PM
@TemplateRex I shall wait for the differet channels to notify me of their higher wisdom
 
ugh. the mental images
 
In telecommunications, identification, friend or foe (IFF) is an identification system designed for command and control. It enables military and national (civilian-located ATC) interrogation systems to identify aircraft, vehicles or forces as friendly and to determine their bearing and range from the interrogator. IFF may be used by both military and civilian aircraft. IFF was first developed during World War II. The term is something of a misnomer, as IFF can positively identify friendly targets but not hostile ones. If an IFF interrogation receives no reply or an invalid reply, the ...
 
7
A: What are the pros and cons of each way to initialize an expression?

Johannes Schaub - litbauto v = expr; auto v(expr); When in your code either you don't know the type of expr and want to stay generic, or in your code it is absolutely clear what type expr has (definition right at the line above, etc), so that the auto will not add confusion. The form of the initialization, parens o...

 
@melak47 with mustard, please
 
litb weighs in
 
1:45 PM
@R.MartinhoFernandes oh god. foiled again. It was obscure though
> non-C++-y
^ seems a 4 is missing for completeness
 
> More likely, taller men have more self-confidence, and height has been shown to correlate with intelligence.
unfortunate for midgets
also, WTF?!!
 
Well, midgets are outliers anyways. They can easily claim they are outliers on this correlation scale too
 
@TemplateRex Huh? auto v{expr} is initializer_list
Why would he suggest that?
 
@TonyTheLion I'm not surprised. Of course, the big boyes in school yard have less to fear. Right. This is going to result in a lack of undermining of self-confidence
 
1:48 PM
@Rapptz see the reddit link above
 
@Rapptz Because everybody digs initializer lists.
 
@TemplateRex ..? Which one?
 
Did you click what I replied to?
 
Ugh, that english
> It's not the best way. It doesn't even do the right thing. It makes a std::initializer_list<T> not a T.
>
This is why adding initializer_list (not brace initialisation) was a bad idea; it's called uniform initialisation informally and yet its not even uniform. Could've had this nice syntax that always does the same thing but somebody decided "nope, it needs to be special in two cases" (initializer_list constructors and as the initialiser for variables defined with the auto keyword).
There, save you the time from clicking a link
 
1:50 PM
Oh it's all the way in the bottom.
I was merely replying to Andrei's "It turns out that the best way is:
auto v { expr };"
 
@Rapptz I wonder what they have been smoking
 
Didn't know Andrei was such an active Redditor.
 
@TemplateRex They probably didn't realise it back then.
 
@R.MartinhoFernandes No I mean the auto v { expr }; thing that Andrei wrote about 20 days ago. Why wouldn't they realize that?
 
Because it's sorta stupid and unexpected.
It's surprising for many people, why not for them?
 
1:55 PM
for Scott Meyers??
 
Because he said he vigorously emailed Scott and Herb. :P
and I'm sure at least one of them knows
 
@R.MartinhoFernandes shhht don't go spoil the mass idignance with the rational explanation!
 
and they discussed it for weeks, Herb including, and Herb wrote the bloody Gotw already
 
@TemplateRex Yes. Not the first time that happens.
 
it is in Scott Meyers's notes on C++11/14
he knows
 
1:56 PM
@TemplateRex Two question marks. Now it is officially surprising
 
I do appreciate a sentence: C++ is a horrible language. It’s made more horrible by the fact that a lot of substandard programmers use it. And I don't like to be rather a substandard one myself. It's nonsense arguing with you. — Hongxu Chen 10 mins ago
I...
@TemplateRex Now.
 
@R.MartinhoFernandes Hm.. bad question.
 
He doesn't say when those vigorous emails happened.
 
and bad OP.
 
I knew I was right to be suspicious of auto!
 
1:58 PM
@R.MartinhoFernandes no he has known for years, he writes about it in every slide he presents
 
sbi
Anyone up for a multi-threading question? stackoverflow.com/q/19096150/140719
 
Wow, threading look easy.
Morning.
 

« first day (1080 days earlier)      last day (3868 days later) »