« first day (1756 days earlier)      last day (3193 days later) » 

2:00 PM
@fredoverflow lol
 
Good morning!
 
morning
 
o/
 
Here we go: purrrrformance issues
 
overwrite algorithm; basically calls .clear() and then overwrites the output range with the input range.
But which makes more sense, overwrite(output, input) or overwrite(input, output)?
 
Most STL algorithms do input first and output second
Like std::transform(In begin, In, end, Out out, UnaryFunction f)
So I'd say use the latter
 
user1804599
I prefer output first, for consistency with std::memcpy.
 
@elyse Heh
 
2:22 PM
lol
 
@unordered_meow Good point.
 
Xeo
Err. There's a really similar algorithm already: std::copy(first, last, out);
 
@Xeo Yeah, but it doesn't wipe out first.
 
Xeo
Yes, which is why I said similar
Also, notice the parameter order
 
user1804599
It's one-past-last, not last.
 
Xeo
2:23 PM
(it also can't wipe out, since that's an iterator)
@elyse Convention to name it last. Same with end(), not one_past_end().
 
That's why ranges FTW
 
user1804599
NO!!!!!!
 
@Xeo implementation is this { clear(output); std::copy(begin, end, inserter(output));
@Xeo That's how I wrote it initially.
 
Xeo
@caps Also, such an algorithm is just meh.
 
The reason I asked was because you say "copy X to Y" so "copy(x, y)" makes sense, but you say "overwrite Y with X" so "overwrite(y, x)" could have made sense.
@Xeo Agreed, most of the time you just want to do a resize and then pass begin of the output range as the output iterator.
 
2:27 PM
@caps memcpy(X, Y, size) does "copy Y to X" to be consistent with order in the assignment operator x = y;
 
In this case I'm dealing with an output range that doesn't actually use iterators; the inserter is an adapter that adds the "inserted" element to a view in the UI.
I suppose I could write an adapter for the view that could iterator over its elements...
 
I'd rather make assignment operator y -> x because why not
 
@unordered_meow If you read it left to right, you have to say "copy into x, y"
 
@caps And that's awkward. The point is they didn't care about how you pronounce it.
So why should you?
 
@unordered_meow Because I don't think like a C dev?
 
2:31 PM
@caps Yeah, I figured
I even started out typing "inb4 they were retardely designed"
but somebody was faster :P
IMHO consistency is more important than this
 
I thought that overwrite(from_range, range_to_overwrite) might cause double-takes or, in the case of more ambiguous range names, might lead to misunderstandings of what is happening.
But...
@unordered_meow Yeah, that.
Huh, I thought you could reply to your own posts.
5 mins ago, by caps
I suppose I could write an adapter for the view that could iterator over its elements...
I might still do this, because useful, but I'm not sure I could easily re-generalize my algorithm to do a resize instead of a clear.
I don't think the view UI allows it to be "resized" except by adding or removing elements.
 
You could do overwrite(what).with(stuff) but that's taking it into a dangerous territory.
A shame there are no named arguments
 
@unordered_meow returning a functor object or something?
 
Yeah, with chaining
 
Looks fun to figure out how to make that syntax work in C++. Never done that before.
But probably not something to do in this instance--not without a reason.
@ScottW ah, right. thanks.
view does have an insert() member--I could create an inserter that calls that when the current index is less than the size, and calls add() when it is greater.
Sweet! insert() > add()
 
2:49 PM
@Jeremy while(true) {
 
Still need to handle output_range > input_range when I want to insert
 
@Jeremy }
 
Ugh Pidgin doesn't seem to be able to set conversation font
 
does anyone know if there is an online compiler that has any c++17 support. trying to use insert_or_assignfrom std::map?
 
Coliru might
 
2:52 PM
tried there and it didn't work. also tried gcc.godbolt.org
 
@NathanOliver Which compiler version supports that?
 
You can try bugging @StackedCrooked to install some bleeding edge compiler or whatever
 
(Well, which library, I guess)
 
@R.MartinhoFernandes Right now Microsoft Visual Studio Community 2015 RC does
 
Dunno why you tried GCC then.
 
2:59 PM
I was looking for an online compile to share an example. I don't know of any MSVC++2015 online compilers
 
@caps except not. :(
 
@CatPlusPlus Thanks. Doesn't have a share but I can work with it.
 
@ScottW Hey how's it going?
 
god bless this country theregister.co.uk/2015/08/06/…
i seriously love how many daft eccentrics the UK has
 
3:05 PM
@TheForestAndTheTrees well you guys have @TonyTheLion so at least 1
 
I tried once
It was slower than JSON
So I didn't
There's not much reason to use it
Unless you're talking to Thrift
Or maybe that was another protocol
I don't even remember
 
> As a consequence of this, Porygon and its derivates suffered from major unpopularity among the fans of the series
lulz
 
I'd use Protobuf probably if I needed interop
 
user1804599
cap'n proto :D
 
Tools don't work on Windows
 
user1804599
3:12 PM
Use Vagrant.
 
@Mr.kbok What, seizure attacks?
 
@unordered_meow Yeah
 
user1804599
What is a trigger warning?
 
seizure trigger
 
It's a warning that the link target may cause a trigger
 
user1804599
3:14 PM
What is a seizure?
 
:define seizure
 
When the police come and steal your computer
and all your other stuff
 
user1804599
OIC
 
user1804599
No.
 
I don't remember
 
user1804599
Use Haskell, not C++.
 
Top-level types should work fine as values I think
 
Alright
time to get drunk
Good bye everybody
 
good night sweet prince
 
user1804599
3:26 PM
First I lost my attraction to real life women, now I've lost my attraction to imaginary ones.
 
now he's just attracted to ponies
 
what about real life ponies?
 
0
Q: Why do you allow so many ignorant, rude people on the SO forum?

SteveThe question I asked at Could someone explain this PHP code? got 5 downvotes from people who were too shallow to understand my question or posts and the next time I tried to post I got the warning: "Your previous posts were not well received and you're in danger of being blocked from the forum." ...

^^ classic
 
topkek
 
> they're unable to follow the discussion.
get out
 
3:36 PM
SO forum? What's that?
Is it SO proper or chat?
I am very confuse
 
@nabijaczleweli Hi
Are you done being dead?
 
Still dead, sorry
 
> Without ignorant people, a Q&A site would be a little dull
so true
 
@Jeremy How expensive is signature plastics' shipping?
If you know.
 
@Nooble I'm gonna employ my MLGpR0haXxor skills to be a little less dead
 
3:41 PM
@Mysticial ☑ rekt ☐ not rekt
 
@ScottW Hi.
 
hey @Nooble
I'm still waiting for that penguin drawing
 
@Mr.kbok Okay fine.
 
@Nooble Dunno. Haven't bought anything from them before.
 
This principle applies pretty much any time someone has a high volume of mostly-useful contributions, @Mysticial, regardless of rep. See also the rules about self-promotion: folks tend to get far less upset if someone with lots of good answers throws a link to their blog in than they do when someone posts nothing but links to their site. Cheers & hth. — Shog9 ♦ 14 mins ago
^^ Fuck, he knows exactly who I'm talking about. lol
 
3:47 PM
 
Why did we need a penguin drawing again?
/8
 
@Mysticial Who would that be?
 
@caps If you were a lounge regular about 2 - 3 years ago, you'd know. :)
 
what is that thing on the left
is it a wing
 
he likes his religion
 
3:50 PM
@Mysticial He left two years ago? whoa
Jul 20 at 16:57, by Nooble
@Mr.kbok (0<O)/
huh
 
Looks like he's back. But I haven't seen any posts by him for a long time. So I don't know if that counts as "being back".
 
@Mysticial I honestly don't know if I was a regular 2 years back
 
Fucking Alf.
That guy was toxic.
 
Ell
I never really saw what was.up with him
But I was so young and reckless back then <3
 
3:55 PM
I kinda liked Alf
 
in april alf commented on one of my questions
7
Q: Standards compliant way to compare float to integral?

orlpLet's say I have two objects i and f of respective types I and F. I know that std::is_integral<I>::value is true, and std::is_floating_point<F>::value is true. Is there a fully standards-compliant way to find out if the value of i is smaller than the value of f? Note the emphasis on 'fully stand...

 
@MartinJames He's still active on stackoverflow
 
Ell
@unordered_meow I still do.t see the issue
Lots of people ask.for standadd quotes
 
@Jeremy He seems to have returned. But not actively. And I didn't know until I went to his profile to see his activity log.
 
Ell
And puppy for example has strong opinions on the intelligence of others at times
 
3:56 PM
But there was a long time following his second suspension where he disappeared.
 
@Ell Which is also unacceptable to me
 
hth
is that happy to help or hate to hate?
 
@Ell The guy tried to keep his answer even after the OP changed his requirements
 
hang the heretics
 
And replied everyone that pointed it out with "bullshit", "what the fuck it's supposed to mean" and implied they're idiots
By "the answer", I'm referring to this trainwreck
Dec 3 '14 at 11:30, by Park Young-Bae
0
A: Is there no built-in way to compute a power at compile time in C++?

Cheers and hth. - Alfthere's <<. [[[[[[[[[[[[[[[[[[[[[[[[[[[[[

There's no doubt that was toxic behaviour.
 
4:00 PM
@Griwes while I agree that changing your name on git should be possible non-destructively in some way, I just find this claim weird:
> This has personally affected me. I am now having to distance myself from a large and popular Open Source project that I co-founded and which was at least partly responsible for me getting my current job.
 
Alf seemed okay prior to his suspensions. But it went downhill fast afterwards. Not sure if that was really true, but just my impression of him.
 
the author had to distance themselves from a project because their preferred name changed?
 
in fact, he wrongly assumed that OP only wanted pow2 by the code snippet, where everywhere else OP asked for a power function
 
@Mysticial perceived injustice of suspensions might make problems worse?
@unordered_meow lol ]]]]]]]]]]]]]]]]]]]]]]]]
 
