« first day (2259 days earlier)      last day (1547 days later) » 
00:00 - 21:0021:00 - 00:00

9:03 PM
@Dharman I was JL2210 before some privacy issues arose and I decided to name myself after one of my favorite areas in Pokemon Yellow.
 
@S.S.Anne #nostalgia
 
Privacy issues with “JL2210”? That’s a new one. You can’t get much more anonymous than a couple of letters and numbers.
 
@CodyGray They're not exactly a couple of letters.
 
@CodyGray If he uses that username and/or avatar on other websites/communities, it suddenly becomes much less anonymous
 
@S.S.Anne Back when Pokemon was simpler... and monochrome...
 
9:05 PM
They’re exactly two letters :-)
 
@CodyGray They have more of a deeper meaning than that (whispers initials)
 
Sure, I figured. But dang, there are a lot of combinations of names that have the initials “JL”.
Or… we finally found you, Jay Leno!
 
I didn't think there were people with both a sense of humor and also knowledge of C
4
 
How’s life after NBC treating you? Got any new cars recently?
 
Well, that and I use it for GitHub and have been getting a lot of spam recently.
 
9:08 PM
@zbee You were wrong, you c.
 
@zbee Absolutely! I also know x86 assembly. Occasionally, even other humans think I’m funny.
 
@CodyGray He was driving around with Elon Musk earlier today in the cyber truck.
 
Should this be tagged with stackoverflow.com/q/59946078/1839439
 
@Dharman Is it about Ruby? (I wasn’t sure either, so I tagged it as [closed].)
 
@Dharman lol @CodyGray instruction sets and jokes? I find this unlikely
Now see, I typed that, and then I see your latest message haha
Thanks for y'all's help earlier
 
9:11 PM
That works too, I guess. I wasn't going to close it because it asked how to start debugging, which in my opinion is not off-topic as such.
 
The x86 ISA is kind of a joke. But it makes assembly programming more fun.
@Dharman No, that isn’t off-topic, but the question is not self contained. It doesn’t include all the information needed to answer it.
 
@zbee I've Ceen a lot of people that think that. I don't blame(them).
 
Now that you point it out, it is a bit obvious that the union of C programmers and people who #include a sense of humor is empty.
(Are puns considered humor?)
 
I think so, yes
 
I'll punt on that one
 
9:19 PM
@Dharman Can you clarify why you don't think the function should be used?
 
@CodyGray humor() == 0.1572
 
@zbee There is no SQL code it the question and even if there was OP should use prepared statements instead. This functions is almost useless.
 
Do you mean in practice, or in the question? Because in practice, the next step is certainly inserting the order into their database; they should be using prepared statements, but I think that would be more useful information that they should not be escaping the string
I am curious about what the point of it is, given prepared statements have been around since it was
 
@S.S.Anne Is that like the old joke, where folks are sitting around calling out numbers and laughing, prompting a newcomer to ask what is so funny. He is told that they’re telling jokes, but everyone knows the jokes so well that they don’t bother retelling them every time; they just reference them by number. So, the newcomer tries his hand at it, calling out “number 49!” Nobody laughs. Puzzled, he asks a veteran why. He is told, “it’s all in the delivery”.
 
Is that implying then that the numbers have indeed become the jokes themselves?
 
9:25 PM
@zbee I would like to know as well. There are so many useless abused functions in MySQLi. Honestly it is a terrible extension full of bugs, poor design decisions and bad functions.
 
2^31-1+1!
 
Yes. I think the original version I heard had everyone in prison, so they’d told the same old jokes so many times that they knew them by heart. They assigned each of them numbers for convenience. Clearly, these people were C programmers, who were passing jokes via reference.
I never asked why all the C programmers were in prison.
 
@CodyGray I heard a different version of that. In that version, the newcomer calls out "45761", and the assembled audience start hooting with laughter. Tears roll down cheeks, and one old man can hardly breathe for mirth. The newcomer asks why this one was so funny, and the answer comes back - "Ooh, that's a good one, we've not heard that one before".
 
@CodyGray There are no references in C.
 
