Jump to content

David Heffernan

Members
  • Content Count

    1343
  • Joined

  • Last visited

  • Days Won

    78

David Heffernan last won the day on November 19

David Heffernan had the most liked content!

Community Reputation

1002 Excellent

4 Followers

Technical Information

  • Delphi-Version
    Delphi XE7

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. David Heffernan

    String into TArray<Byte>

    In that case why convert to bytes? Not sure why we are guessing. Perhaps @karl Jonson might like to contribute.
  2. David Heffernan

    Byte Array to String

    If it's a byte array, why don't you just write that to file? Why do you need to convert it to a string variable?
  3. David Heffernan

    Hex2Binary

    Submit a report to QualityPortal
  4. David Heffernan

    Hex2Binary

    When you do this, you find that your code is around more than 10 times slower than even the slowest versions in the benchmark, and that's before we've added code to handle errors which is currently missing from your code.
  5. David Heffernan

    Hex2Binary

    This is not something we should be happy about though. The compiler should be doing this for us.
  6. David Heffernan

    String into TArray<Byte>

    Define "best". Starting with deciding which encoding to use.
  7. Measure your program and find out. If all you do is micro benchmarks then likely all you will achieve is to make your code harder to read and develop, and your program runs no faster. Do you know where the bottlenecks are in your program?
  8. Is this code a bottleneck in your program? If not write it in the way that is easiest to read. How many times have I said that to you? Why would you choose to make your code hard to read for no benefit?
  9. David Heffernan

    NERO5 chess engine

    DeepBlue is old news. Things have moved on. Stockfish is king these days.
  10. David Heffernan

    Hex2Binary

    You can extend my benchmark program in earlier posts to see how it performs.
  11. David Heffernan

    Hex2Binary

    This code is very easy to verify that it is safe. For more complex code, that may not be the case, and so pointers could be risky. I was using pointers here for performance reasons. Copy a bunch of characters in one go rather than character by character. Others showed much better ways to do it than my initial attempt.
  12. David Heffernan

    NERO5 chess engine

    Blitz ELO of <1500 suggests that no, it does not play good chess CCRL Blitz - Index (computerchess.org.uk)
  13. David Heffernan

    NERO5 chess engine

    Can it play chess well? Or is it interesting because it's Pascal?
  14. David Heffernan

    Speed of Graphics32

    This seems like choosing a library, and then trying to work out how to fit that library to the problem. That's the wrong way round. One should first understand the problem space, its requirements and constraints, and then find the best solution. Problem first, then solution. Not the other way round.
  15. David Heffernan

    Speed of Graphics32

    OpenGL doesn't seem like an obvious choice for 2D graphics on Windows.
×