« first day (2475 days earlier)      last day (2472 days later) » 
00:00 - 20:0020:00 - 00:00

12:02 AM
r is __m128. this is code that is executed after the loop, so it's not too bad if it's a bit slow
i want to sum the elements of other->sqsum. so i use horizontal-add and let the first half of r be the sum of the elements [0,1] and [2,3] of sqsum.
 
Technically, you're not allowed to index a __m128. GCC allows it as an extension. But it won't work in MSVC or ICC on Windows. Since you're using that extension and the indices are compile-time constants, you're better off. The optimal sequence for r[0]+r[1] is shufps; addss. Not sure if GCC will be able to generate that.
I'm unsure about the horizontal add. Internally, the processor breaks it into a vertical add + shuffle. But I wont' know how many shuffles. If it's more than one, then it's better to do it manually.
 
oh i see. didn't know that limitation
 
Scanning over Agner Fog's tables, horizontal add is 2 shuffles on all processors going back to at least Core 2. So fuck that shit.
 
12:18 AM
ah i see. hm
ah i see now. i initially thought that shuffle means "random sort"
 
12:38 AM
FWIW, Peter Cordes' take on the subject:
32
A: Fastest way to do horizontal float vector sum on x86

Peter CordesHere are some versions tuned based on Agner Fog's microarch guide's microarch guide and instruction tables. See also the x86 tag wiki. They should be efficient on any CPU, with no major bottlenecks. (e.g. I avoided things that would help one uarch a bit but be slow on another uarch). Code-siz...

 
oh haha, movhlps and movshdup as alternatives to shufps.
Yeah, that's definitely faster. They don't use the shuffle port.
 
I get annoyed when women whine about how they get trolled online. I mean in that case, trump gets trolled all the times.
 
Actually wait, they do.
 
they make it sound like only women get trolled, which it's kind of sexist
 
@Telkitty I figure those women are really just trolling you (successfully, apparently).
 
12:48 AM
by writing articles on newspapers, I am flattered
 
@Telkitty Regardless of whether it's really aimed at you, I think quite a few of the articles I've see have basically qualified as trolling, with one exception. On one hand, like trolls, I think in most cases the authors were fully aware that they were basically writing nonsense. On the other hand, unlike trolls, they weren't just trying to annoy or cause fights--they really wanted their nonsense to be believed.
@Mysticial I think his idea with movhlps is that it's helpful on older CPUs and harmless on new ones.
 
I am annoyed because their bullsh!t articles make women sound weak - like they can't take criticism, and the foundation of sexism builds on the idea 'women are weaker'. So in a way, they are reinforce sexism ...
And they misuse the term 'troll' - like anyone who expression their dislike towards those journalists are all trolls. It's not like they are saints, and even saints disliked by some people.
it freak interferes with freedom of speech
because there is no hatred in the world </sarcasm>
that's why those women's whine about trolls are wrong on multiple levels
media manipulate people in subtle ways ...
 
1:09 AM
@Telkitty I suppose they might, but it's really pretty rare.
Usually their manipulation (or attempt at it) is extremely blatant!
 
Zuckerberg said he was optimistic about the technology, and that people shouldn't call for a slowdown in progress with artificial intelligence.
what slowdown? 50+ years after inception of the idea 'artificial intelligence' I see very little progress ...
 
@Telkitty Matter of viewpoint, I guess. 50 years ago, OCR, handwriting recognition, and speech recognition were all considered "AI". Now they're all pretty routine. My general rule of AI is that it's never achieved, because as soon as we figure out how to do something reasonably well, we decide that's not really AI after all, and move on to other things.
 
@JerryCoffin That's AIcism!
For me there will be machine learning big enough to be called AI.
 
1:25 AM
@MarkGarcia Probably. It fits in well with my racism, sexism, ethnocentrism, atheism, etc.
@MarkGarcia So far, I think most of what we've come up with is artificial idiot savants. They (at best) do one thing reasonably well, but make no attempt at all to extend that ability into other areas. Train a net to recognize every breed of dog extremely well, and it still has no clue about anything related to cats.
 