@halfer Haha, yes, that works too. I think I have also heard that version.
@S.S.Anne What do you call pointers? They’re a way of passing arguments by indirect reference.
There are no non-nullable references in C, but they’re still references.
Ironically, they’re implemented as pass-by-value, since everything in C is passed by value.
 
9:33 PM
FWIW, I really like pass by value semantics.
 
@Dharman Does that actually need code? Looks like it is asking about an issue with a tool.
@NathanOliver Especially when they’re used to achieve pass-by-reference?
I got into the habit of passing everything but built in numeric types by const-reference in C++. Apparently move semantics mean I can now stop doing this, but it’s too hard to reason about most of the time.
 
@CodyGray Yeah. It's nice to have references that you can decide refer to something else. I like C++'s references, but sometimes they are limiting.
 
@CodyGray I feel like there is not much to go on. No real error message, no code, no payload. I think it is difficult to give any useful answer there.
 
@CodyGray It's a tough choice to make. Really everything should be written using perfect forwarding, but that makes the code only useable by TMP experts.
 
@NathanOliver Sometimes, where I’m passing around large vectors, I’ll provide two overloads, one taking a copy and one taking an rvalue reference, but it leads to a combinatorial explosion of overloads in all but the simplest of cases.
I am not a TMP expert. I have to look up the syntax for std::enable_if almost every time...
 
9:39 PM
@CodyGray That's why you should use perfect forwarding. You can write one function that covers all the combinations. It's just ugly.
Hopefully concepts will fix most of it
 
Are we actually going to get concepts?
 
Yep. They are in C++20. (not that it has been finalized but it is in for sure)
 
I think the real solution is just to fix optimizers so they can see though the way args are passed. Move semantics were a poor attempt at doing this, where what should have been behind-the-scenes details leaked into the source code.
 
The conception of concepts is really a concept.
@CodyGray std::enable_if<bool, typename> example std::enable_if<std::is_integral<T>, T>
 
Not sure what the colon is doing in there.
Also, you shouldn’t use enable_if as the return value. You should use it as a template parameter
 
9:45 PM
template<parameters, std::enable_if_t<boolean_expression, bool> = true> is the form I use for SFINAE
 
@CodyGray I never could figure it out and enable_if_t isn't available until C++17 which Clang 3.8.1 doesn't support.
 
@NathanOliver Same, except I use int in place of bool. Not sure why. I think it’s the form I originally copied from an SO answer.
@S.S.Anne That’s OK, you never need the _t versions. They’re merely a convenience that avoids needing to append ::type to the end.
 
Doesn't really make a difference. I just use bool so I can use true to remind myself this only happens when enable_if is true.
 
@NathanOliver Yeah, I actually think that is a bit clearer semantically.
 
@S.S.Anne FWIW you can add it yourself by adding template< bool B, class T = void > using enable_if_t = typename std::enable_if<B,T>::type;
 
9:50 PM
I was super excited about concepts as a way to improve compile-time error checking (which is my holy grail: moving everything from run-time checks to compile-time checks), but I recently realized I’m already doing everything I could do with concepts via static asserts inside the function body.
 
Yeah, really they are just syntactic sugar for what we should already be doing. It'll help make new code smaller, but I wouldn't rewrite a code base to use them just for the sake of using them.
 
Speaking of run-time checks, would anybody be interested in a C library that catches undefined behavior at run-time?
 
@S.S.Anne I think the world would be interested in that.
 
^
 
9:53 PM
@S.S.Anne That kinda exists, in the form of pathological compilers. But yeah, would be very cool as a general solution. I’m not sure it is really possible, though.
 
@NathanOliver It's very much incomplete and can't handle a lot of cases but works for obvious stuff like abs(INT_MIN); and div(INT_MIN, -1); and (assert)(0);
 
How do you implement this without reflection? You link to your version of the standard library instead, which contains assertions for all UB you’ve thought to include?
 
@CodyGray Now I'm picturing C programs playing a copy of the Mulan song as she gazes into a still pond
 
@CodyGray It contains checks that fire off whenever, even if compiled with -DNDEBUG.
 
@S.S.Anne But otherwise implemented as I imagined? I don’t see how this would work. The UB happens before your code ever has a chance to run.
 
