Jump to content

Tommi Prami

Members
  • Content Count

    602
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by Tommi Prami


  1. 4 hours ago, Stefan Glienke said:

    Anyone who has researched a bit into sorting algorithms in the past 20 years knows that a pure quicksort is hardly anything good enough to be used as general purpose sorting algo in a runtime

    Average case has most likely very small amount of items to sort. I think I saw somewhere that Bubble Sort would be faster than QuickSort on very small item counts. Not sure tough.

    But better is always better and faster is faster, PDQSort was quite interesting, quick look had interesting cases when it is very fast. Seems that it has no really bad worst cases either.

    Did not find very good comparison against many other algorithms. Anyhow getting better default sort algorithms to RTL most likely would not hurt much 🙂  

    -Tee-


  2. 10 minutes ago, Lajos Juhász said:

    Using

     

    
    procedure TForm1.Button1Click(Sender: TObject);
    begin
      ShowMessage(ISO8601ToDate('0600-12-31T13:13:13Z').ToString);
    end;

    I get:

     

    [Window Title]
    Project1

    [Content]
    01.01.0601 10:46:47 AM

    [OK]

    Seems to return wrong value...

    That is not only value it fails... I make bug report...


    https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1747


  3. Yellow,

    Have following Issue, used to work with 12.1 and many older versions:
     

    ISO8601ToDate() fails on following '0600-12-31T13:13:13Z' -> 1.1.0601 10.46.47 (d.m.yyyy...)

    Can someone confirm, before file bugreport. Some online converter at least managed to parse that. So it should be valid issue.

     

    -Tee-



     


  4. Post bug reports or feature requests what you feel need some publicity.

    I'll post mine:


    Default "styled elements" appears to the inherited form needlessly (into dfm)
    https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-779

    Add Compiler/AST assisted "With remover" refactoring tool
    https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1666

    SimpleRoundTo returns wrong value
    https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1651

    -Tee-

    • Like 1

  5. On 8/27/2024 at 5:02 PM, JonRobertson said:

    I've been working in Delphi 7 projects for the past year. Some are being migrated to 11.3+ and some are staying with Delphi 7. I always refactor with statements away by hand, but even that can be tricky. For example, I learned after refactoring several "with dataset do ... while not Eof do ; Next;" constructs, and overlooking one call to Next, that TForm has a public Next method, related to MDI children of a MDI parent. :classic_blink:

     

    https://docwiki.embarcadero.com/Libraries/Alexandria/en/Vcl.Forms.TForm.Next

     

    Hello infinite loop! Now, go away. :classic_wink:

    This is why long long ago made feature request of compiler/AST assisted with-removed refactoring tool. It never happened.

    Made new one in the new Bug-tracker: https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1666 
    Please comment the bug report and give some pressure...

     

    -Tee-

     

     

    • Like 1

  6. On 7/2/2024 at 10:23 PM, Anders Melander said:

    I don't know how SamplingProfiler works but I would think that it should be able to show you the call stack leading to NtDelayExecution. That should tell you from where and why it's being called.

    For better results run the measured process over and over again while profiling.

    It gets more accurate with every sample you get. 

    I've even run  with Monte Carlo enabled (multi threaded app) for 30 minutes, and then check the results.


  7. 2 hours ago, Uwe Raabe said:

    Actually, these kind of quirks are the reason why Install for me only is recommended. 

    Noted!.

    That is totally reasonable, if it takes too much time and/or effort. That is such a small problem, that no need to worry, I think.

     

    -Tee-


  8. image.thumb.png.0788e72de316ce4ad26ef8cf8d75722f.png

    Registry need cleanup I think... Could not find it tough. I'll let you know if I find where this is coming from.

    Had typo while searching, found from expected place at the registry.

    This also caught my eye. Should this registration also be gone at the uninstall

    image.thumb.png.66902026f4de080ffccaa3315302c830.png

     

     


  9. https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1265

    Thought it was default dialog from IDE, but as it behaved differently than IDE default, uninstalled MMX to confirm.

    Couple of related things.
    1. Can I deactivate MMX to override Ctrl+F12 
    2. Or  could the MMX version work the way in IDE default work, I can write multiple words to narrow search down. 
       I rarely remember exact name, so I write something like "custom invoice edit" to get MyForm.Beautiful.Custom.Invoice.Magic.Edit.pas

    -Tee-


  10. 7 minutes ago, Dalija Prasnikar said:

    Raising exceptions in constructor never ever lead to memory leaks. Only if the code in destructor is bad and is not able to clean up partially initialized object instances. such situations may look like raising exception in constructor is at fault, while actually it is the destructor that needs to be fixed in such case.

    Would be nice to know where this misconception of mine comes from, as it seems that I am not alone. 

    I have no recollection where I got that from.,

    -Tee-


  11. 1 hour ago, Der schöne Günther said:

    I am absolutely bewildered.

    That is absolutely not true.

     

    Tested this and I stand corrected.

    I bet this was the case way back at least, that exception in constructor was leading to memory leaks. Might be still wrong tpugh.

     

    -Tee-


  12. Made first test "Release"

    Little of usage info in the readme.md

    Note that it's start as minimized, sould block the sleep and screensaver (which is my point, might be optional later), and just show black screen.

    Why Im made this, is that I have LG OLED TV as monitor, and don't want to go to screensaver at home office, and would like to go to the back screen. 

    https://github.com/TommiPrami/OLEDBlackScreen

    Prebuild exe if you dare to use: https://github.com/TommiPrami/OLEDBlackScreen/releases/tag/Alpha_0.1

     

    -Tee-


  13. Just now, Rollo62 said:

    While another, long running task is in foreground, for example you wat 1h Youtube video in the browser.
    This means Global is "active" (even if the user is idle), while your local App is Idle.
    What do you expect to happen in such situation?
     

    That is Good point, most likely that does not work currently, maybe... 

    Thanks for the bug, that needs to be fixed, somehow...

     

    -Tee-


  14. 42 minutes ago, Rollo62 said:

    Its unclear to me, if you are looking after an application-wide or global detection of user-idle?
    For the local app, I think its easy, but for the global that can be tricky.

    Donät know what you mean by local/global.

    Mainly I need to know is the user being using mouse or keyboard etc. At least for now that seems to be enough.

    GetLastInputInfo() is working well for now. 

    I'll try to get this thingy more than less ready this week, so I can show it to you,... Not much to do but...

     

    -Tee-

×