« first day (2572 days earlier)      last day (1231 days later) » 

5:00 PM
:-0
 
@cigien Quick update on that floating-point remainder thingy... If you're compiling for x86 on GCC or ICC with -ffast-math, std::fmod(x, 1.0) == 0 is likely more efficient than std::modf(x, &temp) != 0, as the latter calls a library function whereas the former gets transformed directly into x87 instructions. Sadly, on Clang and MSVC, both are transformed into calls to library functions.
I'm not sure if there's an efficiency difference between the corresponding library functions.
 
Huh, that sounds odd. I want to take a look now. -ffast-math is not on, even at -O3 right?
 
No, it's not turned on by default.
It's unsafe, you see. Denormals, you see.
 
Oh, right gcc/icc playing fast and loose as usual. I seem to remember an SO post about this, now that you mention denormals. duh.
 
@cigien What do you mean? You gave them permission to play fast and loose with -ffast-math!
 
5:06 PM
Indeed. But it's always the programmers fault anyway ;)
 
@cigien The programmers of the compiler
 
True. Still programmers. It's programmers all the way down, I've heard.
@CodyGray Ha, that's funny. And still in production, it seems.
 
@cigien or the programmer of the compiler-compiler 😛
 
A summer or two ago, I gave an intern the expected a stern lecture about assuming they'd found a compiler bug when their code wasn't working. Only to later discover, after looking at the disassembly myself, that they had actually (completely inadvertently and unaware) stumbled upon a regression in the code-gen for a particular version of GCC targeting ARM...
 
I'm sure that intern will remember you fondly for that.
@Turing85 Indeed :)
 
5:10 PM
He will, because he sat there and watched me read the ARM disassembly with his mouth agape.
 
Hey, see, you do like hand-holding.
 
I do actually know how to teach. I like to think I'm pretty good at it.
(We didn't hold hands while looking at the disassembly.)
 
I find you useful to learn things, that I can say.
@CodyGray Then you're just doing it completely wrong.
 
That may well be
Oh, sorry, I had misremembered. It wasn't GCC ARM. It was GCC for Atmel (which I think is AVR?). It was related to the semantics of volatile. Which he was actually using correctly, unlike everyone who tries to use it for multi-threading.
I would edit my original message, but some people get snippy about that and start whining about abuse of moderator privileges ;-)
 
I think Atmel does various things.
 
5:16 PM
This was a tiny little Atmel processor. I forget the exact model number. But it was integrated onto a flexible sensor network, so it was picked to be small and powerless.
It had an FPU, though. Lucky intern didn't have to figure out what fixed-point math was. That's not something they seem to teach CS majors.
 
@CodyGray Actually, it does make me uncomfortable. Not that I think any mod would care enough to retroactively change chat messages, but the fact that y'all can do it is odd. I'm not sure why I feel differently about this relative to all the other powers y'all have that I'm perfectly comfortable with. I'll have to think about that.
 
(Although, if I judge by the rest of the interns I've had, they don't teach CS majors how to write for loops, either. So maybe that's unfair to the curricula.)
 
You pull all your interns from US universities I presume?
 
@cigien No, I agree, it's somewhat concerning, especially the fact that we can edit other people's chat messages. As with editing comments on the main site, it's mostly concerning to me because there's no public revision history showing what changed. So yeah, because of that, we try to do it sparingly, if at all.
In chat, it happens because I'm intending to use the standard editing window, but the system doesn't actually restrict me, so I never know for sure when I've exceeded the bounds of what a normal user could do.
 
Wait, what? you can edit other users' messages? To clarify, I'm very surprised. I think WTF is the right sentiment.
 
5:19 PM
Yes, all from US universities, in masters-level programs. Some had done undergrad in other countries.
Yes, of course. :-)
I mean, say your surprise had resulted in an outburst of an expletive. Why shouldn't a mod be able to censor that, preserving the rest of the message?
 
Fair. My initial thought is to delete the message if it has obscenities. What profound wisdom would the message have that needs preserving?
 