True. But I'm sure soon enough researchers will find ways to generalize. Then infer relationships. Then predict stuff with these.
@JerryCoffin I think the one thing current "AI" greatly lacks is a general way for it to act upon information.
They learn, but they lack creativity, if that's the appropriate concept.
Current ML AI are glorified information filters.
 
and I bet in those three years, no one invaded her personal space like some sort of weirdo
 
that's amazing right?
 
yes
 
also she grew her own food, never lay down, survived temperatures of below −30° Fahrenheit (−35°C) - I find it hard to believe, but then maybe I just have a shallow mind
religious people are capable of doing extreme stuff ...
 
conviction can be neato
 
2:37 AM
Good evening
 
2:53 AM
@Morwenn <3
@JerryCoffin ...is your avatar a pun?
it just occurred to me and now I feel a bit dim
 
@LucDanton ... not what I expected
 
the Asura really did it this time
 
inb4 space dragons or some silliness
 
yes, we only tolerate serious dragons 'round these parts
anyhoo, want to get hyped about hype?
 
I'm unemployed now so entertain me
 
3:03 AM
technically involves minor spoilers but ultimately they can’t be avoided
that’s right, they announced the expansion announcement!
 
because of someone’s slip-up we also know that this expansion probably goes by the initials 'PoF'
 
Patrick oivre Farvor ?
 
obviously
 
inb4 path of fire
 
3:11 AM
yeah that’d be lame
 
wew new legendaries
very nice
what year is it
 
@BaguetteGarlique think the hammer can compete with Juggernaut?
huh I forgot to start working on the sword earlier tonight
then they’ll release even more prettier legendaries and I’ll want to craft them all
 
I like the daytime hammer, not the nighttime one. Overall I prefer Juggernaut.
 
thankfully hammer is never worth using so my mats are safe
 
seems the devs are way more active on reddit than they used to be :o
fun trivia fact: I discovered reddit because that was the initial communication medium of GW2
 
3:21 AM
yeah that’s a fair assessment
@BaguetteGarlique it was? weird
 
Yep, prior to launch and for a while after that, there were no dedicated forums.
 
lmao then I have on idea why they bothered with theirs
 
You were in the beta weekends weren't you?
 
nah, I joined the gaem by chance a couple of weeks after release having heard nothing about it before
 
Oh, ok. I did BW2 and BW3 IIRC.
 
3:27 AM
I did have an inkling that it was connected to that other gaem, Guild Wars I believe it was called
 
Only in name :noel:
 
@BaguetteGarlique boy if you played LS3
 
No spoilers allowed!
 
at least until they unroll the plot of the expansion
 
4:13 AM
> theorems for low, low prices!
sounds like a scam
 
4:41 AM
I hate waiting for some things.
They are supposed to deliver a new washing machine between 7 and 9 o'clock. I hope they will do that as early as possible in the time range.
 
good luck :p
 
5:07 AM
@Telkitty Thank you.
 
5:28 AM
@Xeo So I'm watching Rokudenashi tonight because I don't feel like doing shit. And I'm on ep6 already. fuck
 
5:47 AM
@Mysticial Maybe you should do some shit. :)
 
5:57 AM
s/do/stir/
changing email address in account settings are always hazardous ...
Sure, I will do that for you. However, will need to change the PIN first and then can change the email address.
wot?
 
Xeo
@Mysticial hehe
 
Please select random 4 digits numbers to set as your new PIN on account.
I will update it quickly.
I have updated the new email address And in 24 hours, you will receive a Validation email with a link. You will need to click on  that link and your email address will be validated.  You can receive the validation email anytime within 24 hours
I want to change my email address, not my pin
 
6:12 AM
they'll update it quickly?
why are they manually updating your account with your pin?
 
