Jump to content

David Heffernan

Members
  • Content Count

    3499
  • Joined

  • Last visited

  • Days Won

    174

Posts posted by David Heffernan


  1. 13 hours ago, DelphiUdIT said:

    Like I wrote, I don't use swap file and I don't have any issues, except the performance (little loss). May be, with Windows 11 that is not a problem, but the software works perfectly in this way: next time that I'll refactor it I'll try to retest all.

    If you aren't using a swap file, where do those pages go when removed from the working set? I mean, these are pages allocated by your process. 

     

    My best guess is that you did a benchmarking exercise that reached an incorrect conclusion and then you have continued using this function erroneously. 


  2. 10 hours ago, DelphiUdIT said:

    Yes, you're right. There is a little latency (in my application measured in 10 milliseconds near) when the program start again to works and use (allocate) memory.
    But whit this, I can maintain the memory free, especially when a lot of gigabytes are used.

    This just makes your program slower though. Forcing the pages out of memory and onto disk before other programs need that memory takes time and can only lead to performance reduction. 

     

    You may as well open the computer up and remove some memory sticks! 


  3. 1 hour ago, Die Holländer said:

    Ahh, a typical reaction that started in that time..

     

    My Commodore 64 is much better.

    My Apple is much better than your Windows

    My Iphone is much better than you Android phone.

    My Javascript language is much better than ...

    Well, the Speccie and the 64 did have better games. The 64 had epic sound. The beeb was more used for hobbyist coding then the other computers of that age. And the beeb did have by far the best programming language of these. There were real differences. 


  4. 10 hours ago, msi1393 said:

    I did this but it didn't work

    We still don't know anything about your dll. When I said that nobody can give you any step by step guides without knowledge of what the dll is, I stand by that. I mean, we could write you lots of hypotheticals. You've got one above. But how about you put some effort in and find out what this dll offers. 


  5. 18 minutes ago, RayTmsk said:

    What about topic question?

    Well, knowing what you are doing in the setter functions is likely important to decide how to write them. You want to take copies? And do you have one member field for each array type? 

     

    Anyway, I'm also of the opinion that a branching generic method is little better than a series of overloads. 


  6. 36 minutes ago, JonRobertson said:

    Different languages have different rules and syntax. Is that really an issue?

     

    I see the "issue" as developers using the incorrect syntax for the language they are currently using.

     

    If I toured Italy, I imagine my trip would be more enjoyable if I spoke Italian. Which I don't. :classic_ohmy:

    I mean I broadly agree. I was just trying to explain to Thomas what the post he was responding to actually said.

     

    For me it's crazy that dynamic arrays are zero based but strings are one based. Obviously I can see how we got here.


  7. 1 hour ago, JonRobertson said:

    Should that matter? I started learning Pascal 35 years ago and C the following year. Not once have I written

    
    c := (a < b) ? a : b;

    or

    
    if (a == b) { doSomething(); }

    while writing Pascal code.

    This is a strange post. The issue with multiple languages is the mix of zero based and one based indexing. 

×