Jump to content

GabrielMoraru

Members
  • Content Count

    129
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by GabrielMoraru

  1. GabrielMoraru

    OTA vs NTA

    I want to create an IDE plugin like Copilot for Visual Studio or like Cursor. I already started with OTA but now I wonder if it would have been better to go for NTA (Native Tools API). NTA seems more brittle but also more complete (and way less boiler plate code). Opinions?
  2. GabrielMoraru

    OTA vs NTA

    The documentation claim that the new API (since Delphi 11) allows access to the compiler messages. I am working on this... but slowly as the weekend is gone... 😞 > well, tested on few old IDEs, up to XE8, if that will help then i can search for that fun project and try to adjust it for you. That would be interesting to see since I will have to make it work also for users that do not have the new OTA API (Delphi 11) Thanks πŸ™‚
  3. GabrielMoraru

    OTA vs NTA

    I think the most important part for my plugin is the capability to interact with the compilation/debugging system so the AI can automatically check for compilation errors.
  4. GabrielMoraru

    What is the best AI at Delphi

    I know... I know... (On the other hand I sold all my Tesla stocks).
  5. GabrielMoraru

    What is the best AI at Delphi

    I see that the question is in the VCL domain, where I like Grok. ______ But I can also tell you about FMX where the best AI is... drum roll please.................................................. none. They all suck terribly as FMX. Probably not their fault. Probably because of lack of code on GitHub.... 😞 And what the AI does when it does not know the answer to a question?????? It hallucinates things. So, all your queries MUST contain "check your answer for hallucinations" .
  6. Hi. Two comments here: 1. Library description Many libraries use big words to describe what they do. In the end you don't get it - unless you invest some time to look deep into the code or documentation. So, maybe you can "dumb down" a bit the project description. Maybe something like: "if you use this library right now in your Delphi project your will be able to xyz", where xyz is the most important feature of your library. It is like when you go to the store and you see a can and you instantly know that inside is tomato soup. Then add the rest of the "complicated" description πŸ™‚ PS: I read the documentation and now I think I get it. But it took a while. 2. asynchronous In general when I use the AI, I ask then I wait for the answer. Is there something you can do if you work in asynchronous mode, while waiting for the answer from the AI? Maybe starting a second request??? If no, then there is no point in using asynchronous. Great library! Thanks for sharing.
  7. I just released my NCG library as open source on GitHub. The full library description and documentation here. Discussions: I think it might be the only NGS Pascal library out there... The program works quite fine but it speed is not impressive... on the other hand is does not have any optimization and it is single threaded. If you have multiple patterns to look into the "big" image, each one could go into a thread. On a CPU with 12 cores, like mine, this code could easily behave as and OCR πŸ™‚ Pre-compiled demo program also available. Enjoy. ____ Related to image processing: You will find also some basic image processing code in my LightSaber lib. There is another library that I will make it also open source that adds metadata to an image, so you can autorotate it based on exif, add "stars" to it (how much you like, it), pregenerated thumbnail (to save some time CPU next time you show it), etc. So, stay tuned... πŸ™‚ ____ PS: On Git hub, vote only the libraries you like πŸ™‚ πŸ™‚ πŸ™‚ I invest time in those that get votes πŸ™‚
  8. > The GitHub link at the end does not work That's just WordPress being dumb... It won't let me insert links to GitHub. It tries to present a screenshot of the repository and fails. I had to type the address manually. PS: I also have a website generator - much much better and stable than WordPress.... but... not the pages generated are not that pretty. I have to integrate some Boostrap support. One day I will make also that one open source πŸ™‚ _______________ This comes from a promise that I made a while ago that I will "free" some of my private libraries. So, as the time allows, more and more code will be released.
  9. Hi Marci, Next year I might come with you. We talk next year in April... πŸ™‚
  10. GabrielMoraru

    Delphi TOIOBE index lifted in May 2022?

    July will start soon... let's see how Delphi will appear in the top....
  11. I think, under the new "bug report" portal it is not possible to "me too" (vote) anymore. 😞
  12. @Pat Heuvel- Thanks. I tried the (relatively) new version from github and it works!
  13. Somebody suggested ProcessMonitor, but there is a better tool for this: PE Explorer (although not freeware). It will show you a red dot like this where the dependency fails. There is also Dependency Walker 2.2 (freeware, but kind of old) but it freezes with Delphi BPLs.
  14. GabrielMoraru

    Delphi 11.1 + patches - No debug source / breakpoints?

    Thanks. But this is way beyond that. I think that under certain conditions, the linker simply does not put the debug information into the DCU or EXE file. Or if it is there, the debugger cannot use it. My environment is identical with Lars' except " current user has local admin rights". It is quite random... Today works, tomorrow not. Restarting the IDE helped in 2-3 cases but not in other 10-15. Until now only the code in packages (dpk) was not available for debugging. Once, I rebuilt all packages in a certain order and then I was able to debug again. Friday was the first time when it happen in the project (dpr) itself. But as I said... suddenly it fixed itself so I cannot experiment anymore. The DProj files are very old and I have seen strange lines in there. Lines that are not in a fresh DProj file. I tried to remove those lines one by one, trying to find the offending one. This (broken DProj file) is only a supposition. Until now I strongly believed that it has something to do with the package. But Friday I removed every reference to any external units from the dpr file (except VCL.Dialogs and VCL.forms), cleaned up the DCU folder and it still happened. So, IT IS NOT related to packages. There was only a ShowMessage in the DPR file and it still won't stop there, at that line. uses //FastMM4, vcl.Forms, vcl.Dialogs; begin //Application.Initialize; //Application.MainFormOnTaskbar := True; ShowMessage('Worked!'); // Breakpoint //Application.CreateForm(TForm1, Form1); //Application.Run; end. ______ Normally the exe file is 55MB, and the size is not coming from internal resources and images but from code πŸ™‚ I backed up the exe file and the DCU folder, now that debugging works. I will wait until it doesn't and I will compare the binary files, see if they are smaller.
  15. GabrielMoraru

    Delphi 11.1 + patches - No debug source / breakpoints?

    I have some hints that it might be related to the DProj file. But then, suddenly the bug went away and I cannot reproduce it anymore. I will have to wait for it to reappear then I can continue the experiments.
  16. GabrielMoraru

    [Open Source] Delphi Youtube Downloader

    I built my own program (on top of yt-dl), more specialized in extracting the soundtrack of a very large Youtube playlist. I want to have all my music with me, on my faithful MP3 player, on the bicycle πŸ™‚ The youtube download is fast (when they don't block you because you did too many downloads πŸ™‚ per minute). I inserted some delays to make it slower πŸ™‚ But the conversion (ffmpeg) to mp3 is crazy slow even on a 5GHz CPU. Any ideas on how to make this conversion faster? __ Edit: I was thinking about downloading all the videos first and then processing them in parallel (I have 11 cores doing nothing)...
  17. GabrielMoraru

    Delphi 11.1 + patches - No debug source / breakpoints?

    @Lars. Updates on this? I have a similar problem where debugging in Delphi 11.3 works.... for a while. Then suddenly all breakpoints are ignored. (Suddenly = I change one line a code and I recompile). I can't even put a breakpoint into the DPR! The project is properly set. I even turned on "map file" and "debug info into exe" in the Linker page. The project is really really large: Exe file (with debug info inside) 191MB. Exe file (without debug info inside) 51MB. Map file = 43MB. DCUs = 4MB (the rest is in (DPK) libraries).
  18. GabrielMoraru

    Getting Win 11 in Delphi

    https://www.anoopcnair.com/windows-11-version-numbers-build-numbers-major/
  19. GabrielMoraru

    [Open Source] Delphi Youtube Downloader

    Cool!
  20. GabrielMoraru

    When LSP fails

    Great tutorial!
  21. GabrielMoraru

    Can you restart the LSP or do you have to restart the whole IDE?

    In the Delphi 12 IDE, under Tools, there is a "Reload LSP server" menu: It would be so cool to have it as an icon in the tool bar. But thanks to the old gods and to the new ones, it has an accelerator!
  22. GabrielMoraru

    Can you restart the LSP or do you have to restart the whole IDE?

    I use a similar solution. I use the TaskManager (I have the Classic Task Manager from Win7 which is really fast installed on my Win11) to kill the fattest LSP process.
  23. GabrielMoraru

    Any font property editor for FireMonkey?

    Hi I'm also interested in this. Any news/conclusions? Under VCL I had a reusable configurator where the user can change (dynamically) the font for the whole application (all forms/all controls). I would like to have it back in FMX also.
  24. GabrielMoraru

    Styling message boxes

    I gathered here a list of issues with FMX async messages. Some of them don't have the X button to close the message, some of them have the button but it does not work Some of them don't let you customize the caption Some of them don't show icons (error, warnings, info, question...) Some of them don't do the "ding" sound when they are displayed.
  25. GabrielMoraru

    Styling message boxes

    Also the TDialogServiceAsync.MessageDialog looks disappointing. No icons, no titlebar, no flavor. 😞 And the Fmx.Dialogs.ShowMessage is marked as deprecated 😞 _ Looks like I need to bake my own messages. I have seen a library here doing that but it uses Application.ProcessMessages - something I am not yet mentally prepared to accept πŸ™‚
Γ—