weird, right?
if I didn't follow official link from ISP's website I almost start to think that they are scammers trying to access my account
 
maybe users records are keyed on email and pin :V
but they hash the pin in the key, so he can't tell what your current PIN is to set up your account
A+ design decisions
anyhow, bedtiem
 
18R
 
Sup guise
 
6:43 AM
7 to 9 was the delivery time range. They called at 7:45 they will be here in about an hour. It is 8:43 and they are not here yet.
 
they have 2 minutes to quickly get into your place :p
 
@Telkitty Yes.
I have even disconnected the old washing machine so that it is easier for them.
 
6:58 AM
They are here! \o/
 
\O/
 
7:29 AM
@jaggedSpire Hey :3
 
I like Microsoft - Microsoft Paint is Ms. Paint, Microsoft Visual Studio is Ms. Visual Studio
Ms, not Mr. :p
 
7:55 AM
@Telkitty Ms. Paint is dead though.
 
8:16 AM
@Telkitty I don't know what the context is, but I for one hate MS..
Their compilers are always bugged or not feature complete
 
8:49 AM
@Ell yes and no
Hate diverges from the FRP paradigm a bit, but still shares some ideas
 
Ven
We call it "eventually consistent".
 
as in "I'll eventually reinvent it"? ;)
if you squinted hard enough, you could call Hate a push-based discrete FRP model.
 
9:33 AM
how do clr enums work? when i declare public enum class MyEnum inside a header and include that header in multiple cpp files, the linker complains about multiple definitions: LNK2022.
 
we don't really do nonstandard C++ here
the standarised kind is bad enough
 
i have to use it for a .Net wrapper unfortunately
 
nwp
10:21 AM
@MarioDekena Contact Microsoft™ Support™ using your Developer™ License™ Privileges™.
(But don't be surprised if you get some Indian dude who doesn't speak English)
 
How would you split
virtual void draw(sf::RenderTarget& target_, sf::RenderStates states_) const override = 0;
So that it fits within 80 columns?
Like this?
 
Ven
remove parameter names
(;
 
nwp
@kim366 You make clang-format do it and stop caring.
 
`virtual void draw(sf::RenderTarget& target_,
sf::RenderStates states_) const override = 0;`
 
Ven
and disregard 80 columns because no one cares
 
10:26 AM
Okay, good. That's what I always did, but geosoft.no/development/cppstyle.html threw me off
under 37.
 
Ven
> Copyright © 1996 - 2011
clearly outdated!
 
:D
 
Ven
seriously tho
1) why `virtual`+`override`
2) why `override` with a pure method?
 
Huh, wait a second
It is a purely virtual class that inherits a purely virtual class
My own class that inherits sf::Drawable from SFML
Wait, when you override virtual methods do you not write virtual?
 
nwp
@kim366 I recommend spending an hour watching this instead so you understand why that site is garbage.
 
Ven
10:30 AM
@kim366 not needed, so no.
 
nwp
@kim366 no, you write override
 
struct A
{
	virtual void method() = 0;
};

struct B : A
{
	void method() override
	{
		std::cout << "Hello World\n";
	}
};
This works.. I never thought it would
Okay, thanks for finding an error, I didn't even know existed!
They did write virtual
 
Ven
they have the base version.
It doesn't override anything since it's the root one.
 
No, but in their example of MyDrawable
 
Ven
10:35 AM
they do it pre-C++11 style
 
Ah, okay
Okay, another question: is having a getter to an internal STL container a good idea or should I make an interface?
 
@kim366 depends
do you have any invariants you want to keep on that container?
(e.g. always-non-empty)
 
Lounge<QuestionableC++>
 
@sehe it's always been that way :P
 
funny. But no
 
10:45 AM
I personally don't see a problem in returning the container view directly, but it needs to be conceptualized
 
@BartekBanachewicz Good. Then that's fine
 
Why is every one suddenly trying to answer every pretty question here instead of the questions room
 
