Type: Posts; User: razzle
Search took 0.02 seconds; generated 8 minute(s) ago.
"If you get yourself into that case"
Well you see, it's not that simple.
In my view you can use the program termination process to your favour.
You think one shouldn't.
That's what we...
Program termination is a complex situation.
I've removed my advice.
I think your idea that RAII will handle it perfectly well is naive.
If you want to discuss this further start a new thread.
Certainly there is no such thing as an "acceptance of a 10% slowdown" philosophy in C++.
The C++ philosophy is that you only pay for what you get.
The figure 10% comes from the anti-OO camp's...
Yes that's your view and I've acknowledged that.
I've also explained why I don't agree but why I still did removed my advice.
So it's back to general information: The system will reclaim any...
Or rather the central algorithm is crucial. Why not take this opportunity to have a hard look at it?
Maybe it can be replaced altogether with a more efficient alternative. Or maybe it can be...
I've stopped arguing with you since I don't understand your point.
In my last post I just put in my two cents on this proposal you referred to,
I'm refering to the Navy of this proposal the OP linked to,
And in my view the system cleanup after a program terminates is also proper. But okay, the system cleanup is a special one off situation and I realize it may be controversial and considered not...
July 31st, 2014, 08:48 AM
My corresponding "simple rules" differ a lot. Here's my advice for the same cases:
1) pass by value or const reference
In principle they're functionally equivalent so it becomes a question of...
July 31st, 2014, 01:40 AM
Sure, performance no longer comes from an ever increasing clock rate but from an increasing number of cores. And that puts concurrent programming at the centre stage.
But the solution is not a...
July 30th, 2014, 11:56 PM
You're using the reference parameter to return a value so it cannot be const (it's an output (return) parameter). This also means passing this parameter by value isn't an option.
But in cases...
July 30th, 2014, 09:35 AM
Use the second one but make it const reference (as was suggested).
You pass by value only when it's sufficiently cheap. The rule of thumb is nothing bigger than a primitive, that is a double at...
July 30th, 2014, 01:52 AM
This proposal doesn't consider the human resource aspect at all. It seeks a pure technocratic solution in the form of a magic tool. But all necessary tools to produce lean and mean software is...
July 30th, 2014, 12:50 AM
In that case why don't you ask the providers of gdump?
July 30th, 2014, 12:34 AM
Do you clean up before smart pointers do their job?
Probably not and in the same way there's no particular reason to clean up before the system does its job when a program terminates.
July 29th, 2014, 12:17 AM
What is it that doesn't work?
The CMyObject pointer array is 16728064 times 4 byte which is like 70 MByte. It shouldn't be a problem to allocate that.
Is it when you start allocating the...
July 28th, 2014, 11:57 PM
I don't know any longer what it is you're suggesting?
But it's my firm belief that ordinary application programmers shouldn't dabble in the type of micro-optimizations you're suggesting. It's for...
July 27th, 2014, 11:37 PM
That's right and that's why I'm not agreeing with you. You're claiming that application programmers should start applying hardware specific micro-optimizations throughout and that's more like a...
July 27th, 2014, 03:20 AM
If you find a sort() to be a performance bottlenck then of course locate and use the fastest replacement you can lay your hands on. But this isn't what we've been discussing. You claim programmers...
July 26th, 2014, 12:00 PM
I never claimed concurrency was a free lunch. But it certainly is best handled at high level. The ideal is a lock free design but even if you don't get all the way you can most certainly do much...
July 25th, 2014, 05:20 PM
Multi-threading was just an example because I think the multiple cores of modern hardware has great potantial for substantial application performance improvements but hasn't been fully utilized so...
July 25th, 2014, 04:24 PM
In OO programming the relationship between CBaseClass and CDerivedClass would be characterized as "inheritance of implementation" (because CbaseClass carries implementation). None of these classes...
July 25th, 2014, 03:44 PM
Well, I wasn't refering to the mutable keyword but to mutability as a concept (as opposed to immutability which is prefered).
But of course it's a question of education. In this lab I think the...
July 25th, 2014, 12:27 AM
I certainly hope the "epoch of readable code" isn't over but has just begun.
I prefer to trust the systems software to make my highlevel (and hopefully readable) code run efficiently on any target...
July 24th, 2014, 08:46 AM
I agreed with you that no programming construct is inherently malign but I do believe that some constructs have a much greater capacity for malignity than others.
The worst culprits are global...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.