You just never know.
 
@CodyGray The chat revision history is public, but most people don't go looking for it. If the message is later deleted, then it's private to the room's ROs and moderators. Moderators can purge the history, which then makes it private, even from moderators.
 
@CodyGray I suppose. I should stop being so surprised by all the powers y'all have at some point :p
 
@cigien Did you know we can post answers to people's homework questions?!?
 
5:23 PM
Terrible. Abuse of the system if you ask me ;)
 
Absolutely.
 
@Makyen How? Is there a help-page somewhere? I haven't noticed this feature.
 
I never used chat until I won a moderator election, so I don't actually know what the mod view looks like vs. the regular user view.
 
@cigien The popup for the message has a "history" link.
 
(only when it's been edited at least once)
 
5:25 PM
But I can only see mine.
Oh, no I see it now. That's super cool. Thanks Makyen.
 
@CodyGray Hmmm... then I must have a userscript which adds it, because I see it in all of the popups, even if never edited.
@cigien np
 
I think history is always shown from the transcript view, but not from the room view
 
@CodyGray Yep. That looks like the default behavior.
 
@CodyGray Actually, I have had mods for other communities (not SE related) express surprise we can do this.
At least in Germany, that appears to be uncommon; you'd either get to delete or let it stand as is.
 
5:42 PM
@BaummitAugen I think that's because limitations on how the database was through out. In SE every post is a revision.
 
Maybe.
The history is probably an important factor so we can't put words in people's mouths.
 
I intend to answer the question as soon as it's reopened.
 
@Joshua But would you not just be guessing at what the OP wants to do? I was one of the close-voters on that question and I did so because there is no clear demonstration of what the problem is (classic no MVCE).
 
5:59 PM
@Joshua Please see How and why do I need to format my cv-pls (and other requests)? : other requests for the request tags which we prefer. In this case, it would be reopen-pls.
 
@AdrianMole: I'm not guessing. I recognize exactly what the problem is having made the same mistake myself many years ago. He wrote "registered as a callback handler" which is plenty.
 
@Joshua OK - but that would be down to an SME with your level of understanding. To me, the question is in need of more details. But I accept that you have the right to differ.
 
6:14 PM
@AdrianMole: In this case, I happen to know that creating a MinRe is too much work. The problem will not reproduce on a short example unless you already know what the problem is and therefore don't need to ask the question. Attempting to bisect it will fail bisection.
 
I can see that an actual 'working' example would be difficult; however, some details on the nature of the routine, from both the C# and C perspective would be what I would expect.
 
@AdrianMole: He passed a delegate to an unmanaged function, kept a reference to it after the function returned, used it later, and doesn't know why that crashes sometimes.
 
@Joshua Hmmm ... I'll give you the benefit, then. But the OP doesn't mention "sometimes" or "registered". (Though maybe I'm now being pedantic.)
 
@Joshua I gave you the benefit of the doubt and voted too. I guess the other option might be for you to have written and self-answered a clearer version of the question and linked OP to that, providing the benefits of an answer, but to a better quality question
 
6:33 PM
@AndrewCheong No, I don't think that could be migrated. There's no code in the question.
 
@DavidW, @AdrianMole. Answered. Though DavidW's alternate proposal was a good one.
 
Since I already have my two front teeth, all I want for Christmas is the "not a real question" close vote reason back.
6
 
^ +1
 
6:59 PM
@AdrianMole Don't you have SD privileges?
 
!!/amiprivileged
 
@AdrianMole ✓ You are a privileged user.
 
Nuked.
 
Does the added disclaimer to this deleted answer make it ok now? Or is it still promotion?
 
@cigien I made another edit. looks fine to me now
 
Thanks. How does undeleting it work? Just vote, or flag?
 
Moderator deleted: Only a moderator can undelete.
 
that ^
flag for a mod
 
7:50 PM
Flag then. Got it, thanks.
 
You can try voting to undelete, just for experimental purposes.
 
"A moderator has deleted this post and it cannot be undeleted" :p
Worth a shot.
 
@AdrianMole Why would one delete a moderator? And shouldn't they say "killed"? =O
 
Hehe. But the question is: If a moderator undeletes a post, can we still vote to (re) delete it?
@tink Do you want the answers on a postcard, or shall I open up a GitHub repo?
 
@cigien Ah yea, I wasn't thinking a migration but for the user to go there if they have a serious question. But I agree, doubtful they would have improved the question.
 
7:57 PM
I see. In general, when given a comment like the one you gave, the OP thinks they can just repeat the same question on codereview. Doesn't go well for them. I try not to make that recommendation myself, unless it's clearly on-topic there, or I'm willing to help with migrating it.
 
@AdrianMole =D ... github all the way ;)
 
I think the folks on Code Review have a script that monitors stuff sent there from SO. If they get 'dodgy fodder', they send their Mafia in here to tell us off.
 
@AndrewCheong I must say, given who you are, it does feel a little strange to be giving advice :p
 
Please treat me as a no one, and no, it's good advice, I totally believe that happening.
 
Who said that?
 
8:01 PM
@AndrewCheong Duly noted, I'll try not to be biased. I was very sure about this one, so I didn't worry about it too much :)
 