Oh, whoops
I meant to go to questions&answers
/my first question fits here
Is variableName() fine for a getter or should get precede that?
 
functions should be verbs
C++ doesn't have properties
 
Okay, I guess. But that looks so ugly..
 
10:50 AM
@kim366 it's C++, what did you expect?
 
Lambdas are sexy, though!
 
Ven
but the only language that got them latter than C++ is basically Java
 
@Ven Don't forget C.
There have been proposals and probably will be proposals again.
 
Ven
@Morwenn GNU C got them earlier :P
ok, cheating. same for cobol, it's technically possible in visual cobol.net, but cheating again.
 
Okay, but I must admit Python is quite nice after I worked with it for a day. You just save so much syntax without data types
 
Ven
10:57 AM
maybe save your judgement for later however
such lessons are best taken with more than a day worth of experience
 
I'm planning to make fewer things directly meant to be used by users in cpp-sort.
It's a bit like removing code, but without the same satisfaction.
At least I will be able to remove some documentation /o/
 
11:13 AM
Hey
 
Hi
 
Off topic question that I don't think fits on SO or in any room in particular.
Does anyone have experience sanitizing git repos from passwords and private keys?
I'm looking to republish a private repo in a new public repo, without losing git history.
 
quite an interesting topic
 
Again, totally and completely off topic, but if there's a better place to ask, I'd love to know where it is.
 
I just developed some TMP code to sort type sequences and manage integer ranges (an std::integral_constant in 2D per se)
I have a good looking working example on Coliru... Time to port to VS2013. And cry
 
11:23 AM
@Rerito got rid of 2010?
 
VS2013 incoming, we still do our main development on VS2010 at the moment
 
why so old?
 
because legacy
 
And laziness
People CBA to migrate to better tools
 
> so old
this got me thinking :D
 
11:25 AM
That's why we're also still stuck with that RTC nonsense
 
and if you going to upgrade, why not latest ?
 
Office politics
 
@Froglegs latest are the most unstable and you cannot risk time on a large scale project
 
@login_not_failed I'm not agreeing with that. It's not an open source compiler where the bleeding-edge version can be "unstable". It's a commercial product so I would expect VS2017 to be reliable with code that compiled well under VS2015
 
@Rerito "would expect" and "microsoft" are at least questionable in one sentence :)
 
11:28 AM
2017 has a few bugs, but 2013 is just old, and if you have any bugs i doubt MS is going to fix it, and least with 17 you can report it and get it fixed
 
but VS2017 is compatible with VS2015 btw
 
@Froglegs I pushed to migrate to at least VS2015
But a team that works "around" us uses VS2013 and if we want to pressure them into actually producing something, we need to use the exact same VS version they are using
So 2013 it is
yay
 
@Rerito That's sad :(
 
 
1 hour later…
12:48 PM
VS2013 has troubles getting partial specializations right when there is a template template parameter involved
The failure case is the following:
template <template <typename...> class Z>
struct ma_struct<Z<>> {
};
 
1:14 PM
am I the only one getting this?
I am not even using google
 
1:52 PM
Anyone familiar with Boost.MPL here?
 
I don't tend to get captchas
 
@jaggedSpire You don't look like a bot enough to get them.
 
@Morwenn beep boop
also <3
 
Yeah, <3 is the way :p
 
2:00 PM
so
 
time for work
 
if I have two classes, A and B
and B inherits from A, extending its iface
what's the best way to write processing for a set of As and Bs
 
@jaggedSpire Have a somewhat good day!
 
2:15 PM
@BartekBanachewicz your question is unclear
run time type casting to call the right function?
 
nwp
@BartekBanachewicz If you can separate them you can have a virtual function process for A that handles the A part and an overriding function in B that handles the B part after calling A::process.
 
3:22 PM
@BartekBanachewicz You use inheritance? Aren't you Bart Nye the Monad Guy?
 
3:40 PM
posted on July 26, 2017 by Herb Sutter