@orlp Frankly I don't see a point. You put your current information there - it's a piece or, err, historic data vOv Don't want that there, don't put it there. As simple as that.
 
4:03 PM
@Griwes Would these people also complain they can't modify their name at birth?
It's just bad
 
@Griwes The point is that a commit has an author. Most authors have a name. That name is not necessarily unchanging. The system should support name changes.
I do find the perceived effects from the lack of name changes exaggerated
 
@orlp The author info identifies the person for who they where when they made the commit.
That data is saved in the commit, and the commit is timestamped.
I don't see a point in changing that.
 
@Griwes Because who they were isn't interesting information. Interesting information is who they are.
The only point of the author is to provide a point of contact to the author of the code.
and link it to other commits that author has made
 
Let's say someone was using a company email, because he was working on a project while working at that company.
He stops working there, and... changes his email... and now you don't have all the information.
 
exactly!
 
4:07 PM
And that is wrong.
 
so it should allow you to change the author (email)
 
Because suddenly you can't tell who that someone was, when he introduced the most serious backdoor in your program ever.
"Nah, just some guy."
 
Sure you can? Just track name changes in the history like anything else.
 
(Yes, this is a case constructed to match my point. Yes.)
@orlp How?
 
Git should just use some author UUID (or maybe a public key) attached to every commit.
Then inside the .git you have some AUTHORS file that links ids to current names / emails.
 
