Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. Ultimately, if exceptions are masked then there's no behavioural difference between SNaN and QNaN. Seems an odd design choice for x86 to change the NaN type though. Presumably there's a reason I'm not aware of. Normally I think I know my way around floating point, but when exceptions are masked is the great unknown for me. I've never been there. And when I explored moving to 12 I just unmasked them!!!
  2. I don't have anything later than 11.3 installed. So there are likely changes that I'm not familiar with. The one thing that jumps to my mind is the ABI. Floating point return values travel via ST(0) in x86 but by a general purpose register in x64 (can't remember which). This means that it has traditionally not been possible to return SNaN by function return value in 32 bit, although it is possible to in 64 bit. That's because loading into ST(0) triggers invalid op. But now fp exceptions are masked by default. Anyway, that's all I know right now, not at a computer.
  3. David Heffernan

    Memory leak on TParallel.For

    I don't know why you don't attempt to debug your code.
  4. David Heffernan

    Unicode Statistics Tool

    You don't need this tool.
  5. The original code looks fine. But you only showed an excerpt. Show a reproduction of an error and then somebody can tell you what is actually going on. Don't fix things until you understand them.
  6. David Heffernan

    How do I return to the 'Constructor'??

    You very likely still shouldn't be showing user dialogs in a constructor. The fact that you made this design choice to meet a requirement does not mean that it was the right design choice.
  7. David Heffernan

    updated Delphi64RTL intel ipp onetbb

    I mean, come on, how could that test be relevant!
  8. David Heffernan

    updated Delphi64RTL intel ipp onetbb

    This point has been raised many times previously fwiw
  9. David Heffernan

    Dynamic array used as a queue. Memory fragmentation?

    Except aligned is now slower on modern cpus because of the less efficient cache usage when there is padding.
  10. David Heffernan

    Dynamic array used as a queue. Memory fragmentation?

    It is if you use a proper memory manager
  11. David Heffernan

    Dynamic array used as a queue. Memory fragmentation?

    This was true once upon a time but is not true for modern x86-64 architectures.
  12. David Heffernan

    Show executable size after successful build?

    You've spent more time posting here than you would ever save from this feature existing
  13. David Heffernan

    Show executable size after successful build?

    But it doesn't change from one build to the next. Or is your problem that on Monday you know that the executable is 25mb but come Tuesday you've forgotten. Maybe you should get some post it notes.
  14. David Heffernan

    Show executable size after successful build?

    So check the size in explorer. Not like you need to do this repeatedly. Are you having trouble using explorer?
  15. David Heffernan

    Avoid parameter evaluation

    Yeah, I couldn't believe that anon methods arrived way back in Delphi 2009. I thought they were a much younger feature!!
  16. David Heffernan

    Avoid parameter evaluation

    What specific feature are you talking about here?
  17. David Heffernan

    Show executable size after successful build?

    Doesn't seem very useful to me. I wouldn't prioritise this.
  18. David Heffernan

    C++ to Delphi conversion problem

    I don't know why you aren't facing up to the reality that you need to write some C++ code.
  19. David Heffernan

    C++ to Delphi conversion problem

    You can't declare this structure in Delphi because it uses the STL type std::vector.
  20. David Heffernan

    Stand alone EXE

    Why do you need a smaller exe?
  21. David Heffernan

    VCL - Canvas does not allow drawing

    Consider sharing a program that behaves this way
  22. David Heffernan

    "for i in" goes in reverse

    Code editors telling you stuff is great but the bigger problem is the missing functionality at the fundamental language level.
  23. David Heffernan

    "for i in" goes in reverse

    Classic delphi type ambiguity consequence
×