I’ve been working on an experimental new C++ language feature tentatively called “metaclasses” that aims to make C++ programming both more powerful and simpler. You can find out about it here: Current proposal paper: P0707R1. I hope the first ten pages give a readable motivation and overview. (The best two pages to start with are […]

 
4:10 PM
@fredoverflow that's not my personal code
 
5:03 PM
Spotted in the source code: // don't ******* change this without talking to frank or mike
8
xD
 
5:21 PM
had an interesting situation in my D&D session last night
I took out a loan from a loan shark, and it turns out he entered one of his best guys into the gladiatorial arena, and I subsequently killed him to live/win
then his enforcer told me that he was out for my blood
then everybody else was surprised when I promptly stabbed the enforcer
what else is that supposed to mean except that he's gonna try and kill me and I should just use my surprise round before he can use his
 
5:37 PM
let's try building my 2 year old rust project
> On Windows, Rust additionally requires the C++ build tools for Visual Studio 2013 or later.
what
why would you want C++ build tools if you're a language set to replace C++
oh wait "if you're targetting GNU ABI"
what if I actually am doing that
 
@BartekBanachewicz Bootstrapping? If you're building the compiler, it's pretty hard to depend on the compiler being present to do the building.
 
@JerryCoffin they could just ship the binaries like every sane lang does
 
5:52 PM
@BartekBanachewicz They could, but doing that well is a fair amount of extra work (especially on Windows, where the installer doesn't know about dependencies, so you have to handle them all manually).
 
6:08 PM
@EtiennedeMartel Breaking news, racism is still alive
 
@thecoshman More to the point, racism was still alive in 1944. In fact, but current standards racism ran rampant back then. Years ago I read through some (US) want ads from the late 1930s (or so). Lots of them were blatant about things like "no jews", "no irish", etc. Quite a few sounded more like you'd expect on a dating site than a job ad: "Wanted: pretty blonde girl between 18 and 20 to answer phone. No Jews, WOPs, niggers or Irish."
 
@JerryCoffin oh god yeah, comparatively speaking, racism is not an issue now. Sadly, it still is. But yeah, it's so much better now... well, maybe it's just not as honest
 
@thecoshman I think there's some of both. People who really are strongly racist aren't nearly as open about such feelings any more. At the same time, decades of reduced visibility and widespread disapproval has (I think) reduced a lot of the underlying racist attitudes as well. These attitudes don't happen without somebody teaching them, and the likelihood of learning them is drastically reduced when few people feel comfortable openly stating them.
 
apparently Tesla uses Haskell and is actively hiring for Haskell roles
damn it
 
6:23 PM
@JerryCoffin I hate West Ham supporters and PHP kiddies. Racist and proud!
 
oooooh hi @MartinJames
long time no see
 
@BartekBanachewicz Long time suspended..
 
@MartinJames If the kiddies were racing, wouldn't they use something faster than PHP?
 
@JerryCoffin You mean Ruby?
 
@MartinJames what? What for :O
 
6:27 PM
@MartinJames I never noticed Ruby being particularly fast, but I guess it doesn't need to be particularly fast to be less slow than PHP.
 
@BartekBanachewicz 'i++ + ++i' there's a meta somewhere complaining about me scaring off the valuable new users who post that.
 
sbi
7:07 PM
Good evening.
@Abyx Would you rather be punched on the nose or fucked in the ass? Well, there you go then.
@Abyx Basically when I realized there are asshole like you. And now please crawl back under that rock you came out from.
@sehe What?
@LucDanton Wonderful, that! :)
@login_not_failed Actually, it's hiding from the ape what you should be worrying about.
@Borgleader What? No! I write code for power plants.
 
^^^ it's always nice to hear jolly banter between good friends..
 
sbi
@MartinJames I give you "jolly banter!"
(AKA: "Hi @Martin, how are you doing?"=
 
@sbi I'm fine, mod. no beer. Shopping later..
 
sbi
@MartinJames Ah, no beer here either. I guess it'll have to be Whisky again, tonight. Sigh.
 
@sbi Yeah, it's tough..
 
sbi
7:21 PM
I don't think I could go to sleep sober tonight, and I don't feel like drinking wine.
Ah, that reminds me of something. Goes digging...
"So brother, be a brother, and fill that tiny cup of mine. And please, sir, make it whiskey, for I have no head for wine."
Hadn't heard that in a while.
 
@sbi you must be drunk, please ping me later if you want to talk
 
Umm.. hang on a min..
 
sbi
@Abyx I hadn't had any alcohol since I had a glass of Whisky last night. And I am a minute away from blocking you.
 
@sbi you don't make much sense.
 
@sbi RESULT! Thanks to your post, I remembered that Anne won on the raffle a couple weeks ago. I've found her bottle of Bell's :)
 
7:33 PM
Jun 13 at 16:58, by Brad Larson
@Abyx - I've removed the message you flagged. However, I'll say this: if people are repeatedly telling you that they find the things you are saying to be disgusting, maybe this chatroom isn't the place for you. Or even Stack Exchange chat itself.
 
yo
@sbi Abyx givin ya trouble?
 
sbi
@Mysticial I'm not sure what to make of you throwing this at me. Is that an argument pro or contra blocking him?
@Puppy He's calling me a "femnazi" because of this. I wouldn't call that "giving trouble". It's more "being an asshole".
@MartinJames :)
Nice to see you, @Mysticial and @Puppy
 