4:08 PM
This would be possible, but would require upgrading authors to first-class entities
 
your e-mail adress is the unique ID
 
@orlp Also... then it doesn't fix the "problem" from the original post.
 
@Mr.kbok and that's bad design
 
(The old name being visible.)
 
you can change your name in git, that doesn't change your identity.
 
4:09 PM
@Griwes that portion of the post I do not agree with
 
@orlp Why should it be?
 
It doesn't change the thing the author of that post was arguing against.
 
@Mr.kbok because emails change
 
And everything else doesn't matter.
(Well, that also doesn't matter. vOv)
Also watch out.
 
@orlp You need an ID at some point. What do you propose?
 
4:10 PM
@Mr.kbok scroll up ~10 lines
 
A file tracking committers will be patriarchal.
Because then you can tell when someone changed their gender!
PATRIARCHY!
 
I do not agree with the part of the post that assumes an implicit right to be forgotten in terms of what your old name was.
 
@orlp So you have people's names and e-mails in the git history? How is that different??
 
Hmm. I'm taking a long trip on a train tomorrow.
 
Any comfortable with testing here?
 
4:11 PM
Maybe I should spend that trying to fix my linux installation.
:D
 
Can someone go over my code?
 
@Mr.kbok that if your email or name changes you can update the values to the most applicable recent value
 
$0 lol
sorry :(
 
@orlp I really don't see a point in being able to go through the list of changes by the same person.
 
@orlp You can change your name/adress in git if you want. The old commits won't change, that's all.
 
4:11 PM
but if I post on SO, do you want rep?
 
(As opposed to the same person acting on behalf of the same entity.)
 
what about answer rep? lol
 
@Mr.kbok then you can't list by author anymore, or track previous commits of the same author
 
@Griwes Redirect your old e-mail adress to the new one and voila
 
okay, that's fine
 
4:12 PM
@Mr.kbok also, if someone uses a new email address
 
@orlp You change your name IRL; does that magically change your signatures on all the old documents ever signed by you?
 
@Mr.kbok you can't contact them at their old anymore, if that's still listed in the commit
 
@orlp Just add an annotation to the first commit with a different name "author used to be oldname@oldaddress"
 
@Griwes entirely irrelevant
 
@orlp If you change your email and don't connect the old address to the new one, then you suck.
 
4:13 PM
@Griwes did you ever possess and / or used a .edu address?
 
@orlp I just said you redirect
 
You know what isn't splendid? This question... — Borgleader 9 secs ago
inb4 flags (but i couldnt resist)
 
Okay deal @ScottW, I have some ribeye
 
@orlp Mine is attributed 4life
 
@orlp Err. I never used those to sign my git commits.
 
4:14 PM
@Mr.kbok a ton of papers have .edu's listed in them that are no longer active
exact same issue as this
 
lol
 
Or, I'm not using accounts that I know to go away soon, outside of my control.
@orlp Then those people suck donkey balls. vOv
 
it's not giant. It's more of a SO question than CR
 
Slap two addresses onto the paper, ???, profit.
 
don't get me wrong
 
4:15 PM
@orlp Anyway just add an extension to the git commit "author name/adress changed"
 
I don't think that the fucking naming in Git is patriarchial
 
the tests pass but the test doesn't hit where I need to go
 
I'm not even arguing that Git SHOULD change (as this is backwards incompatible)
 
.edu or company emails are known to go away at some (rather close) point.
 
I'm just saying that it could've been better designed with name / email changes in mind
@Griwes how long will gmail last?
or hotmale?
yah00 mail?
 
4:16 PM
@orlp You are speaking to someone who is a serious person and owns a personal domain.
 
ok thanks
 
git has been designed with persistent e-mail adresses in mind. If you choose to use ac58fe@trashmail.com that's your problem
 
@orlp Virtually every service I use daily is set to mail me at griwes at griwes dot info.
Some older accounts still use my gmail address, but... that'd be accounts... older than... like what? 4? 5? years.
 
@orlp Chill out, no one cares if the author of a 10 year old commit can't be reached by e-mail
That's a non-issue
The whole persistant name in git thing is a non issue anyway
 
4:19 PM
> All the best and a friendly smile.

Take care,

Luz

Spotify Customer Support
 
Hey. When did my quote disappear from the room description? :(
 
@caps TIL spotify customer support doesn't know two blank lines come before the final greeting
 
@ScottW :(
 
@orlp And they think "All the best and a friendly smile." is a good way to close an email.
 
@caps It's arguably better than "All the best and go fuck yourself."...
 
4:20 PM
@caps "I love you caps please marry me / Luz / Spotify Support"
 
@Mr.kbok that's patriarchal
2
you assume luz would be cowsexual and cows are mostly kept my MAAALEE !!!! farmers
 
@Griwes Wasn't there a Twitter incident that demonstrated this is a bad idea?
 
@orlp Just don't have a closing salutation at all.
 
@caps hrm, I prefer a warm, personal and friendly salutation tbh
the perfect example is "Sent from Windows Phone 10."
 
@orlp marriage is a patriarchal construct anyway
 
4:23 PM
You can sign commits.
There.
 
@R.MartinhoFernandes Can I sign your tits?
 
@orlp "Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!"
 
@orlp (source)
 
@Mr.kbok lololololol
 
4:26 PM
> write a "cover cover" letter
 
@Mr.kbok I don't agree with this point though "Don't tell me about one of the requirements of the position and then tell me that you don't want to follow it."
 
@orlp @sbi doesn't agree either.
 
I'm fairly certain that 90% of all job openings are filled by people that do not match all of the requirements of said job opening
"15 years of Windows 10 experience"
"Entry level C programmer with at least 5 years of experience in C driver writing "
"Must be fluent in C, C++, English, Portuguese and Klingon"
I'd rather be honest upfront in my email for a job opening what I do and do not fulfill, than make them guess how much I lied in my application letter
 
@orlp He's right, it's just the wording. Most requirements aren't actually requirements.
 
4:32 PM
Oh man, the questions today... jeez
homework season is in full swing >.<
 
@Borgleader It's back to school already?
 
for some
a lot of indian universities have started already
 
@Mysticial I think its end of semester for some
fall semester starts 3-4 weeks from now for us
so i would assume summer semester to end right about now
 
Fuck, wrong window.
 
4:38 PM
Also fuck, misspelled it again.
 
clicker images?
:P
 
alias dicker=docker
 
I don't want to get used to that.
 
Just like #define retrun return
 
4:40 PM
Better do that on you editor.
 
@R.MartinhoFernandes s/on you/in your/ ?
 
Hey guys, not sure if you are comfortable with bit shifting but if I had hexadecimal value of 0x7E and I want to shift it right by 8, then use Not operator what will it be? I tried those calculators online but I keep getting different values (like -1 and 14F for the final result).
yes 1
 
4:57 PM
0x7E << 8, done.
 

« first day (1756 days earlier)      last day (3193 days later) »