9:58 PM
stackoverflow.com/q/59947193/1843510 This question belongs on codereview SE, however that's not an option for off topic > belongs on other SE site, and other options don't fit the question. Do I vote to close as generally off-topic?
 
@CodyGray It reports an error and abort()s, so it at least notifies the user.
 
@zbee You can use custom off-topic reason or flag as Needs focus. It is not on-topic for Code Review IMHO
 
@zbee Too late.
 
@S.S.Anne I think you are missing my point. If I invoke UB, it is too late to catch it at compile time because the compiler can compile the code however it wants.
I also don’t know how you catch UB that doesn’t involve calls to standard library functions, like shifting by a value larger than the bit width
 
@Dharman Custom off-topic reason? Is that a progression flag, because I do not have that option
 
10:04 PM
@zbee Ahh yes. 3000
Then just leave a comment instead informing OP.
 
@CodyGray I didn't say it was portable... But I plan (a long time from now) to write a compiler that can do most of the rest of the undefined behavior.
 
Not a fan of flags requiring different levels, that doesn't really makes sense. Thank you
 
@zbee You need to have full close-vote privileges (3k reputation) in order to close for custom reasons. When you only have flagging privileges, you get a "blatantly off-topic" reason that you can choose from, which is effectively the same thing.
Please don't close a question as off-topic merely because you think it would be a better fit on Code Review. Just because a question could be asked on CR doesn't mean it is off-topic here on SO. We do allow questions about how to improve code on SO.
Also keep in mind that CR has very specific requirements for what types of questions it allows; in particular, the code needs to work as documented.
 
@S.S.Anne How does it work, though? Is that a secret?
 
10:13 PM
@CodyGray I write the checks into the code for my standard library and they're caught.
I'll get it to compile and push a commit to github.com/JL2210/minilibc.
 
everyone changing usernames and avatars all the time... :P
 
How is this C++ question? Is there a CPUID API for C++? stackoverflow.com/q/34043709/1839439
 
@Dharman It's not.
 
@S.S.Anne Are you sure, the answer links to a Wikipedia page showing C++ code.
 
I have a question about reviewing. I pass some tests, and failed some others. How worried should I be that some of my reviews might have been wrong?
 
10:27 PM
@Dharman Just because the answer is in C++ (which it is not, it is in C) does not mean the question is. CPUID is an x86 instruction. No correlation.
 
@S.S.Anne Hmmm, I am still not convinced. Could I get a second opinion, please?
 
@S.S.Anne Yes, so, how do you catch UB that does not involve a call to a standard library function? There are myriad examples of this. The one I gave earlier was a bit-shift by more bits than are in the type. That's just a built-in bit-shift operator, and doesn't involve a call to a standard library function, so there's no obvious way that a stdlib replacement could "catch" that.
@Dharman CPUID is an x86 instruction. If the question is just about that, then it should not have the C++ tag. However, if the question is asking how to invoke that instruction from within the context of a C++ program (e.g., using an inline asm block), then the C++ tag is warranted.
In this case, the question doesn't seem to deserve the C++ tag, as there's no indication given in the body of the question that they're trying to do this from C++. Nor is it relevant to answering the question, since the answer would involve merely extracting information from the results of executing the CPUID instruction, which is language-agnostic.
 
Thanks, that makes sense. SSAnne already removed the tag.
 
Yup, and our resident x86 expert retagged, so I'm pleased with that outcome. :-)
 
Yes
Converted to a comment to avoid altogether losing value.
 
I've seen plenty of questions posted as answers since I've started on SO, but this is the first time I've seen an answer posted as a question. What a day it has been
 
You've never seen that before, @Das_Geek? It happens fairly often. Folks want to share something, but they don't realize they need to pretend they're on Jeopardy!
 
@Das_Geek There's more stackoverflow.com/a/34566298/1839439 It never is only a single incident
 
I don't know, "ask a tag" from the other day raises the bar pretty high in my opinion
 
10:54 PM
Ask a tag?
Is that like Quack Overflow?
 
No you're thinking of Stack Overduck
 
@CodyGray yeah
 
@Das_Geek Duck Overstack
 
It was totally Quack Overflow. I lived through it.
 
Duck DuckGoose
 