well, I've given you a temporary reprieve of one minute
so sit back and have a cold drink ;p
 
Xeo
Did the old ape remember his StackOverflow login?
 
sbi
Haha.
 
7:37 PM
@sbi Neither. Nevermind then.
@sbi Yeah, haven't seen in you a while. How's things going?
 
sbi
@Mysticial What was it about then?
@Mysticial Bad day to ask that. Sigh.
 
Xeo
rip
 
@sbi I wasn't sure how much you were aware of in terms of Abyx's previous run ins.
 
you're playing with fire
 
@sbi Oh... sorry to hear that.
 
Xeo
7:38 PM
Yes, it's the fire we're lighting under your ass
 
that's a rather collective noun for my individual action ;p
 
sbi
@Mysticial Did he have any? Well, I am not surprised at all.
 
Look. I can throw some flags and call a mod. Or we can pretend that nothing happened and be nice as the SO rules suggest.
Do you want to go all the way there?
 
as if I'm afraid of the moderators
worst that can happen is that I move to Discord
 
sbi
@Mysticial My father died.
 
7:42 PM
nvm
 
@sbi Oh shit... Sorry. I had no idea.
 
sbi
Well, I blocked him. The room looks much cleaner now. Please don't spoil it by replying to him. :)
 
dayum @sbi that's gotta hurt
 
sbi
@Mysticial This isn't totally unexpected when you look at the last ten years. But I hadn't heard from him in a while, and the first warning I had that his state had deteriorated was when I heard Sunday night that he'd been admitted to the hospital in the morning. He never even woke up again.
I have listened a lot to Nick Cave these past two days. :-(
 
> He never even woke up again.
^^ TBH, if it's gonna happen, it doesn't get any better than that.
 
7:47 PM
How old was he?
 
sbi
@Mysticial It seems he was sick the last few days. I dunno, though, nor does anybody else, because he lived alone (and wanted to), and by accident all the friend who check on him once in a while were away. When they found him, he might have been unconscious for days. His days before that might have been bad, though.
 
:(
❤️
7
 
oh... that hurts
 
sbi
@EtiennedeMartel Not old enough to die, certainly. But then he was diagnosed with lung cancer in 2008 and was given 3 years at most. In the end he died of bad habits causing his kidneys to fail, though.
 
00:00 - 20:0020:00 - 00:00

« first day (2475 days earlier)      last day (2472 days later) »