8:19 PM
If I agree a question must be a duplicate, but don't agree with the proposed one... I guess the onus is on me to find a better one, isn't it.
 
It is.
 
Sigh. Duplicate queue, I feel the same about thee as I did 7 years ago.
 
Or you can ask in here if an SME knows of a better one.
 
Nah, I'm just being lazy, I'll find it.
 
Lazy - that's good. Have you ever thought about running for moderator? xD
 
8:23 PM
Haha, if that was the eligibility criteria, I'm afraid I'm overqualified...
 
I just wish I could VTC with multiple dupe targets.
 
You can - if you have a gold hammer.
... sorry, I thought that you'd have one, with your rep. level.
 
Nope, no hammers yet.
 
@Joshua you can ask a gold badge holder here to edit the dupe list.
 
@rene - Hellooo, my friend :)
 
8:35 PM
@AndrewCheong Hi! Good to see you around!
 
8:46 PM
@cigien Given the excellent answer (specifically addressing the BOOST_ASSERT issue), would you consider reopening this?
 
9:06 PM
@AdrianMole It's a very good answer, agreed. Better than the ones on the target in fact. But I'm not inclined to reopen or swing the target. I'll see if I can get the answer moved to the target first.
 
IMHO, it's not asking the same question (as clarified by OP).
 
Because of this claim "anything that takes a boolean and expects only 0 or 1 is wrongly implemented" I guess?
 
They're asking about why boost does it that way - a point answered well by S.M. The linked dupe is more about what the doubled operator does.
 
Ok, the boost specificity is fair. I've added the tag, and reopened.
 
9:18 PM
It's annoying that the OP says "for example ... boost" but I'll try not to lose sleep over it ;)
 
Both Q and A could benefit from some TLC editing, I agree.
... I'm now officially in lazy mode.
 
@AdrianMole Was that an offer? I'm not up for editing at the moment. Unrelated, what's with all the voting on the question?
 
Those downvotes do seem a bit harsh. But, you know the mentality of the C++ regulars as well as I do. ;-P
 
I'm biased by their love of the language, but yeah, I'm starting to realize a lot of them are crankier than I'd like :(
Hmm, I've had 2 of my closures disputed today, and both objections were right.
 
Ha! Only three more disputed closures for the "Cranky" (silver) badge.
 
9:26 PM
Ooh, I like shiny badges :D
 
... the bronze precursor is called "Oddity" and the gold medal version is "The Cody".
 
Poor Cody, everyone piles on to them.
 
Couldn't happen to a nicer moderator.
Anyway, I've edited the Q ... now to correct the English in the answer.
 
I see you edited the post. Why not remove the "for example ..." bit? It's unnecessary.
You seem to have it covered. I'll edit later if I feel it needs improvement.
 
