Jump to content

David Heffernan

Members
  • Content Count

    3745
  • Joined

  • Last visited

  • Days Won

    188

Posts posted by David Heffernan


  1. 2 hours ago, Kas Ob. said:

    inside the original you can use a boolean to exit gracefully locally (that also can be returned as parameter or as a result)

    Why bother with exceptions then at all? This is just back to error handling without exceptions where every single function call returns a status code or flag, like calling a Win32 function. 


  2. 13 hours ago, Anders Melander said:

    I don't have any code where generics is anywhere near the bottleneck

    That's not what this is about, generics being a bottleneck. The potential bottleneck is the RTL dictionary class. Which happens to be a generic type.


  3. 16 minutes ago, Alex7691 said:

    yes, I know that Spring4D is great but it would be impossible to refactor hundreds of occurrences of different data structures in a massive 3+ MLOC application

    And yet you did this with a other library? I'm curious. Why was it simple to integrate rapid? Does it have the same interface as rtl but is just faster? 


  4. 51 minutes ago, Angus Robertson said:

    Specifically there is a new right click menu with the default options, but you have to click again on Show More Options to see the historic menu we've had for 25 years with addon like TortoiseGit, TortoiseSVN, 7Zip, etc.  

    This is fair, I use shift right click to get the full context menu, but it would be better if they allowed you to choose which you wanted

    • Like 1

  5. Definitely Windows 11 is better than Windows 10. Just nice incremental improvements. Every single time there's a new release of Windows people complain that it's worse. But who honestly wants to go back to 98 or XP? 


  6. 13 minutes ago, Vincent Parrett said:

    I'll let Stefan chime in on that 😉  

    I'm sure he'll get here at some point, but I've been chatting with him about this.... So yeah, his development stands on a threadpool. There's a lot of really interesting aspects to it too. Looking forward to the Amsterdam Delphi event where he can say more. 

    • Like 1

  7. 57 minutes ago, Vincent Parrett said:

    ping @Stefan Glienke - he has been working in this area with even better results!

    Hasn't Stefan been working on using multiple threads, whereas SIMD will be on a single thread so actually really powerful in its own domain 


  8. 25 minutes ago, Rollo62 said:

    That would mean, that this tool "compiles" the code and is able to calculate the contents of the variable "foo".

    This can be from millions of different complex calculations and sources and even user input.
    I doubt that such tool will exists, but perhaps a Pascal parser together with a Pascal scripter may be able to simulate the codeflow and catch this.

     

    Maybe its easier, if you replace/mock the Format() and try to catch or log this error before it is raised.

     

     

    No, I am just looking for a tool that detects non literal args by static analysis, which is what I wrote


  9. I've recently come across a defect in my code that looks like this:

     

    msg := Format('%s' + foo, [bar]);

    If foo contains any format placeholders, e.g. %s, %20, etc. then this will result in an exception being raised.

     

    It's a stupid mistake, but now I want to check my entire codebase to see we've done it elsewhere.

     

    Ideally I'd like a static tool that detects any call to Format or common equivalent like Exception.CreateFmt for which the format string is not a literal. I don't think FixInsight has such a warning.

     

    Does anybody know of such a tool?


  10. 3 hours ago, Mark NZ said:

    I agree, followed by LSP then the IDE - a huge FIXES focus based approach would be good for a few releases.

    It feels like most releases in the past 5-10 years have been "quality focused" releases. In other words, they are already doing this. How is it going? 


  11. Just now, Brandon Staggs said:

    Obviously I was referring to the 64-bit compiler that was added in 12.2 for the Enterprise level, not the 32-bit compiler that can target 64-bit builds that we have had all these years.

    Yes, silly me! Sorry. 


  12. 1 hour ago, Brandon Staggs said:

    It is a priori "OK" because they are a private company which can decide how to spend their R&D money and we are free agents that can decide whether or not to subscribe.

    Sure. I can choose not to be impressed. 

     

    1 hour ago, Brandon Staggs said:

     

    I also was pretty harsh on them for packing the 64-bit compiler as a top-tier option prior to this (unavailable to Pro level subscribers), 

    The Win64 bit compiler was available for pro from initial release, XE2


  13. 1 hour ago, ToddFrankson said:

    So you didn't, and therefore you don't know what they stated about  the 64bit IDE, yet you complain.....

    I mean, I did, and I read the what's new. As I said, I think it's pretty poor that they can release software that is so far from being functional. 


  14. On 3/13/2025 at 3:56 PM, Brandon Staggs said:

    To be fair, they are being very straightforward about it being a "version 1" release and it isn't even enabled by default.

     

    Well sure. But isn't this pretty lame? Who does version 1 releases that don't work? They might be upfront about all of its deficiencies, but good developers produce software that works. 

     

    We've all used VS and VSCode and PyCharm and so on, and they work and shine. And then 12 months passes, it's 2025, and Emba come out with 5000 bug fixes and a 64 bit IDE that doesn't work. 

    • Like 1
×