Jump to content

David Heffernan

Members
  • Content Count

    3701
  • Joined

  • Last visited

  • Days Won

    185

Everything posted by David Heffernan

  1. Why would you wrap a memory map with a stream? You use a memory map when you want to access a file using memory operations. But the stream interface reads chunks of the file in a caller provided buffer. If you want a stream interface I don't see the point of a memory map.
  2. David Heffernan

    Love your competitor :-) ..... ?

    That's a strange way to spell C# and Typescript
  3. David Heffernan

    Love your competitor :-) ..... ?

    Heljsberg clearly made the right decision for his own career and I would argue that the world of programming is better for him having move to MS than it would have been had he not.
  4. David Heffernan

    Are there any experiences with www.experts-exchange.com ?

    The thing is, experts have jobs. They aren't interested in micro payments. As a general rule. I doubt EE has ever paid its contributors or ever intended to. It was crappy website that was justly made irrelevant by a far superior one.
  5. David Heffernan

    Are there any experiences with www.experts-exchange.com ?

    Who would contribute to such a site? What would be their motivation? People wouldn't do it for free. Nobody wants to give away their expertise and have it sit behind a pay wall while somebody else profits. Stack Overflow killed EE with a completely different model.
  6. David Heffernan

    Love your competitor :-) ..... ?

    Don't believe random stuff you read on the internet without evidence.
  7. David Heffernan

    Are there any experiences with www.experts-exchange.com ?

    EE hasn't been relevant for 10-15 years
  8. David Heffernan

    Managed dll instead of an unmanaged one

    Don't really know what you mean.
  9. You don't do binary search here. With sorting, you sort and then a single iteration is all you need. That has the same complexity as the sort O(n log n). Without sorting you compare all vs all, so O(n^2). But yeah, no binary search.
  10. Probably, but then for small lists often performance isn't key.
  11. Isn't this better suited to a hash set rather than a string list?
  12. David Heffernan

    Managed dll instead of an unmanaged one

    Yes. But you need to use a tool like UnmanagedExports.
  13. David Heffernan

    nil v self in form create??

    Doesn't matter. May as well use nil.
  14. David Heffernan

    Bulk change of Manifest settings??

    Work out what change needs to be made to the dproj file and script that change using your preferred scripting language. FWIW, this is one reason why I generate my manifest XML in a pre-build script.
  15. It depends. There are lots of different ways to do it. There is no single "best" way.
  16. David Heffernan

    Build managed dll in Delphi

    No. That's a library for creating unmanaged exports from a managed library. So you take a C# library and use DllExport attributes to allow unmanaged code, like Delphi, to consume that C# library with LoadLibrary, GetProcAddress, etc. The question being asked here is very different. It asks if it is possible to make a managed library with Delphi. And that isn't possible.
  17. David Heffernan

    Micro optimization: Math.InRange

    I'm betting that improving the performance of InRange has no impact on the performance of these reports.
  18. David Heffernan

    TJsonTextWriter out of memory

    Use a SAX style parser rather than DOM style parser is sometimes an option
  19. David Heffernan

    "Divided by zero" exception

    Step 1 is to inspect the state of the floating point exception masks while your program is executing. Use trace debugging to do that. Check whether or not my hypothesis is correct.
  20. David Heffernan

    TArray<T> helper

    It's a helper for TArray, not for TArray<T>, by necessity. I think spring4d has something similar.
  21. David Heffernan

    Examples of Android apps

    If you aren't going to reuse existing delphi code then you should also evaluate other tools.
  22. David Heffernan

    InputQuery texts

    How would you handle non ANSI input?
  23. David Heffernan

    "Divided by zero" exception

    It's all proscribed by ieee754.
  24. David Heffernan

    "Divided by zero" exception

    Are you talking about maths, or talking about ieee754?
×