I've now edited the answer but I'm a worried by the very last bit (BOOST_LIKELY). There was definitely an unbalanced ( but it looks like there's a missing : clause; I don't use boost - would you mind having a quick look?
 
@desertnaut not sure how much time you'll have but a post that you closed got re-posted on MSE meta.stackexchange.com/q/357533/158100 do you maybe have an idea if that might fit on an other SE site? (cc @cigien @bad_coder)
 
10:16 PM
@rene thanks; cannot see what more I can do beyond leaving a comment to remind that the comment in the initial SO question included a link with such alternatives
 
Okay, fair enough. Thanks for checking
 
@rene thanks for the heads up
I always include the phrase "please notice the intro & NOTE in the machine-learning tag info"
The linked intro says "General questions about machine learning should be posted to their specific communities. "
The note says "NOTE: If you want to use this tag for a question not directly concerning implementation, then consider posting on Computer Science, Cross Validated, Data Science, or Artificial Intelligence instead. Otherwise you're probably off-topic"
i.e. a full list of alternative SE sites, with links
... what more can be said??
 
10:30 PM
@desertnaut too much NOTE will kill you ....
there is a song in there, somewhere
 
@halfer You've spoiled it now.. tsk tsk :)
 
@HovercraftFullOfEels I'm SmokeDetector, a bot that detects spam and offensive posts on the network and posts alerts to chat. A command list is available here.
 
!!/coffee HovercraftFullofEels
 
@AdrianMole brews a cup of Macchiato for @HovercraftFullofEels
 
10:40 PM
@AdrianMole: thanks
 
Welcome.
... the power of SD privileges knows no bounds!
 
@AdrianMole Trying to tell SD that stackoverflow.com/a/65173807 is a true positive for spam
@AdrianMole: never mind
 
The !!/report <link> should work (unless already reported). Or you can 'reply' to an SD post in here with various confirm/deny options, like ...@sd spam.
 
@AdrianMole: thanks. need to continue experimenting
 
Indeed ... takes a bit of time to get fully up to speed.
 
11:11 PM
@Scratte Darn it, so I have! ;-)
 
@halfer I just wish one could retract edits, or disassociate from them.
 
@Scratte I don't think I've ever wanted that, since I think editors should be accountable. What advantage would disassociation give us? (We can already retract by rolling back, though of course the record of the changes are still attached to the question).
 
@halfer Isn't that the same with Answers? Is just removes it from the profile. Why can't one do that with edits?
 
user10957435
11:27 PM
@HovercraftFullOfEels I believe the command you're searching for is report
 
@Scratte That sounds like it should be a Meta question/RFE. From a legal standpoint, having some method of being able to disassociate yourself from the content is a requirement of the CC BY-SA licenses. From that, I'd assume that SE can do so on request, as is done for disassociation from a post.
 
@Chipster That is what I in fact tried, but SD stated that it was already reported
 
Perhaps that would be a nice meta. But I'm not having another post edited into something that was never anything I'd ever say, so I'm not inclined.
 
sigh
 
user10957435
@HovercraftFullOfEels Ah, must not have scrolled back that far in the transcript. My bad.
 
11:32 PM
@Makyen Heh.. I noticed someone else having to especially mention that what they asked was edited out of the post. Then something else was added. I found it to be a very strange edit, and only the mention made me go check out the first revision.
 
@Scratte A) As the author, you're given considerable leeway to have the post be what you intended. Yes, other people can edit, but so can you. B) If the content really ends up being something you object to, then you can always ask for disassociation from the post.
I'd note that the substantial majority of edits are helpful, and usually don't change meaning (unless it appears the words said something other than what the author probably intended). The vast majority of edits are at least intended to be helpful.
 
@Scratte Fair enough. I don't think I'd use it, but I'd encourage you to put the idea forward on Meta, especially since @Makyen gives a good (legal) reason why it should be implemented.
 