10:55 PM
Heh. A tag placeholder question. I will never understand why people think tags should be created without questions to attach them to.
 
@AndrasDeak Yikes!
 
@CodyGray Nope, never. Though to be fair I've only been seriously a part of this site for 9-ish months
 
@CodyGray it's the pork futures warehouse of SO
 
I guess so. Hey, there's a taxonomist badge, after all. Gamification is the worst.
 
@CodyGray I don't unless it's inside the library itself. I'm mainly trying to catch the things that I can.
 
11:08 PM
If a user insults a mod in the answer, does it deserve R/A flag?
 
Insults, more like
Though I guess you could chalk it up to abuse because a mod removed a post and they immediately reposted
 
@Dharman Can it be edited out, leaving a useful answer? If so, then no, don't flag. If the answer is irredeemably abusive, regardless of who it abuses, then yes, flag.
You...might still want to let us know with a custom flag, though, even after editing, depending on how bad the abuse is.
 
That was what I was gonna do, once the UTC day ticked over and I got my flags back
 
M--
@dbc @CodyGray C'mon Cody, let us vote, lol
3
 
@M-- LOL I can post some more if you want
There's thousands of them out there
 
11:14 PM
@M-- It's like the game Speed. You need to up your game.
 
M--
@CodyGray Look at my last cv-pls (I am not loosing this game, I already lost)
 
Gotta go fasts
 
M--
@Dharman Nah, there ain't that many. you are just too strict
 
@M-- At least find a recent complaint? That one's 7 years old now...
 
M--
@CodyGray around the time @Dharman joined the community
 
11:21 PM
Are you saying that I am the problem?
 
Coincidence?
 
@Dharman if you're not part of the solution you're part of the precipitate
4
 
dbc
TOTVS FLUIG - Como identificar em qual base se está logado? by Jorge Brigliadori is Portuguese and includes a self-answer so maybe it should be moved to pt.stackoverflow.com?
 
@dbc We don't migrate questions in languages that we cannot speak, because we have no way of determining whether they're of sufficient quality for migration. Furthermore, since it is entirely self-answered, there's no real point in migrating at all. The poster can just delete and re-post. The only reason we migrate is to preserve question and answer(s) intact, including ownership/attribution.
 
dbc
OK.
 
M--
11:23 PM
@Dharman I am not saying that; at best, I am implying ;)
 
@AndrasDeak Now I have to go watch some NileRed videos lol
 
M--
@M-- 17 more votes to get a hammer in and close these dupes on my own -- cannot find many questions worth answering though :'(
 
Hello. I'm new. I asked a question a while ago, but don't think anyone noticed.
 
For those wondering, the above message is referring to this message
 
@Scratte You should always be worried if you are making wrong decisions.
 
@Scratte Stack Overflow gets a lot of questions. You need to be patient to give experts who may be asleep time to find your question. You can increase the odds it will be seen by tagging it appropriately. Tags are how experts find questions relevant to their expertise to answer.
 
@CodyGray They're talking about a question they asked in this chat; see my message
 
Rob
11:57 PM
@Scratte I only see one failed audit from you, but yes, you did make the wrong decision there. It was an answer which only provided a link, so you should have recommended deletion
 
If it’s been more than 2 days with no answer, you can start a bounty on the question, which will feature it and thus attract more attention. But only do this after you’ve ensured your question is clear and properly tagged.
@Das_Geek Oh, oops. Thanks.
@Das_Geek That link doesn’t show me any messages from Scratte
 
@CodyGray: I haven't dared to actually post any questions on this forum yet. So I'm all good there.
 
As an answer to your question @Scratte, you can look at all your previous review by going to your user profile page, navigating to the "Activity" tab, then clicking the "All actions" tab that's underneath all your main stats on that page. You can select the "Reviews" section and get links to all your reviews. Clicking on each one, you can see what others have chosen if that review item has been completed. You can then compare your feedback and see if yours matched
Though I will say be careful about using the popular consensus as the "ultimate litmus test" for seeing if you're right. If you have any questions about a particular review action, feel free to ask here or post on Meta
 
00:00 - 21:0021:00 - 00:00

« first day (2259 days earlier)      last day (1547 days later) »