Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: razzle

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds; generated 8 minute(s) ago.

  1. Replies
    12
    Views
    246

    Re: Best way to allocate large memory

    "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...
  2. Replies
    12
    Views
    246

    Re: Best way to allocate large memory

    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.
  3. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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...
  4. Replies
    12
    Views
    246

    Re: Best way to allocate large memory

    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...
  5. Replies
    3
    Views
    97

    Re: Moving from VC++ 6.0 to VC++.NET

    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...
  6. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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,

    http://www.navysbir.com/n13_1/N131-061.htm

    My...
  7. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    I'm refering to the Navy of this proposal the OP linked to,

    http://www.navysbir.com/n13_1/N131-061.htm
  8. Replies
    12
    Views
    246

    Re: Best way to allocate large memory

    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...
  9. Replies
    6
    Views
    245

    Re: pass by Reference to smart pointer?

    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...
  10. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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...
  11. Replies
    6
    Views
    245

    Re: pass by Reference to smart pointer?

    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...
  12. Replies
    6
    Views
    245

    Re: pass by Reference to smart pointer?

    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...
  13. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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...
  14. Re: Virtual-Function-Table pointer is misplaced in object memory

    In that case why don't you ask the providers of gdump?
  15. Replies
    12
    Views
    246

    Re: Best way to allocate large memory

    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.

    But you...
  16. Replies
    12
    Views
    246

    Re: Best way to allocate large memory

    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...
  17. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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...
  18. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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...
  19. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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...
  20. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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...
  21. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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...
  22. Replies
    3
    Views
    220

    Re: How to clone an object in C++?

    In OO programming the relationship between CBaseClass and CDerivedClass would be characterized as "inheritance of implementation" (because CbaseClass carries implementation). None of these classes...
  23. Replies
    19
    Views
    689

    Re: C++ with OOP assignment

    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...
  24. Replies
    38
    Views
    2,550

    Re: IF-free conception.

    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...
  25. Replies
    19
    Views
    689

    Re: C++ with OOP assignment

    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...
Results 1 to 25 of 237
Page 1 of 10 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center