4,104 reputation
719
bio website
location
age
visits member for 2 years, 10 months
seen 10 hours ago

Sep
11
comment Function pointers to object instance returned by function pointer
And what error did you get? BTW, a lot of this stuff moved into the standard library, if you have access to C++11 or higher.
Aug
29
revised Deeper understanding of event loops and timers
added 373 characters in body
Aug
29
answered Deeper understanding of event loops and timers
Aug
28
revised How to measure algorithm accuracy?
this isn't about efficiency at all, but accuracy or correctness
Aug
27
answered Which programming idiom to choose for this open source library?
Aug
15
comment Estimation of space is required to store 275305224 of 5x5 MagicSquares?
Who knows? The question was apparently for a way to compress the output of that software, and sending the software is the best plausible answer to the question as originally asked. I think there's an X-Y problem here anyway.
Aug
14
comment Estimation of space is required to store 275305224 of 5x5 MagicSquares?
The ftparmy.com/101308-magic-square-generator.html software ("this tool", which you didn't link) is only 327Kb. So, you can effectively compress its entire output to 327Kb if you can assume a compiler is available on the receiving end.
Aug
14
comment Self-Evaluation: How do I know if I actually have a “good grasp” of OOP?
Start answering questions about OO on here: the act of trying to explain something clearly is really helpful for consolidating your own knowledge (and the slightly meta knowledge of your knowledge), and as a bonus you'll see what other people think of your answers.
Aug
12
comment Is it a newbie mistake to avoid branching?
So you mean a single server program instance, not a single physical server which can run multiple programs, right? Because the second case is fine, especially if you can run multiple instances of your software. The former means you have no way to manage conflicts between developers (editing/overwriting the same file, making conflicting changes, etc.).
Aug
12
comment Is it a newbie mistake to avoid branching?
So you have a single physical copy of your files and directories, and you're all editing at the same time, in the same place?
Aug
12
comment How does std::string in c++ allocate memory?
@Hawk, people are asking what you mean by "it", and you're not answering. "The string library" is not a coherent thing. Since std::string is the only thing you haven't ruled out, I've edited the question to specify that - if that's wrong please tell us what you do mean.
Aug
12
awarded  Organizer
Aug
12
revised How does std::string in c++ allocate memory?
none of this is C and "the string library" is not a a well-defined term
Aug
12
comment How does std::string in c++ allocate memory?
Just read the code of your library's std::istream& operator>>(std::istream&, std::string&). It'll be in a header somewhere.
Aug
12
revised Is this proper OO design for C++?
I a word
Aug
11
awarded  Revival
Aug
11
answered Is this proper OO design for C++?
Aug
7
revised Optimizing code by using registers, but what if they are not enough in number?
added 264 characters in body
Aug
7
comment Optimizing code by using registers, but what if they are not enough in number?
I suspect it will turn into a successful load from cache in that case, which still isn't the same as direct access to the register file. And a function call which is semantically guaranteed not to write to an argument (which probably should be marked const, but isn't) can easily be both too big for that icache, and trivial for a programmer to reason about.
Aug
7
comment Optimizing code by using registers, but what if they are not enough in number?
It will all be optimized, if optimization is enabled. In general, this is controlled not by regions of code, but by types of optimization (although you can use different settings for different translation units). The bits that need to be optimized by hand are exactly the bits that prove to be too slow, when you profile.