Jump to content

David Heffernan

Members
  • Content Count

    3473
  • Joined

  • Last visited

  • Days Won

    171

Everything posted by David Heffernan

  1. David Heffernan

    Weird code in THttpConnection.ProcessWellKnownDir

    That's what I would do, but it's just a needless nil check which a compiler could remove.
  2. David Heffernan

    Weird code in THttpConnection.ProcessWellKnownDir

    This statement is incorrect. The only way for Create to fail is if it raises an exception. The code is odd, but it doesn't do what you say.
  3. David Heffernan

    Exception in TCustomSmtpClient.Destroy;

    If that code is from a destructor it's bizarre. Just call Free on each instance variable. But that may not be the issue, it would only be an issue if there were stale references in one of those instance variables. The issue may be a double free of the object. Or something else. Debugging required.
  4. David Heffernan

    32bit vs 64bit

    From what I can see, for the hardware that Delphi runs on, float64 is the largest float that can be operated on efficiently with CPU hardware instructions. float80 is available in the x87 unit, but x87 is very inefficient on modern processors. Do you know how float128 is implemented by compilers like gcc on x64 hardware? It's done in software. Presumably therefore it is slow. What real-world applications do you know of that require float128?
  5. David Heffernan

    32bit vs 64bit

    How are you going to implement a BLAS efficiently on today's hardware? What processors do you know of with efficient FPUs that handle more than float64? Forgive me if I am ignorant. I'm not talking about business apps. I develop a structural FEA code for engineers. Double precision is all that is required.
  6. David Heffernan

    TOpenDialog/TFileOpenDialog => how to to bypass file system redirection?

    Excluding files from system directory sounds like a recipe for disaster! But yeah, make a 64 bit process. If you still need to support 32 bit OS then you need to supply one version for each OS.
  7. David Heffernan

    TOpenDialog/TFileOpenDialog => how to to bypass file system redirection?

    Out of curiosity, what does your program do that requires users to select files in these directories which are private to the OS?
  8. David Heffernan

    Delphi Registration

    So yeah, I can't help you, I'm in the same boat as you
  9. David Heffernan

    Delphi Registration

    They must be breaking their own licence terms. They'd probably back down very quickly if threatened with legal action. When I faced this problem, reassigning a licence from a retired developer to a new hire, I had to use my personal contacts with the senior developer team to get it resolved. I don't feel great about having had to do this.
  10. David Heffernan

    32bit vs 64bit

    Well, because a/b is not necessarily equal to (1/b)*a. This is because a/b is defined by IEEE754 to be the closest representable value to the true value of a/b. Then (1/b) is the closest representable value to the true value. And then (1/b)*a is closest representable etc etc. So (1/b)*a has two roundings a/b has just one. In many applications these fastmath approximations are perfectly acceptable, but of course there are applications where this is a problem.
  11. David Heffernan

    32bit vs 64bit

    That's an interesting piece of work. And sure, if you need to perform arithmetic to higher than double precision, then double is going to be a problem. My point, poorly stated, is that I believe that the bulk of numerical computing doesn't need more than double. Is that not the case?
  12. David Heffernan

    Hiring-related question: Delphi + javascript ?

    When I look to recruit people, I don't really care what technologies they've used. I am interested in how smart they are. But then I tend to be hiring for long term positions. So I don't even recognise a term like "Delphi dev".
  13. David Heffernan

    Hiring-related question: Delphi + javascript ?

    Consider me confused
  14. David Heffernan

    Hiring-related question: Delphi + javascript ?

    Why Delphi? Why not use something else?
  15. David Heffernan

    32bit vs 64bit

    80 bit was never for large precision. It was intended for use as intermediate values in calculations for accuracy purposes. But it turned out not to be worthwhile. That's why it has been dropped. The support in modern hardware for 80 bit is on the 8087 unit only and is horribly slow. It's there for legacy reasons so legacy code still runs. Perhaps you are doing different type of work from me. But I'm using BLAS type numerical algorithms. You don't find BLAS for 80 bit data. This is an interesting post https://retrocomputing.stackexchange.com/questions/9751/did-any-compiler-fully-use-intel-x87-80-bit-floating-point
  16. David Heffernan

    32bit vs 64bit

    Indeed. And too bad you can't specify the type of a literal.
  17. David Heffernan

    32bit vs 64bit

    Given that the suppliers of hardware have dropped support for extended I would suggest that you are out of date.
  18. David Heffernan

    any body can write this code by delphi?

    Don't you have any software developers?
  19. David Heffernan

    any body can write this code by delphi?

    What is stopping you from writing this in Delphi? I don't fully understand the question? Do you have any programmers on your team? Why not ask one of them to do this?
  20. David Heffernan

    32bit vs 64bit

    True, but nobody should be using that type anyway. I speak as a developer of mathematical software.
  21. David Heffernan

    TOpenDialog/TFileOpenDialog => how to to bypass file system redirection?

    FWIW, I'd tackle this by shipping a 64 bit application.
  22. David Heffernan

    32bit vs 64bit

    It's true that the 64 bit Windows debugger is a disaster zone. But I just debug with the 32 bit debugger. You can have a project with both 32 and 64 bit targets. You can then ship just the 64 bit if you prefer. But you can still use the 32 bit debugger during development, because it's the one that is actually useful.
  23. David Heffernan

    TOpenDialog/TFileOpenDialog => how to to bypass file system redirection?

    c# - 32-bit OpenFileDialog --> 64-bit System32? - Stack Overflow tl;dr not possible
  24. David Heffernan

    Round

    Then I think the code from @Lajos Juhász is what you need
  25. David Heffernan

    Round

    What data type are you using? Currency?
×