Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    Delphi Rio IDE hangs again and again

    Amazing that they can't produce a 64 bit IDE....
  2. Don't think of the problem as how to write the code effectively given the data structure. Think of the problem as choosing a combination of data structure and algorithm to solve your problem. In other words, ask about the underlying problem, and be prepared to consider a variety of other data structures, which in concert with the right algorithm might perform best.
  3. David Heffernan

    Experience/opinions on FastMM5

    8 times faster sounds amazing, if the only thing you ever do is call Pos on data that is already in the cache. I'll bet that for a lot of real world applications you wouldn't see any benefit.
  4. Cross posted: https://stackoverflow.com/questions/61656924/smartpointers-do-not-work-well-with-a-generic-tobjectlist-in-delphi
  5. David Heffernan

    Extend the system PATH

    If possible you should use side by side assemblies
  6. Those links are to Stefan's clone. What about the author's repo?
  7. Do you have any particular reason to believe that XE is a supported compiler?
  8. David Heffernan

    Function with just underscore _() seems to be valid

    Why do you feel that there might be a problem? The rules for identifiers are well documented. These all meet the rules.
  9. David Heffernan

    Parallel for 32 vrs 64bits

    No. That's wrong. In fact sin is quicker under x64 than under x86. Even though sin (and other trig) is implemented in hardware in the x87 unit, and in Pascal in x64 (because the SSE2 unit does not have built in trig).
  10. David Heffernan

    Parallel for 32 vrs 64bits

    The issue is that x64 trig functions are very slow for very large values. Nobody actually wants to know sin for 99999999/pi radians. Put in sensible values for the argument to sin and it looks more reasonable. For instance try using T:=Sin(i/99999999);
  11. David Heffernan

    RTTI info for TBytes using runtime packages

    Essentially what the original post tells you is that these two types are distinct. Since they are declared in the rtl package, at least one of your modules is not linking to the rtl as a runtime package.
  12. The best way is that you understand your design well in the first place. My reading of your various posts is that a lot of the time you are developing your code by following methodologies used like a recipe. I suspect that with a deeper understanding of why these methodologies were being used then you wouldn't find your code alien when you encounter it.
  13. David Heffernan

    FastMM5 now released by Pierre le Riche (small background story)

    Impossible to know without benchmarking. Depends on what your application spends its time doing.
  14. David Heffernan

    Delphi 2010 giving floating point error

    Mask floating point exceptions, probably
  15. David Heffernan

    Experience/opinions on FastMM5

    Another way to improve performance is to design the code to minimise heap allocations. The best way to optimise a block of code is not to bypass it.
  16. David Heffernan

    FastMM5 now released by Pierre le Riche (small background story)

    It's pointless to say that one memory manager is n times faster than another because usage varies so much. One thing that is surely true is that different applications have different needs. I'm personally pretty sceptical that one single memory manager can perform optimally in a wide range of usage scenarios. Nothing wrong with choosing the MM that best fits each application.
  17. David Heffernan

    TrayIcon resfresh method

    Oh. This again. Surely your users can just make the the icon appear always if they want to. Perhaps they don't want to.....
  18. David Heffernan

    Delphi Closedown Error

    There are lots of bugs in the IDE that could explain this. But this could equally be caused by bugs in design time packages or plugins that you have installed. It won't be caused by the code that you are compiling in the IDE.
  19. David Heffernan

    TrayIcon resfresh method

    I don't understand the problem. I think that if you want some input you'd need to make it more clear to us what your code is doing and how it fails to achieve your goals.
  20. David Heffernan

    Delphi Closedown Error

    You could just ignore the error. Is it causing any trouble.
  21. David Heffernan

    Experience/opinions on FastMM5

    Use a different memory manager then. You don't have rights to other people's work. Do I have rights to your work? What on earth are you smoking?
  22. David Heffernan

    Experience/opinions on FastMM5

    Wrong. They are restricted by the GPL.
  23. David Heffernan

    Experience/opinions on FastMM5

    That's not really the point. The developers of any code own it. They get to choose how they licence it. They have many options. Basic decency says we respect their choices. I'm confident that every person who is critical of somebody else's choice of licence would flat out reject it if anybody told them how to licence their own software.
  24. David Heffernan

    Experience/opinions on FastMM5

    Don't use the hammer then. Make your own. Your choice.
  25. David Heffernan

    Experience/opinions on FastMM5

    Yeah, that makes a lot of sense. I could do this, but I'd probably need a little guidance on how to integrate fastmm5 with my program, making sure it was configured properly, and used the right branch.
×