Timeline for Is it possible for some "Too Broad" questions to be exceptions to the rule?
Current License: CC BY-SA 3.0
35 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 24, 2016 at 15:06 | comment | added | Peter Cordes | It's been re-opened, and has already accumulated on close-vote. I just put a note at the bottom saying "please don't vote-to-close until discussion on meta is complete". If people don't respect that, you may need to lock it again, since it only takes 4 more people. | |
May 24, 2016 at 12:54 | comment | added | Peter Cordes | Thanks, edited. Can you have a look and see what you think? | |
May 24, 2016 at 12:35 | comment | added | Madara's Ghost Mod | @PeterCordes I've unlocked the question. But if I see it getting reopened/closed I'm locking it again. | |
May 24, 2016 at 12:33 | comment | added | Peter Cordes | @Madara: Can you unlock the question at least temporarily? I'd like to make some edits based on all the new information provided by the OP and the professor who gave the assignment. I'd like to get this done before even more people see it for the first time. I'm going to be at my computer for the next several hours, so ping me if you want to make sure I'm ready to make an edit right away after you unlock. (I guess I can even compose one ahead of time if you like, but I wasn't planning to. Let me know.) | |
May 24, 2016 at 7:48 | comment | added | gnat |
@PeterCordes have you seen Open letter to students with homework problems? "Realize also that the answer we give you may be completely wrong for the path that your instructor is trying to get you to follow. Having previously fought through the problem ourselves, we know and understand when one can jump directly from il and when one needs to go through each step of ijkl in a process. Our answers may skip over steps that aren't needed for this particular problem, but may be critical for understanding the next assignment..."
|
|
May 24, 2016 at 0:38 | comment | added | Peter Cordes | Glad I could help. :) BTW, C++ doesn't have "instructions", it has "statements". Assembly language (compiler output) has instructions. | |
May 24, 2016 at 0:24 | comment | added | Cowmoogun | @PeterCordes the professor actually just sent an email that based on how he completed the lab we should only see up to a 17% increase so the way I'm interpreting it is that we can't make any changes whatsoever, that we can only reorder the existing c++ instructions. I plan to clarify with him tonight and I'll post to make sure. I should have had these answers before posting my questions and I apologize for that. I want to thank you tremendously, I was having issues understanding pipeline and caching but that first Agner's pdf has been a godsend. | |
May 24, 2016 at 0:15 | comment | added | Peter Cordes |
@Cowmoogun: Those are all useful details, even though they're not as specific or interesting as I'd hoped. -O0 is really braindead, and easy to predict the asm it will make. And you don't have to worry about defeating auto-vectorization. Multi-threaded with a shared std::atomic counter is still my favourite idea (but non-trivial to implement: I think #pragma omp parallel controls the loop counter for you). The "may not change the algorithm" sounds specific, but isn't really. Can you expand on that from context from the prev. assignment? Would storing RNG results in an array be ok?
|
|
May 24, 2016 at 0:01 | comment | added | Cowmoogun | @PeterCordes Unfortunately he didn't give any specification on optimization so I'm assuming -O0 since we haven't covered compiler optimization options in class. The following are the complete instructions he gave us when combined with the paragraph in my question: "Your assignment is the opposite of our first lab assignment, which was to optimize a prime number program. Your purpose in this assignment is to pessimize the program, i.e. make it run slower. Both of these are CPU-intensive programs. They take a few seconds to run on our lab PCs. You may not change the algorithm." | |
May 23, 2016 at 23:49 | comment | added | Peter Cordes | @Cowmoogun: When you do post your code, posting as an edit to the question would narrow it down, which some people think is necessary. Maybe placating them is more important than potentially invalidating parts of my answer that suggest things you already tried, or are incompatible. Posting your code as an answer would leave the question wide open for other alternatives. | |
May 23, 2016 at 23:48 | comment | added | Peter Cordes |
@Cowmoogun: I didn't expect anything like this either! Did you assignment give any requirements on how the code is to be compiled? Optimization enabled or not is by far the biggest thing, since -O0 vs. _O3 makes a huge difference to how source changes will affect the resulting asm. Also relevant, gcc / clang / MSVC / Intel's compiler? Any other constraints you can add to the question about what kind of source changes are within the scope of this task would help. If you have anything short enough to say in comments, Madara could edit it in, or could temporarily unlock it for you.
|
|
May 23, 2016 at 22:56 | comment | added | Cowmoogun | Hey guys, I guess I'm a little new to Stackoverflow and kind of missed a lot of what happened here. I didn't think my question would cause all of this and I apologize for any rules I broke. I plan to post some of my code tonight to show some of the changes once I figure out if the thread can be unlocked. I apologize I can't answer some of your questions because the lab that was given to us was pretty broad (I.E No specifics of the intel CPU, just I7.) | |
May 23, 2016 at 20:29 | comment | added | Peter Cordes | @Madara: Since you can edit locked posts, I propose a retitle to "Deoptimizing for the pipeline in Intel CPUs". Or maybe "Deoptimizing a Monte-Carlo simulation for ...". (It's really unfortunate that the OP still hasn't clarified which kind of i7, so we can't say "Intel SnB-family CPUs" or "Intel Nehalem"). Part of the problem with the question is the title. A lot of people have made generic C++ suggestions, like using Boost for something, that would be slow even on a non-pipelined CPU. | |
May 23, 2016 at 19:29 | history | edited | jscs | CC BY-SA 3.0 |
http://meta.stackoverflow.com/questions/323603/is-there-such-a-thing-as-an-exception-to-the-rules-about-too-broad-questions#comment347330_323612
|
May 23, 2016 at 19:27 | comment | added | Travis J | @MadaraUchiha - Which is fair. I am a little curious as to what type of conclusion will be drawn as well because I think there should be some wiggle room available for this type of content. | |
May 23, 2016 at 19:26 | comment | added | jscs | Okay, sorry, I did a quick Google of it and saw no matches. | |
May 23, 2016 at 19:26 | comment | added | Madara's Ghost Mod | @Josh that second one actually was a quote, although I can't remember by whom :) | |
May 23, 2016 at 19:25 | comment | added | Madara's Ghost Mod | @TravisJ I don't think there's much to be expanded. I saw the beginning of a closing war, I decided it cut it short, until we reach agreement. | |
May 23, 2016 at 19:24 | comment | added | Travis J | @Laurel - Unilateral decisions are expected to come with explanation from community elected moderators. I would remind you that this is meta, and that the "more info" from the person making the decision should be placed right here. Also note, Madara did include that information in this post as requested, albeit without much expansion - but still I appreciated it. | |
May 23, 2016 at 19:24 | history | edited | jscs | CC BY-SA 3.0 |
Removed quote markup from material that is not quoted.
|
May 23, 2016 at 19:00 | history | edited | Madara's GhostMod | CC BY-SA 3.0 |
added 105 characters in body
|
May 23, 2016 at 18:59 | comment | added | Travis J | Your answer should include why you chose to lock this question. | |
May 23, 2016 at 14:21 | comment | added | Cerbrus | @gnat: To add to the list of problems with that question... | |
May 23, 2016 at 14:19 | comment | added | gnat | @Cerbrus one possible reason that OP doesn't respond to clarification requests is that flood of senseless upvotes from HN lemmings makes them believe that question is okay as is. At score +163/-7 inexperienced user may perceive these requests as boring nitpicking, "so many users like my question, it should be OK then" | |
May 23, 2016 at 13:00 | comment | added | Cerbrus | Run it on a Mac, for example. | |
May 23, 2016 at 12:58 | comment | added | Madara's Ghost Mod | Having OP edit his answer with what he did is always a good move. That's not what makes this question too broad though. It's that there's potentially a lot of things you can do to a program to slow it down considerably. | |
May 23, 2016 at 12:52 | comment | added | Braiam | You know what, most of my canonicals aren't "too broad". They are specific problems, with specific causes and specific ways to solve. They don't try to cover 100% of the cases, just the 99% that most people finds. unix.stackexchange.com/q/155551 unix.stackexchange.com/q/139586 and unix.stackexchange.com/q/205302 | |
May 23, 2016 at 12:52 | comment | added | Peter Cordes | @Cerbrus: The OP did comment twice on my answer. (see my edit of my previous comment) | |
May 23, 2016 at 12:51 | comment | added | Cerbrus | @MadaraUchiha: Since the OP hasn't responded to anything on his question, I'm starting to doubt he is the original OP of this question. I might be a repost from somewhere else, by someone else. | |
May 23, 2016 at 12:50 | comment | added | Madara's Ghost Mod | @Cerbrus Well, that's something that can be fixed via edit from someone who knows how to read his code, or OP himself with an edit. | |
May 23, 2016 at 12:48 | comment | added | Cerbrus | Would you say it's well written? (I wouldn't, see the list in my answer). We can't see what changes the OP made, so we can't really determine what he attempted. | |
May 23, 2016 at 12:47 | comment | added | Peter Cordes | @Cerbrus. I kept the homework aspect in mind somewhat when answering. I think to make really good use of my answer, the OP has to understand some of what I'm saying, since I didn't include any code. I definitely didn't do his homework for him. I had a positive impression of the OP's response so far, e.g. "Still working with this, this has probably been the most fun I've had with a project." in a comment on my answer. So I have high hopes the OP is actually learning things, even if he didn't come up with all the ideas. | |
May 23, 2016 at 12:46 | comment | added | Madara's Ghost Mod | This is not a "do my homework for me" this is a "I have this homework assignment, I did some of it but got stuck on the rest, any tips?" which is still broad, but infinitely better. Also, homework specifically isn't a problem, if the question is well written and shows proper research and attempt. | |
May 23, 2016 at 12:19 | comment | added | Cerbrus | This would mean that a "Do my homework for me" question that got a good answer (Which is what this is), would be okay. Is that the message we want to send? | |
May 23, 2016 at 11:45 | history | answered | Madara's GhostMod | CC BY-SA 3.0 |