@Makyen I spend a fair amount of time before I post. I really don't want to have to fight to have my intent on it. My last one was a disaster. I guess it still haunts me.
 
@Scratte A certain amount of robustness on SO or MSO is probably helpful. I say to folks "you are not you post" just as I say to colleagues (during a code review) that "you are not your code".
My work on SO is very rarely edited, but when it is, I try to consider it neutrally. Unfortunately the few I do get are not always native English speakers, and the result is stilted and awkward, and usually needs rolling back.
 
I'm code, therefore I'm spam. ?!?
 
11:38 PM
@halfer It's voted on as per the text in the post. The words in it will have other users think that is my opinion. When, in my opinion, the new text makes me want to downvote my "own" post, I get really annoyed with it. Ad it portraits me as a user that posted it very wrongly.
 
@halfer It may be (probably?) something which is already available through the same methodology as post disassociation (i.e. manual requests to SE). It would seem reasonable that they could do it, if it was requested. It's probably not something which they do routinely, as it's likely less desired than disassociating a post. It would be a good idea for the process to be documented, which may just be adding a not to the Meta on post disassociation.
@Scratte And... there's a rollback button on each revision.
 
@Scratte It depends on whether you think it is a good edit. If (a) you have given the edit fair consideration and (b) you think it is a bad edit, then roll it back.
 
{Shiraz}
 
user10957435
@Scratte If someone edits your post, and it's so bad you want to down-vote your own post now, I think you should probably just roll it back.
 
@AdrianMole I don't know what you're talking about. :) Thanks.
 
11:41 PM
^ ?
 
(There are of course bad edits, there are bad editors, and there are wilfully bad post authors who deserve as much editing as the community can muster. Getting post authors to make judgements here is an exercise in self-awareness, and not everyone has that).
 
Some are born to be editors; some learn to edit; and others have editing thrust upon them.
 
@AdrianMole Is that a question? ;-) I have an (English) whisky in my hand presently.
 
^^ Shakespeare
English Whisky - why not? There are one or two reasonable Welsh whiskies, too.
 
Rollback wars are not pretty.. I just delete my post instead. The problem is when the post is a Question. Then that option is a bit tricky. Not posting has not been giving me any grief :)
 
11:44 PM
@AdrianMole Indeed - Penderyn make some fabulous finished whiskies, and I believe there is another Welsh distillery being set up now.
 
@Scratte Not eating will never give you food poisoning ... but is that a reason not to eat?
 
@Makyen Yes, that sounds like a reasonable approach. Getting SO to take the licensing conditions seriously has been quite successful of late, so I would wager that would be considered.
@AdrianMole Not drinking whisky will never give me a headache, but I'm sticking with the whisky.
 
user10957435
If the edit is bad, you're justified in rolling it back. If it causes an edit war, then I'd imagine a mod flag is justified.
 
@AdrianMole Yes :) If you're in a place where everything will make you ill, I'd say "Do not eat anything here. No matter how weak you feel, getting food poisoning will make it worse"
 
Is SO that toxic?
 
11:53 PM
No. There are lots of very good editors here. I've even had some of my posts edited by them, and I was happy with those. There are some.. not as good, that I'd just rather not have interact with my post. But I do not see how I can avoid it.
 
user10957435
@AdrianMole Don't suggest using printf() on a C++ question. I hate you now ;)
 
@Scratte if it is your own post, I think just rolling it back resolve it?
 
Maybe I'll start a campaign!
 
user10957435
Joking aside, that be worth making your comment into a proper answer on that question.
 
I don't dare!
... yet.
 
11:55 PM
@Vickel Maybe, but I've also seen some rollback wars, and I guess I feel it's better to just accept defeat or something like that.
 
@Scratte aahhh not really, it's your post, if you don't agree with certain (part) of edits either rollback the whole thing or edit out the parts you don't agree with
and ^ it's not about defeat at all, it's about making better content :)
 
@AdrianMole there are definitely tags that you don't post on during the daytime for a few users
 

« first day (2572 days earlier)      last day (1231 days later) »